uview-plus 3.1.16 → 3.1.19
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 +9 -0
- package/components/u--input/u--input.vue +9 -5
- package/components/u-grid-item/u-grid-item.vue +5 -0
- package/components/u-number-box/u-number-box.vue +1 -1
- package/components/u-parse/node/node.vue +3 -2
- package/components/u-rate/u-rate.vue +5 -0
- package/components/u-textarea/u-textarea.vue +4 -2
- package/libs/config/props/textarea.js +1 -1
- package/package.json +2 -2
package/changelog.md
CHANGED
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
## 3.1.19(2022-11-16)
|
|
2
|
+
修复u-rate的v-model绑定值不生效#48
|
|
3
|
+
修复u-grid-item click事件会执行两次 #40
|
|
4
|
+
修复u--input组建Property "value" was accessed during render but is not defined on instance
|
|
5
|
+
修复textarea组建confirmType报错
|
|
6
|
+
## 3.1.18(2022-10-23)
|
|
7
|
+
新增页面模板
|
|
8
|
+
## 3.1.17(2022-10-23)
|
|
9
|
+
演示项目增加国家化支持及多个页面模板
|
|
1
10
|
## 3.1.16(2022-10-21)
|
|
2
11
|
修复u-switch、u-picker等
|
|
3
12
|
## 3.1.15(2022-10-13)
|
|
@@ -1,7 +1,13 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<uvInput
|
|
3
|
-
|
|
4
|
-
:
|
|
2
|
+
<uvInput
|
|
3
|
+
<!-- #ifdef VUE2 -->
|
|
4
|
+
:value="value"
|
|
5
|
+
@input="e => $emit('input', e)"
|
|
6
|
+
<!-- #endif -->
|
|
7
|
+
<!-- #ifdef VUE3 -->
|
|
8
|
+
:modelValue="modelValue"
|
|
9
|
+
@update:modelValue="e => $emit('update:modelValue', e)"
|
|
10
|
+
<!-- #endif -->
|
|
5
11
|
:type="type"
|
|
6
12
|
:fixed="fixed"
|
|
7
13
|
:disabled="disabled"
|
|
@@ -37,8 +43,6 @@
|
|
|
37
43
|
:customStyle="customStyle"
|
|
38
44
|
:formatter="formatter"
|
|
39
45
|
:ignoreCompositionEvent="ignoreCompositionEvent"
|
|
40
|
-
@input="e => $emit('input', e)"
|
|
41
|
-
@update:modelValue="e => $emit('update:modelValue', e)"
|
|
42
46
|
>
|
|
43
47
|
<!-- #ifdef MP -->
|
|
44
48
|
<slot name="prefix"></slot>
|
|
@@ -56,6 +56,11 @@
|
|
|
56
56
|
mounted() {
|
|
57
57
|
this.init()
|
|
58
58
|
},
|
|
59
|
+
emits: ['click'],
|
|
60
|
+
// 微信小程序中 options 选项
|
|
61
|
+
options: {
|
|
62
|
+
virtualHost: true //将自定义节点设置成虚拟的,更加接近Vue组件的表现。我们不希望自定义组件的这个节点本身可以设置样式、响应 flex 布局等
|
|
63
|
+
},
|
|
59
64
|
computed: {
|
|
60
65
|
// #ifndef APP-NVUE
|
|
61
66
|
// vue下放到computed中,否则会因为延时造成闪烁
|
|
@@ -111,7 +111,12 @@
|
|
|
111
111
|
elId: uni.$u.guid(),
|
|
112
112
|
elClass: uni.$u.guid(),
|
|
113
113
|
rateBoxLeft: 0, // 评分盒子左边到屏幕左边的距离,用于滑动选择时计算距离
|
|
114
|
+
// #ifdef VUE3
|
|
115
|
+
activeIndex: this.modelValue,
|
|
116
|
+
// #endif
|
|
117
|
+
// #ifdef VUE2
|
|
114
118
|
activeIndex: this.value,
|
|
119
|
+
// #endif
|
|
115
120
|
rateWidth: 0, // 每个星星的宽度
|
|
116
121
|
// 标识是否正在滑动,由于iOS事件上touch比click先触发,导致快速滑动结束后,接着触发click,导致事件混乱而出错
|
|
117
122
|
moving: false,
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
:disableDefaultPadding="disableDefaultPadding"
|
|
21
21
|
:holdKeyboard="holdKeyboard"
|
|
22
22
|
:maxlength="maxlength"
|
|
23
|
-
:
|
|
23
|
+
:confirm-type="confirmType"
|
|
24
24
|
:ignoreCompositionEvent="ignoreCompositionEvent"
|
|
25
25
|
@focus="onFocus"
|
|
26
26
|
@blur="onBlur"
|
|
@@ -98,6 +98,8 @@ export default {
|
|
|
98
98
|
innerFormatter: value => value
|
|
99
99
|
}
|
|
100
100
|
},
|
|
101
|
+
created() {
|
|
102
|
+
},
|
|
101
103
|
watch: {
|
|
102
104
|
// #ifdef VUE2
|
|
103
105
|
value: {
|
|
@@ -144,7 +146,7 @@ export default {
|
|
|
144
146
|
// 组件的类名
|
|
145
147
|
textareaClass() {
|
|
146
148
|
let classes = [],
|
|
147
|
-
{ border, disabled
|
|
149
|
+
{ border, disabled } = this;
|
|
148
150
|
border === "surround" &&
|
|
149
151
|
(classes = classes.concat(["u-border", "u-textarea--radius"]));
|
|
150
152
|
border === "bottom" &&
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"id": "uview-plus",
|
|
3
3
|
"name": "uview-plus",
|
|
4
|
-
"displayName": "uview-plus3.0
|
|
5
|
-
"version": "3.1.
|
|
4
|
+
"displayName": "uview-plus3.0重磅发布,全面的Vue3移动组件库。",
|
|
5
|
+
"version": "3.1.19",
|
|
6
6
|
"description": "uview-plus已兼容vue3,全面的组件和便捷的工具会让您信手拈来,如鱼得水",
|
|
7
7
|
"keywords": [
|
|
8
8
|
"uview",
|