文件
OmniCard/mpuniapp/pages/API/preview-image/preview-image-multi.uvue

40 行
575 B
Plaintext

<template>
<view>
</view>
</template>
<script setup>
type Data = {
urls : Array<string>
indicatorType : string
}
const data = {
urls: [],
indicatorType: "number"
} as Data
function testPreviewImage() {
uni.previewImage({
urls: data.urls,
// #ifdef APP
indicator: data.indicatorType,
// #endif
complete() {
}
})
}
const testClosePreviewImage = () => {
uni.closePreviewImage({})
}
defineExpose({
data,
testPreviewImage,
testClosePreviewImage
})
</script>
<style>
</style>