yidatec-vue-am-components
v0.0.1
Published
## 1、开发调试
Downloads
77
Readme
Components
1、开发调试
// package.json
"main": "index.ts", // 开发时的切换
"main": "./dist/es/index.mjs",
"main": "./dist/es/packages/components/index.mjs",
2、组件的使用
1)ContextMenu
右键菜单
抛出方法
handleContextmenu 自定义打开右键菜单
handleHide 隐藏右键菜单
推荐
useContextMenu
以 hooks 的方式,作为右键菜单。
<script lang="ts" setup>
import { ContextMenu } from "@am/components"
</script>
<template>
<ContextMenu>
<div class="context-menu">
点击
</div>
<template #menu>
菜单
</template>
</ContextMenu>
</template>
<style scoped>
.context-menu {
height: 400px;
width: 400px;
background-color: aquamarine;
}
</style>
2、AtmTable
左右 table