uview-plus 3.2.14 → 3.2.15
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
|
@@ -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) {
|