uview-plus 3.3.35 → 3.3.36
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,8 @@
|
|
|
1
|
+
## 3.3.36(2024-10-09)
|
|
2
|
+
fix: toast 自动关闭
|
|
3
|
+
|
|
4
|
+
feat: 增加微信小程序用户昵称审核完毕回调及修改 ts 定义文件
|
|
5
|
+
|
|
1
6
|
## 3.3.35(2024-10-08)
|
|
2
7
|
feat: modal和picker支持v-model:show双向绑定
|
|
3
8
|
|
|
@@ -5,7 +10,6 @@ feat: 支持checkbox使用slot自定义label后自带点击事件 #522
|
|
|
5
10
|
|
|
6
11
|
feat: swipe-action支持自动关闭特性及初始化打开状态
|
|
7
12
|
|
|
8
|
-
|
|
9
13
|
## 3.3.34(2024-09-23)
|
|
10
14
|
feat: 支持toast设置duration值为-1时不自动关闭
|
|
11
15
|
|
|
@@ -45,6 +45,7 @@
|
|
|
45
45
|
@focus="onFocus"
|
|
46
46
|
@confirm="onConfirm"
|
|
47
47
|
@keyboardheightchange="onkeyboardheightchange"
|
|
48
|
+
@nicknamereview="onnicknamereview"
|
|
48
49
|
/>
|
|
49
50
|
</view>
|
|
50
51
|
<view
|
|
@@ -224,7 +225,7 @@ export default {
|
|
|
224
225
|
},
|
|
225
226
|
},
|
|
226
227
|
// #ifdef VUE3
|
|
227
|
-
emits: ['update:modelValue', 'focus', 'blur', 'change', 'confirm', 'clear', 'keyboardheightchange'],
|
|
228
|
+
emits: ['update:modelValue', 'focus', 'blur', 'change', 'confirm', 'clear', 'keyboardheightchange', 'nicknamereview'],
|
|
228
229
|
// #endif
|
|
229
230
|
methods: {
|
|
230
231
|
// 在微信小程序中,不支持将函数当做props参数,故只能通过ref形式调用
|
|
@@ -274,6 +275,9 @@ export default {
|
|
|
274
275
|
onkeyboardheightchange(event) {
|
|
275
276
|
this.$emit("keyboardheightchange", event);
|
|
276
277
|
},
|
|
278
|
+
onnicknamereview(event) {
|
|
279
|
+
this.$emit("nicknamereview", event);
|
|
280
|
+
},
|
|
277
281
|
// 内容发生变化,进行处理
|
|
278
282
|
valueChange(value, isOut = false) {
|
|
279
283
|
if(this.clearInput) {
|
package/package.json
CHANGED
package/types/comps/button.d.ts
CHANGED
package/types/comps/input.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ declare interface InputProps {
|
|
|
9
9
|
* 输入框类型,详见[文档](https://www.uviewui.com/components/input.html#%E8%BE%93%E5%85%A5%E6%A1%86%E7%9A%84%E7%B1%BB%E5%9E%8B)
|
|
10
10
|
* @default "text"
|
|
11
11
|
*/
|
|
12
|
-
type?: 'text' | 'number' | 'idcard' | 'digit' | 'password'
|
|
12
|
+
type?: 'text' | 'number' | 'idcard' | 'digit' | 'password' | 'nickname'
|
|
13
13
|
/**
|
|
14
14
|
* 是否禁用输入框
|
|
15
15
|
* @default false
|