diff --git a/packages/ui/certd-client/package.json b/packages/ui/certd-client/package.json index 14fb5afce..363059b5a 100644 --- a/packages/ui/certd-client/package.json +++ b/packages/ui/certd-client/package.json @@ -19,7 +19,7 @@ "circle:check": "pnpm dependency-cruise --validate --output-type err-html -f dependency-report.html src", "afterPubPush": "git add . && git commit -m \"build: publish success\" && git push" }, - "author": "Greper", + "author": "greper", "license": "MIT", "dependencies": { "@ant-design/colors": "^7.0.2", diff --git a/packages/ui/certd-client/src/views/crud/row-handle/tooltip/crud.tsx b/packages/ui/certd-client/src/views/crud/row-handle/tooltip/crud.tsx index 02d989cd1..fb6e4e5e3 100644 --- a/packages/ui/certd-client/src/views/crud/row-handle/tooltip/crud.tsx +++ b/packages/ui/certd-client/src/views/crud/row-handle/tooltip/crud.tsx @@ -1,5 +1,5 @@ import * as api from "./api"; -import {dict, utils} from "@fast-crud/fast-crud"; +import { dict, utils } from "@fast-crud/fast-crud"; import { ref } from "vue"; import { AddReq, CreateCrudOptionsProps, CreateCrudOptionsRet, DelReq, EditReq, UserPageQuery, UserPageRes } from "@fast-crud/fast-crud"; export default async function ({ crudExpose }: CreateCrudOptionsProps): Promise { @@ -42,8 +42,16 @@ export default async function ({ crudExpose }: CreateCrudOptionsProps): Promise< } }, remove: { - tooltip: { - title: "删除" + render(scope: any) { + function confirm() { + const { row, index } = scope; + crudExpose.doRemove({ row, index }, { noConfirm: true }); + } + return ( + + 删除 + + ); } }, custom: {