File tree Expand file tree Collapse file tree 3 files changed +14
-2
lines changed
components/u-collapse-item Expand file tree Collapse file tree 3 files changed +14
-2
lines changed Original file line number Diff line number Diff line change
1
+ { // launch.json 配置了启动调试时相关设置,configurations下节点名称可为 app-plus/h5/mp-weixin/mp-baidu/mp-alipay/mp-qq/mp-toutiao/mp-360/
2
+ // launchtype项可配置值为local或remote, local代表前端连本地云函数,remote代表前端连云端云函数
3
+ "version" : " 0.0" ,
4
+ "configurations" : [{
5
+ "type" : " uniCloud" ,
6
+ "default" : {
7
+ "launchtype" : " remote"
8
+ }
9
+ }
10
+ ]
11
+ }
Original file line number Diff line number Diff line change 110
110
this .parent = this .$u .$parent .call (this , ' u-collapse' );
111
111
if (this .parent ) {
112
112
this .nameSync = this .name ? this .name : this .parent .childrens .length ;
113
- this .parent .childrens .push (this );
113
+ // 不存在时才添加本实例
114
+ ! this .parent .childrens .includes (this ) && this .parent .childrens .push (this );
114
115
this .headStyle = this .parent .headStyle ;
115
116
this .bodyStyle = this .parent .bodyStyle ;
116
117
this .arrowColor = this .parent .arrowColor ;
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ function dateISO(value) {
37
37
* 验证十进制数字
38
38
*/
39
39
function number ( value ) {
40
- return / ^ (?: - ? \d + | - ? \d { 1 , 3 } (?: , \d { 3 } ) + ) ? (?: \ .\d + ) ? $ / . test ( value )
40
+ return / ^ [ \+ - ] ? ( \d + \. ? \d * | \. \d + | \d \ .\d + e \+ \d + ) $ / . test ( value )
41
41
}
42
42
43
43
/**
You can’t perform that action at this time.
0 commit comments