Skip to content

Commit f0860be

Browse files
committed
1. 优化tabs组件滑块第一次滑动的状态
2. 优化test.mobile()对手机号规则的判断
1 parent 8968a8e commit f0860be

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

uview-ui/components/u-tabs/u-tabs.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,7 @@
202202
'transition-duration': `${this.barFirstTimeMove ? 0 : this.duration }s`,
203203
'background-color': this.activeColor,
204204
height: this.barHeight + 'rpx',
205+
opacity: this.barFirstTimeMove ? 0 : 1,
205206
// 设置一个很大的值,它会自动取能用的最大值,不用高度的一半,是因为高度可能是单数,会有小数出现
206207
'border-radius': `${this.barHeight / 2}px`
207208
};

uview-ui/libs/function/test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ function email(value) {
99
* 验证手机格式
1010
*/
1111
function mobile(value) {
12-
return /^1[23456789]\d{9}$/.test(value)
12+
return /^1[3-9]\d{9}$/.test(value)
1313
}
1414

1515
/**

0 commit comments

Comments
 (0)