图片预览

调用方式

this.$previewImage({images,currentIndex})
1

使用示例

this.$previewImage({
    images: [
        'https://img0.baidu.com/it/u=3436810468,4123553368&fm=26&fmt=auto',
        'https://gimg2.baidu.com/image_search/src=http%3A%2F%2Ffile.adquan.com%2Fuploads_img%2Fynwv01547105064.jpg&refer=http%3A%2F%2Ffile.adquan.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=jpeg?sec=1635211538&t=9e019be02c5cfca81300e04ebcc8cbfc',
    ],
    currentIndex: 1,
})
1
2
3
4
5
6
7

参数说明

参数名 参数说明 参数类型
images 图片集合 Array
currentIndex 当前默认显示的图片索引 Number

office文件预览

调用方式

this.$previewOffice(fileUrl)
1

使用示例

this.$previewOffice(
    'https://dl-platform.effio.cn/3eCv1dMQ9v7/platform-app-inspect/1617258463291.ppt'
)
1
2
3

参数说明

参数名 参数说明 参数类型
fileUrl 文件地址 String