WebApp【公共组件库】@前端(For Git Submodule)
Tevin
2022-09-23 9fd5c7103798b275e151260b82cae796f8d426a6
forms/imagePicker/CImagePicker.vue
@@ -25,6 +25,7 @@
            :onImageClick="(index, file)=>handleImgView(index,file)"
        />
        <CImageCompressor ref="compressor" />
        <CImagePreview ref="imgPreview" />
    </view>
</template>
@@ -36,12 +37,14 @@
import { $fetchCommon } from '@fetchers/FCommon';
import { Tools } from '@components/common/Tools';
import CImageCompressor from './CImageCompressor.vue';
import CImagePreview from './CImagePreview.vue';
import './cImagePicker.scss';
export default {
    name: 'CImagePicker',
    components: {
        CImageCompressor,
        CImagePreview,
        AtInput,
        AtImagePicker,
        AtCurtain,
@@ -158,7 +161,8 @@
            const urls = this.files
                .map(file => (file.type === 'btn' ? false : file.url))
                .filter(Boolean);
            Taro.previewImage({
            // 图片预览,支持H5模式下的双指缩放
            this.$refs.imgPreview.$preview({
                current: file.url, // 当前显示图片的http链接
                urls, // 需要预览的图片http链接列表
            });