uview-plus 3.2.14 → 3.2.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/changelog.md
CHANGED
|
@@ -104,7 +104,7 @@
|
|
|
104
104
|
},
|
|
105
105
|
// 保存时间戳,为了防止倒计时尚未结束,H5刷新或者各端的右上角返回上一页再进来
|
|
106
106
|
setTimeToStorage() {
|
|
107
|
-
if(!this.keepRunning) return
|
|
107
|
+
if(!this.keepRunning || !this.timer) return
|
|
108
108
|
// 记录当前的时间戳,为了下次进入页面,如果还在倒计时内的话,继续倒计时
|
|
109
109
|
// 倒计时尚未结束,结果大于0;倒计时已经开始,就会小于初始值,如果等于初始值,说明没有开始倒计时,无需处理
|
|
110
110
|
if(this.secNum > 0 && this.secNum <= this.seconds) {
|
|
@@ -99,13 +99,13 @@
|
|
|
99
99
|
// #ifdef VUE3
|
|
100
100
|
modelValue(newValue) {
|
|
101
101
|
this.init()
|
|
102
|
-
this.getInputValue()
|
|
102
|
+
// this.getInputValue(newValue)
|
|
103
103
|
},
|
|
104
104
|
// #endif
|
|
105
105
|
// #ifdef VUE2
|
|
106
106
|
value(newValue) {
|
|
107
107
|
this.init()
|
|
108
|
-
this.getInputValue()
|
|
108
|
+
// this.getInputValue(newValue)
|
|
109
109
|
},
|
|
110
110
|
// #endif
|
|
111
111
|
propsChange() {
|
|
@@ -126,6 +126,10 @@
|
|
|
126
126
|
// #endif
|
|
127
127
|
methods: {
|
|
128
128
|
getInputValue(newValue) {
|
|
129
|
+
if (newValue == '' || !newValue || newValue == undefined) {
|
|
130
|
+
this.inputValue = ''
|
|
131
|
+
return
|
|
132
|
+
}
|
|
129
133
|
if (this.mode == 'time') {
|
|
130
134
|
this.inputValue = newValue
|
|
131
135
|
} else {
|
|
@@ -161,6 +165,9 @@
|
|
|
161
165
|
this.innerValue = this.correctValue(this.value)
|
|
162
166
|
// #endif
|
|
163
167
|
this.updateColumnValue(this.innerValue)
|
|
168
|
+
|
|
169
|
+
// 初始化hasInput展示
|
|
170
|
+
this.getInputValue(this.innerValue)
|
|
164
171
|
},
|
|
165
172
|
// 在微信小程序中,不支持将函数当做props参数,故只能通过ref形式调用
|
|
166
173
|
setFormatter(e) {
|
|
@@ -142,9 +142,7 @@
|
|
|
142
142
|
return index => {
|
|
143
143
|
const style = {}
|
|
144
144
|
// 取当期是否激活的样式
|
|
145
|
-
const customeStyle = index === this.innerCurrent ? addStyle(this.activeStyle) :
|
|
146
|
-
.addStyle(
|
|
147
|
-
this.inactiveStyle)
|
|
145
|
+
const customeStyle = index === this.innerCurrent ? addStyle(this.activeStyle) : addStyle(this.inactiveStyle)
|
|
148
146
|
// 如果当前菜单被禁用,则加上对应颜色,需要在此做处理,是因为nvue下,无法在style样式中通过!import覆盖标签的内联样式
|
|
149
147
|
if (this.list[index].disabled) {
|
|
150
148
|
style.color = '#c8c9cc'
|
|
@@ -339,7 +337,7 @@
|
|
|
339
337
|
&__text {
|
|
340
338
|
font-size: 15px;
|
|
341
339
|
color: $u-content-color;
|
|
342
|
-
white-space: nowrap;
|
|
340
|
+
white-space: nowrap !important;
|
|
343
341
|
|
|
344
342
|
&--disabled {
|
|
345
343
|
color: $u-disabled-color !important;
|