29 lines
433 B
Vue
29 lines
433 B
Vue
|
|
<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>
|