tiny-vue/examples/docs/resources/pc/demo/image/load-event.vue

24 lines
416 B
Vue

<template>
<tiny-image :src="url" @load="loadHandler"></tiny-image>
</template>
<script lang="jsx">
import { Image, Modal } from '@opentiny/vue'
export default {
components: {
TinyImage: Image
},
data() {
return {
url: '/static/images/mountain.png'
}
},
methods: {
loadHandler() {
Modal.message({ message: '加载成功触发事件', status: 'info' })
}
}
}
</script>