@tarojs/taro-h5 3.6.0-canary.3 → 3.6.0-canary.5
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.
|
@@ -24,6 +24,7 @@ export const previewImage = (options) => __awaiter(void 0, void 0, void 0, funct
|
|
|
24
24
|
image.style.maxWidth = '100%';
|
|
25
25
|
image.src = url;
|
|
26
26
|
const div = document.createElement('div');
|
|
27
|
+
div.classList.add('swiper-zoom-container');
|
|
27
28
|
div.style.cssText = 'display:flex;align-items:center;justify-content:center;max-width:100%;min-height:100%;';
|
|
28
29
|
div.appendChild(image);
|
|
29
30
|
item.appendChild(div);
|
|
@@ -54,6 +55,8 @@ export const previewImage = (options) => __awaiter(void 0, void 0, void 0, funct
|
|
|
54
55
|
const swiper = document.createElement('taro-swiper-core');
|
|
55
56
|
// @ts-ignore
|
|
56
57
|
swiper.full = true;
|
|
58
|
+
// @ts-ignore
|
|
59
|
+
swiper.zoom = true;
|
|
57
60
|
let children = [];
|
|
58
61
|
try {
|
|
59
62
|
children = yield Promise.all(urls.map(e => loadImage(e, fail)));
|
package/dist/index.cjs.js
CHANGED
|
@@ -2335,6 +2335,7 @@ const previewImage = (options) => __awaiter(void 0, void 0, void 0, function* ()
|
|
|
2335
2335
|
image.style.maxWidth = '100%';
|
|
2336
2336
|
image.src = url;
|
|
2337
2337
|
const div = document.createElement('div');
|
|
2338
|
+
div.classList.add('swiper-zoom-container');
|
|
2338
2339
|
div.style.cssText = 'display:flex;align-items:center;justify-content:center;max-width:100%;min-height:100%;';
|
|
2339
2340
|
div.appendChild(image);
|
|
2340
2341
|
item.appendChild(div);
|
|
@@ -2365,6 +2366,8 @@ const previewImage = (options) => __awaiter(void 0, void 0, void 0, function* ()
|
|
|
2365
2366
|
const swiper = document.createElement('taro-swiper-core');
|
|
2366
2367
|
// @ts-ignore
|
|
2367
2368
|
swiper.full = true;
|
|
2369
|
+
// @ts-ignore
|
|
2370
|
+
swiper.zoom = true;
|
|
2368
2371
|
let children = [];
|
|
2369
2372
|
try {
|
|
2370
2373
|
children = yield Promise.all(urls.map(e => loadImage(e, fail)));
|