uview-plus 3.0.4 → 3.0.9
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,13 @@
|
|
|
1
|
+
## 3.0.9(2022-07-14)
|
|
2
|
+
修复u-search双向绑定
|
|
3
|
+
## 3.0.8(2022-07-12)
|
|
4
|
+
修复u-tag默认宽度撑满容器
|
|
5
|
+
## 3.0.7(2022-07-12)
|
|
6
|
+
修复u-navbar自定义插槽演示示例
|
|
7
|
+
## 3.0.6(2022-07-11)
|
|
8
|
+
修复u-image缺少emits申明
|
|
9
|
+
## 3.0.5(2022-07-11)
|
|
10
|
+
修复u-upload缺少emits申明
|
|
1
11
|
## 3.0.4(2022-07-10)
|
|
2
12
|
修复u-textarea/u-input/u-datetime-picker/u-number-box/u-radio-group/u-switch/u-rate在vue3下数据绑定
|
|
3
13
|
## 3.0.3(2022-07-09)
|
|
@@ -20,13 +20,13 @@
|
|
|
20
20
|
@click="$emit('click')"
|
|
21
21
|
@error="$emit('error')"
|
|
22
22
|
@load="$emit('load')"
|
|
23
|
-
>
|
|
24
|
-
<template v-slot:loading>
|
|
25
|
-
<slot name="loading"></slot>
|
|
26
|
-
</template>
|
|
27
|
-
<template v-slot:error>
|
|
28
|
-
<slot name="error"></slot>
|
|
29
|
-
</template>
|
|
23
|
+
>
|
|
24
|
+
<template v-slot:loading>
|
|
25
|
+
<slot name="loading"></slot>
|
|
26
|
+
</template>
|
|
27
|
+
<template v-slot:error>
|
|
28
|
+
<slot name="error"></slot>
|
|
29
|
+
</template>
|
|
30
30
|
</uvImage>
|
|
31
31
|
</template>
|
|
32
32
|
|
|
@@ -43,5 +43,6 @@
|
|
|
43
43
|
components: {
|
|
44
44
|
uvImage
|
|
45
45
|
},
|
|
46
|
+
emits: ['click', 'error', 'load']
|
|
46
47
|
}
|
|
47
48
|
</script>
|
|
@@ -95,10 +95,14 @@ export default {
|
|
|
95
95
|
default: uni.$u.props.search.animation
|
|
96
96
|
},
|
|
97
97
|
// 输入框的初始化内容
|
|
98
|
-
|
|
98
|
+
modelValue: {
|
|
99
99
|
type: String,
|
|
100
100
|
default: uni.$u.props.search.value
|
|
101
101
|
},
|
|
102
|
+
value: {
|
|
103
|
+
type: String,
|
|
104
|
+
default: uni.$u.props.search.value
|
|
105
|
+
},
|
|
102
106
|
// 输入框最大能输入的长度,-1为不限制长度(来自uniapp文档)
|
|
103
107
|
maxlength: {
|
|
104
108
|
type: [String, Number],
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
<input
|
|
31
31
|
confirm-type="search"
|
|
32
32
|
@blur="blur"
|
|
33
|
-
:value="
|
|
33
|
+
:value="keyword"
|
|
34
34
|
@confirm="search"
|
|
35
35
|
@input="inputChange"
|
|
36
36
|
:disabled="disabled"
|
|
@@ -126,22 +126,38 @@
|
|
|
126
126
|
watch: {
|
|
127
127
|
keyword(nVal) {
|
|
128
128
|
// 双向绑定值,让v-model绑定的值双向变化
|
|
129
|
+
// #ifdef VUE3
|
|
130
|
+
this.$emit("update:modelValue", nVal);
|
|
131
|
+
// #endif
|
|
132
|
+
// #ifdef VUE2
|
|
129
133
|
this.$emit('input', nVal);
|
|
134
|
+
// #endif
|
|
130
135
|
// 触发change事件,事件效果和v-model双向绑定的效果一样,让用户多一个选择
|
|
131
136
|
this.$emit('change', nVal);
|
|
132
137
|
},
|
|
138
|
+
// #ifdef VUE3
|
|
139
|
+
modelValue: {
|
|
140
|
+
immediate: true,
|
|
141
|
+
handler(nVal) {
|
|
142
|
+
this.keyword = nVal;
|
|
143
|
+
}
|
|
144
|
+
},
|
|
145
|
+
// #endif
|
|
146
|
+
// #ifdef VUE2
|
|
133
147
|
value: {
|
|
134
148
|
immediate: true,
|
|
135
149
|
handler(nVal) {
|
|
136
150
|
this.keyword = nVal;
|
|
137
151
|
}
|
|
138
|
-
}
|
|
152
|
+
},
|
|
153
|
+
// #endif
|
|
139
154
|
},
|
|
140
155
|
computed: {
|
|
141
156
|
showActionBtn() {
|
|
142
157
|
return !this.animation && this.showAction
|
|
143
158
|
}
|
|
144
159
|
},
|
|
160
|
+
emits: ['clear', 'search', 'custom', 'focus', 'blur', 'click', 'clickIcon'],
|
|
145
161
|
methods: {
|
|
146
162
|
// 目前HX2.6.9 v-model双向绑定无效,故监听input事件获取输入框内容的变化
|
|
147
163
|
inputChange(e) {
|