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
@@ -1,3 +1,5 @@
1
+ ## 3.2.15(2024-04-28)
2
+ 优化时间选择器hasInput模式初始化值
1
3
  ## 3.2.14(2024-04-24)
2
4
  去除pleaseSetTranspileDependencies
3
5
 
@@ -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) {
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "id": "uview-plus",
3
3
  "name": "uview-plus",
4
4
  "displayName": "uview-plus3.0重磅发布,全面的Vue3移动组件库。",
5
- "version": "3.2.14",
5
+ "version": "3.2.15",
6
6
  "description": "uview-plus已兼容vue3,全面的组件和便捷的工具会让您信手拈来,如鱼得水",
7
7
  "keywords": [
8
8
  "uview",