@beisen-cmps/picture-preview

引用组件 import PicturePreview from 'ux-upaas-app/picture-preview'

Usage no npm install needed!

<script type="module">
  import beisenCmpsPicturePreview from 'https://cdn.skypack.dev/@beisen-cmps/picture-preview';
</script>

README

引用组件 import PicturePreview from 'ux-upaas-app/picture-preview'

传入参数 const defaultProps = { currentIndex: 1, //当前照片是第几张,从 0 开始计算 imgArr: [ //大图地址数组 "//dfiles.tita.com/portal/110006/0b01ca8093de4376bf8594a62fa92055.jpg", "//dfiles.tita.com/portal/110006/149ab3815a9b4ecd9192648bb4ddefa0.jpg", ], isShow: true, //是否显示 };

render () { return ( <PicturePreview {...defaultProps} /> ) }