tiny-vue/examples/sites/demos/mobile-first/app/floating-button/reclick.vue

19 lines
366 B
Vue

<template>
<tiny-floating-button reset-time="1000" position="center" @click="touchstartHandler"></tiny-floating-button>
</template>
<script>
import { FloatingButton, Modal } from '@opentiny/vue'
export default {
components: {
TinyFloatingButton: FloatingButton
},
methods: {
touchstartHandler() {
Modal.message('click')
}
}
}
</script>