EASYAIuniappNewUI/node_modules/@tuniao/tnui-vue3-uniapp/components/overlay/src/overlay.vue
2025-02-08 18:50:38 +08:00

26 lines
581 B
Vue

<script lang="ts" setup>
import {} from 'vue'
import { overlayEmits, overlayProps } from './overlay'
import { useOverlay } from './composables'
const props = defineProps(overlayProps)
const emits = defineEmits(overlayEmits)
const { overlayClass, overlayStyle, overlayClick } = useOverlay(props, emits)
</script>
<template>
<view
:class="[overlayClass]"
:style="overlayStyle"
@tap.stop="overlayClick"
@touchmove.stop.prevent="() => {}"
>
<slot />
</view>
</template>
<style lang="scss" scoped>
@import '../../../theme-chalk/src/overlay.scss';
</style>