更新.gitignore配置,添加ContextMenu组件类型声明,构建发布dist目录

This commit is contained in:
2025-12-24 11:03:12 +08:00
parent 5cb696ac88
commit cf0275358f
22 changed files with 512 additions and 323 deletions

View File

@ -0,0 +1,36 @@
<template>
<Teleport to="body" v-if="show">
<div class="fixed z-[99999]" :style="menuStyle">
<slot></slot>
</div>
</Teleport>
</template>
<script setup lang="ts">
//mark import
//mark data
const props = defineProps<{
show: boolean,
options: any
}>()
let timer:any = null
const menuStyle = computed(() => {
return {
top: props.options.y + 'px',
left: props.options.x + 'px',
}
})
//mark method
//mark 周期、内置函数等
onMounted(() => {
})
</script>
<style scoped lang="less">
</style>