Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
BeiQiaoT committed Aug 13, 2021
2 parents 186da55 + d913b3e commit b347774
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
11 changes: 11 additions & 0 deletions .hbuilderx/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{ // 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"
}
}
]
}
3 changes: 2 additions & 1 deletion uview-ui/components/u-collapse-item/u-collapse-item.vue
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,8 @@
this.parent = this.$u.$parent.call(this, 'u-collapse');
if(this.parent) {
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.bodyStyle = this.parent.bodyStyle;
this.arrowColor = this.parent.arrowColor;
Expand Down
2 changes: 1 addition & 1 deletion uview-ui/libs/function/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ function dateISO(value) {
* 验证十进制数字
*/
function number(value) {
return /^(?:-?\d+|-?\d{1,3}(?:,\d{3})+)?(?:\.\d+)?$/.test(value)
return /^[\+-]?(\d+\.?\d*|\.\d+|\d\.\d+e\+\d+)$/.test(value)
}

/**
Expand Down

0 comments on commit b347774

Please sign in to comment.