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
|
@@ -103,7 +103,7 @@ export default {
|
|
|
103
103
|
useAnchor: [Boolean, Number]
|
|
104
104
|
},
|
|
105
105
|
// #ifdef VUE3
|
|
106
|
-
emits: ['load', 'ready', '
|
|
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('
|
|
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('
|
|
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
|