Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
U
uview-ui
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
李晖
uview-ui
Commits
5d15b450
Commit
5d15b450
authored
Jun 09, 2021
by
叙曲
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修复tset.number数值可能不准确,折叠面板可能多次添加子组件实例的问题
docs: 更新群号
parent
566a7b1c
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
2 deletions
+14
-2
launch.json
.hbuilderx/launch.json
+11
-0
u-collapse-item.vue
uview-ui/components/u-collapse-item/u-collapse-item.vue
+2
-1
test.js
uview-ui/libs/function/test.js
+1
-1
No files found.
.hbuilderx/launch.json
0 → 100644
View file @
5d15b450
{
//
launch.json
配置了启动调试时相关设置,configurations下节点名称可为
app-plus/h
5
/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"
}
}
]
}
uview-ui/components/u-collapse-item/u-collapse-item.vue
View file @
5d15b450
...
...
@@ -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
;
...
...
uview-ui/libs/function/test.js
View file @
5d15b450
...
...
@@ -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
)
}
/**
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment