40 行
575 B
Plaintext
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>
|