uview-plus 3.4.47 → 3.4.48
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
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
v-for="(item, index1) in arr"
|
|
14
14
|
:key="index1"
|
|
15
15
|
:style="[imageStyle(index + 1, index1 + 1)]"
|
|
16
|
-
@tap="
|
|
16
|
+
@tap="onPreviewTap($event, getSrc(item))"
|
|
17
17
|
>
|
|
18
18
|
<image
|
|
19
19
|
:src="getSrc(item)"
|
|
@@ -185,6 +185,7 @@ export default {
|
|
|
185
185
|
return width
|
|
186
186
|
}
|
|
187
187
|
},
|
|
188
|
+
emits: ['preview', 'albumWidth'],
|
|
188
189
|
methods: {
|
|
189
190
|
addUnit,
|
|
190
191
|
// 预览图片
|
|
@@ -192,12 +193,19 @@ export default {
|
|
|
192
193
|
const urls = this.urls.map((item) => {
|
|
193
194
|
return this.getSrc(item)
|
|
194
195
|
})
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
196
|
+
if (this.previewFullImage) {
|
|
197
|
+
uni.previewImage({
|
|
198
|
+
current: url,
|
|
199
|
+
urls
|
|
200
|
+
})
|
|
201
|
+
// 是否阻止事件传播
|
|
202
|
+
this.stop && this.preventEvent(e)
|
|
203
|
+
} else {
|
|
204
|
+
this.$emit('preview', {
|
|
205
|
+
urls,
|
|
206
|
+
currentIndex: urls.indexOf(url)
|
|
207
|
+
})
|
|
208
|
+
}
|
|
201
209
|
},
|
|
202
210
|
// 获取图片的路径
|
|
203
211
|
getSrc(item) {
|
|
@@ -95,7 +95,7 @@
|
|
|
95
95
|
// console.log('内置字体图标加载成功');
|
|
96
96
|
},
|
|
97
97
|
fail() {
|
|
98
|
-
console.error('内置字体图标加载出错');
|
|
98
|
+
// console.error('内置字体图标加载出错');
|
|
99
99
|
}
|
|
100
100
|
});
|
|
101
101
|
if (config.customIcon.family) {
|
|
@@ -106,7 +106,7 @@
|
|
|
106
106
|
// console.log('扩展字体图标加载成功');
|
|
107
107
|
},
|
|
108
108
|
fail() {
|
|
109
|
-
console.error('扩展字体图标加载出错');
|
|
109
|
+
// console.error('扩展字体图标加载出错');
|
|
110
110
|
}
|
|
111
111
|
});
|
|
112
112
|
}
|
package/package.json
CHANGED