1.0.83 • Published 3 years ago

@iwux/gallery v1.0.83

Weekly downloads
-
License
ISC
Repository
-
Last release
3 years ago

usage

{ "usingComponents": { "wux-gallery": "@iwux/gallery" } }

import { $gallery } from '@iwux/gallery';

Page({ showGallery() { $gallery().show({ urls: 'http://file.40017.cn/jinfu/baitiao/wxapp/fq-travel/images/439275/imageUrl_3.jpg', 'http://file.40017.cn/jinfu/baitiao/wxapp/fq-travel/images/439275/imageUrl_2.jpg', 'http://file.40017.cn/jinfu/baitiao/wxapp/fq-travel/images/439275/imageUrl_1.jpg', , current: 0, showIndicator: true, showDelete: true, hideOnTap: true, imageMode: 'aspectFit', vertical: false, onChange: (current) => { console.log(current); }, onTap: (current) => { console.log(current); }, onHide: (current) => { console.log(current); }, onDelete: (current, url) => { console.log(current, url); }, }); }, hideGallery() { $gallery().hide(); }, });