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
f0860be6
Commit
f0860be6
authored
Mar 17, 2021
by
yiruiwen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1. 优化tabs组件滑块第一次滑动的状态
2. 优化test.mobile()对手机号规则的判断
parent
8968a8ef
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletion
+2
-1
u-tabs.vue
uview-ui/components/u-tabs/u-tabs.vue
+1
-0
test.js
uview-ui/libs/function/test.js
+1
-1
No files found.
uview-ui/components/u-tabs/u-tabs.vue
View file @
f0860be6
...
...
@@ -202,6 +202,7 @@
'
transition-duration
'
:
`
${
this
.
barFirstTimeMove
?
0
:
this
.
duration
}
s`
,
'
background-color
'
:
this
.
activeColor
,
height
:
this
.
barHeight
+
'
rpx
'
,
opacity
:
this
.
barFirstTimeMove
?
0
:
1
,
// 设置一个很大的值,它会自动取能用的最大值,不用高度的一半,是因为高度可能是单数,会有小数出现
'
border-radius
'
:
`
${
this
.
barHeight
/
2
}
px`
};
...
...
uview-ui/libs/function/test.js
View file @
f0860be6
...
...
@@ -9,7 +9,7 @@ function email(value) {
* 验证手机格式
*/
function
mobile
(
value
)
{
return
/^1
[
2345678
9
]\d{9}
$/
.
test
(
value
)
return
/^1
[
3-
9
]\d{9}
$/
.
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