diff --git a/.env b/.env index ac23070..57f4a0a 100644 --- a/.env +++ b/.env @@ -2,7 +2,7 @@ # 应用配置 # ===================================================================================== # 网站标题 -VITE_TITLE = 绝弹管理系统 +VITE_TITLE = 绝弹管理后台 # 网站副标题 VITE_SUBTITLE = 快速开发web应用的模板工具 # API接口前缀:参见 axios 的 baseURL diff --git a/src/components/table/use-table.tsx b/src/components/table/use-table.tsx index 995c8eb..4ec338d 100644 --- a/src/components/table/use-table.tsx +++ b/src/components/table/use-table.tsx @@ -1,3 +1,4 @@ +import { modal } from "@/utils/modal"; import { Doption, Dropdown, Link, Message, TableColumnData } from "@arco-design/web-vue"; import { isArray, merge } from "lodash-es"; import { reactive } from "vue"; @@ -5,7 +6,6 @@ import { useFormModal } from "../form"; import { TableInstance } from "./table"; import { config } from "./table.config"; import { UseTableOptions } from "./use-interface"; -import { modal } from "@/utils/modal"; const onClick = async (item: any, columnData: any, getTable: any) => { if (item.type === "modify") { @@ -128,17 +128,21 @@ export const useTable = (optionsOrFn: UseTableOptions | (() => UseTableOptions)) ); }); const trigger = () => ( - + ); return ( - - {{ - default: trigger, - content: content, - }} - + <> + 编辑 + 详情 + + {{ + default: trigger, + content: content, + }} + + ); }; } diff --git a/src/pages/demo/index.vue b/src/pages/demo/index.vue index a744a4f..3e2b676 100644 --- a/src/pages/demo/index.vue +++ b/src/pages/demo/index.vue @@ -1,8 +1,68 @@ - + diff --git a/src/pages/demo/test.vue b/src/pages/demo/test.vue index 00408b2..1176afa 100644 --- a/src/pages/demo/test.vue +++ b/src/pages/demo/test.vue @@ -1,20 +1,23 @@