`
点击预览图片
<script setup>
import { VxeUI } from 'vxe-pc-ui'
const clickEvent = () => {
VxeUI.previewImage({
activeIndex: 1,
urlList: [
'https://vxeui.com/resource/img/fj573.jpeg'
],
events: {
change ({ url }) {
console.log(`切换事件 url=${url}`)
},
rotate ({ url, rotateValue }) {
console.log(`旋转事件 ${rotateValue}度 url=${url}`)
}
}
})
}
</script>
`
`
`