From 0af361ea04a2f5f8b762011c9d814343a7ef6719 Mon Sep 17 00:00:00 2001 From: wf <2547096351@qq.com> Date: Tue, 16 Jul 2024 18:49:19 +0800 Subject: [PATCH] =?UTF-8?q?little:=20=E4=B8=80=E7=82=B9=E5=B0=8F=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/directives/index.ts | 4 +- .../menu-management/menu-management copy.vue | 135 ------------ .../menu-management/menu-management.vue | 192 +----------------- 3 files changed, 6 insertions(+), 325 deletions(-) delete mode 100644 src/views/system-management/menu-management/menu-management copy.vue diff --git a/src/directives/index.ts b/src/directives/index.ts index 825390f..f41138c 100644 --- a/src/directives/index.ts +++ b/src/directives/index.ts @@ -1,11 +1,13 @@ +import { App } from "vue"; import antiShake from "@/directives/modules/anti-shake"; import throttle from "@/directives/modules/throttle"; + // 定义安装函数 // install 函数是一个对象中的方法,其作用是将一系列指令对象安装到 Vue 应用实例中,它自带两个参数:app 和 options // app就是vue实例,options则是安装函数的参数(可选) // install 方法的定义就插件对象,install 方法会在引入插件时自动被 vue 调用,并传参 vue 实例和 options const directives = { - install(app: any) { + install(app: App) { // 将一系列自定义指令对象安装到 Vue 应用实例中 app.directive("antiShake", antiShake); app.directive("throttle", throttle); diff --git a/src/views/system-management/menu-management/menu-management copy.vue b/src/views/system-management/menu-management/menu-management copy.vue deleted file mode 100644 index 66dcde7..0000000 --- a/src/views/system-management/menu-management/menu-management copy.vue +++ /dev/null @@ -1,135 +0,0 @@ - - - - - diff --git a/src/views/system-management/menu-management/menu-management.vue b/src/views/system-management/menu-management/menu-management.vue index 2f35b6a..d437017 100644 --- a/src/views/system-management/menu-management/menu-management.vue +++ b/src/views/system-management/menu-management/menu-management.vue @@ -1,193 +1,7 @@ - -const columns = [ - { - title: "菜单名称", - dataIndex: "title" - }, - { - title: "图标", - dataIndex: "icon" - }, - { - title: "排序", - dataIndex: "sort" - }, - { - title: "权限标识", - dataIndex: "power" - }, - { - title: "路由", - dataIndex: "path" - }, - { - title: "组件路径", - dataIndex: "componentPath" - }, - { - title: "组件名称", - dataIndex: "name" - }, - { - title: "显示状态", - dataIndex: "hide" - }, - { - title: "是否缓存", - dataIndex: "keepAlive" - }, - { - title: "是否外链", - dataIndex: "link" - }, - { - title: "是否内嵌", - dataIndex: "iframe" - }, - { - title: "操作", - dataIndex: "operation", - slotName: "operation" - } -]; - -const data = reactive([ - { - key: "1", - name: "Jane Doe", - salary: 23000, - address: "32 Park Road, London", - email: "jane.doe@example.com", - expand: "Expand Data" - }, - { - key: "2", - name: "Alisa Ross", - salary: 25000, - address: "35 Park Road, London", - email: "alisa.ross@example.com" - }, - { - key: "3", - name: "Kevin Sandra", - salary: 22000, - address: "31 Park Road, London", - email: "kevin.sandra@example.com" - }, - { - key: "4", - name: "Ed Hellen", - salary: 17000, - address: "42 Park Road, London", - email: "ed.hellen@example.com" - }, - { - key: "5", - name: "William Smith", - salary: 27000, - address: "62 Park Road, London", - email: "william.smith@example.com" - } -]); - -// const loading = ref(false); -const list = computed(() => { - if (dynamicRoutes.length > 0) { - return dynamicRoutes[0].children; - } else { - return []; - } -}); - -const form = ref({ - name: "" -}); - -// const onDelete = (cell: any) => { -// console.log("删除", cell); -// }; - - - +