uview-plus 3.3.3 → 3.3.4

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.3.3(2024-07-07)
2
+ fix: input组件双向绑定问题 #419
3
+
4
+ lazy-load完善emit
5
+
6
+ 优化通用小程序分享
7
+
1
8
  ## 3.3.2(2024-06-27)
2
9
  fix: 在Nvue环境中编译,出现大量警告 #406
3
10
  ## 3.3.1(2024-06-27)
@@ -151,8 +151,9 @@ export default {
151
151
  modelValue: {
152
152
  immediate: true,
153
153
  handler(newVal, oldVal) {
154
- console.log(newVal, oldVal)
154
+ // console.log(newVal, oldVal)
155
155
  if (this.changeFromInner || this.innerValue === newVal) {
156
+ this.changeFromInner = false; // 重要否则会出现双向绑定失效问题https://github.com/ijry/uview-plus/issues/419
156
157
  return;
157
158
  }
158
159
  this.innerValue = newVal;
@@ -161,7 +162,7 @@ export default {
161
162
  this.firstChange === false &&
162
163
  this.changeFromInner === false
163
164
  ) {
164
- this.valueChange(this.innerValue);
165
+ this.valueChange(this.innerValue, true);
165
166
  } else {
166
167
  // 尝试调用up-form的验证方法
167
168
  if(!this.firstChange) formValidate(this, "change");
@@ -150,7 +150,7 @@
150
150
  }
151
151
  }
152
152
  },
153
- emits: ['click', 'load'],
153
+ emits: ['click', 'load', 'error'],
154
154
  methods: {
155
155
  // 用于重新初始化
156
156
  init() {
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.3.3",
5
+ "version": "3.3.4",
6
6
  "description": "uview-plus已兼容vue3,全面的组件和便捷的工具会让您信手拈来,如鱼得水",
7
7
  "keywords": [
8
8
  "uview",