From 43961c1c18b4625a19ad68cf4edb996d46d5760a Mon Sep 17 00:00:00 2001 From: GitHub Actions Bot Date: Mon, 2 Dec 2024 19:26:32 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=B1:=20[client]=20sync=20upgrade=20wit?= =?UTF-8?q?h=203=20commits=20[trident-sync]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit perf: rowHandle按钮支持render,删除按钮提供popcomfirm风格示例 perf: table-select open支持context参数 --- packages/ui/certd-client/package.json | 2 +- .../src/views/crud/row-handle/tooltip/crud.tsx | 14 +++++++++++--- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/packages/ui/certd-client/package.json b/packages/ui/certd-client/package.json index 14fb5afc..363059b5 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 02d989cd..fb6e4e5e 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: {