Commit 5d15b450 authored by 叙曲's avatar 叙曲

fix: 修复tset.number数值可能不准确,折叠面板可能多次添加子组件实例的问题

docs: 更新群号
parent 566a7b1c
{ // launch.json 配置了启动调试时相关设置,configurations下节点名称可为 app-plus/h5/mp-weixin/mp-baidu/mp-alipay/mp-qq/mp-toutiao/mp-360/
// launchtype项可配置值为local或remote, local代表前端连本地云函数,remote代表前端连云端云函数
"version": "0.0",
"configurations": [{
"type": "uniCloud",
"default": {
"launchtype": "remote"
}
}
]
}
...@@ -110,7 +110,8 @@ ...@@ -110,7 +110,8 @@
this.parent = this.$u.$parent.call(this, 'u-collapse'); this.parent = this.$u.$parent.call(this, 'u-collapse');
if(this.parent) { if(this.parent) {
this.nameSync = this.name ? this.name : this.parent.childrens.length; this.nameSync = this.name ? this.name : this.parent.childrens.length;
this.parent.childrens.push(this); // 不存在时才添加本实例
!this.parent.childrens.includes(this) && this.parent.childrens.push(this);
this.headStyle = this.parent.headStyle; this.headStyle = this.parent.headStyle;
this.bodyStyle = this.parent.bodyStyle; this.bodyStyle = this.parent.bodyStyle;
this.arrowColor = this.parent.arrowColor; this.arrowColor = this.parent.arrowColor;
......
...@@ -37,7 +37,7 @@ function dateISO(value) { ...@@ -37,7 +37,7 @@ function dateISO(value) {
* 验证十进制数字 * 验证十进制数字
*/ */
function number(value) { function number(value) {
return /^(?:-?\d+|-?\d{1,3}(?:,\d{3})+)?(?:\.\d+)?$/.test(value) return /^[\+-]?(\d+\.?\d*|\.\d+|\d\.\d+e\+\d+)$/.test(value)
} }
/** /**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment