uview-plus 3.1.34 → 3.1.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,7 @@
1
+ ## 3.1.36(2023-08-08)
2
+ 修复富文本事件名称大小写
3
+ ## 3.1.35(2023-08-02)
4
+ 修复编译到支付宝小程序u-form报错
1
5
  ## 3.1.34(2023-07-27)
2
6
  修复App打包uni.$u.mpMixin方式sdk暂时不支持导致报错
3
7
  ## 3.1.33(2023-07-13)
@@ -172,7 +172,7 @@
172
172
  childErrors.push(...errors);
173
173
  }
174
174
  child.message =
175
- childErrors[0]?.message ?? null;
175
+ childErrors[0]?.message ? childErrors[0].message : null;
176
176
  }
177
177
  );
178
178
  }
@@ -71,6 +71,7 @@
71
71
  return uni.$u.deepMerge(style, uni.$u.addStyle(this.customStyle));
72
72
  }
73
73
  },
74
+ emits: ['click'], // 防止事件执行两次
74
75
  methods: {
75
76
  // 此方法由u-grid-item触发,用于在u-grid发出事件
76
77
  childClick(name) {
@@ -103,7 +103,7 @@ export default {
103
103
  useAnchor: [Boolean, Number]
104
104
  },
105
105
  // #ifdef VUE3
106
- emits: ['load', 'ready', 'imgtap', 'linktap', 'play', 'error'],
106
+ emits: ['load', 'ready', 'imgTap', 'linkTap', 'play', 'error'],
107
107
  // #endif
108
108
  // #ifndef APP-PLUS-NVUE
109
109
  components: {
@@ -410,7 +410,7 @@ export default {
410
410
  break
411
411
  // 图片点击
412
412
  case 'onImgTap':
413
- this.$emit('imgtap', message.attrs)
413
+ this.$emit('imgtTap', message.attrs)
414
414
  if (this.previewImg) {
415
415
  uni.previewImage({
416
416
  current: parseInt(message.attrs.i),
@@ -421,7 +421,7 @@ export default {
421
421
  // 链接点击
422
422
  case 'onLinkTap': {
423
423
  const href = message.attrs.href
424
- this.$emit('linktap', message.attrs)
424
+ this.$emit('linkTap', message.attrs)
425
425
  if (href) {
426
426
  // 锚点跳转
427
427
  if (href[0] === '#') {
@@ -214,7 +214,7 @@ export default {
214
214
  },
215
215
  // 设置整体各列的columns的值
216
216
  setColumns(columns) {
217
- console.log(columns)
217
+ // console.log(columns)
218
218
  this.innerColumns = uni.$u.deepClone(columns)
219
219
  // 如果在设置各列数据时,没有被设置默认的各列索引defaultIndex,那么用0去填充它,数组长度为列的数量
220
220
  if (this.innerIndex.length === 0) {
@@ -199,6 +199,10 @@ function statusChange(newValue, oldValue, ownerInstance, instance) {
199
199
  function sizeChange(newValue, oldValue, ownerInstance, instance) {
200
200
  // wxs内的局部变量快照
201
201
  var state = instance.getState()
202
+ // 临时防止nv_disabled报错
203
+ if (!state || !newValue) {
204
+ return;
205
+ }
202
206
  state.disabled = newValue.disabled
203
207
  state.duration = newValue.duration
204
208
  state.show = newValue.show
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.1.34",
5
+ "version": "3.1.36",
6
6
  "description": "uview-plus已兼容vue3,全面的组件和便捷的工具会让您信手拈来,如鱼得水",
7
7
  "keywords": [
8
8
  "uview",