Files
xl-mobile/src/components/XActionsheet.vue

29 lines
433 B
Vue
Raw Normal View History

2025-03-28 10:48:50 +08:00
<script setup>
import {ref} from "vue";
const emits = defineEmits(['success']);
const show = ref(false);
const success = (e) => {
emits('success', e);
}
</script>
<template>
<view @longpress="show=true">
<slot></slot>
</view>
<tui-actionsheet
v-bind="$attrs"
:show="show"
@click="success"
@cancel="show=false">
</tui-actionsheet>
</template>
<style scoped>
</style>