uview-plus 3.2.13 → 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,10 @@
1
+ ## 3.2.15(2024-04-28)
2
+ 优化时间选择器hasInput模式初始化值
3
+ ## 3.2.14(2024-04-24)
4
+ 去除pleaseSetTranspileDependencies
5
+
6
+ http采用useStore
7
+
1
8
  ## 3.2.13(2024-04-22)
2
9
  修复modal标题样式
3
10
 
@@ -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) {
@@ -250,7 +257,7 @@
250
257
  value: selectValue,
251
258
  // #ifndef MP-WEIXIN
252
259
  // 微信小程序不能传递this实例,会因为循环引用而报错
253
- picker: this.$refs.picker,
260
+ // picker: this.$refs.picker,
254
261
  // #endif
255
262
  mode: this.mode
256
263
  })
@@ -172,7 +172,7 @@ export default {
172
172
  this.$emit('change', {
173
173
  // #ifndef MP-WEIXIN || MP-LARK
174
174
  // 微信小程序不能传递this,会因为循环引用而报错
175
- picker: this,
175
+ // picker: this,
176
176
  // #endif
177
177
  value: this.innerColumns.map((item, index) => item[value[index]]),
178
178
  index,
package/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  // 看到此报错,是因为没有配置vite.config.js的【transpileDependencies】
2
- const pleaseSetTranspileDependencies = {}, babelTest = pleaseSetTranspileDependencies?.test
2
+ // const pleaseSetTranspileDependencies = {}, babelTest = pleaseSetTranspileDependencies?.test
3
3
 
4
4
  // 引入全局mixin
5
5
  import mixin from './libs/mixin/mixin.js'
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.13",
5
+ "version": "3.2.15",
6
6
  "description": "uview-plus已兼容vue3,全面的组件和便捷的工具会让您信手拈来,如鱼得水",
7
7
  "keywords": [
8
8
  "uview",