🔱: [client] sync upgrade with 3 commits [trident-sync]

perf: rowHandle按钮支持render,删除按钮提供popcomfirm风格示例
perf: table-select open支持context参数
client_sync
GitHub Actions Bot 2024-12-02 19:26:32 +00:00
parent 7b42d7252e
commit 43961c1c18
2 changed files with 12 additions and 4 deletions

View File

@ -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",

View File

@ -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 (
<a-popconfirm title={"text"} ok-text="Yes" cancel-text="No" onConfirm={confirm}>
<a-button></a-button>
</a-popconfirm>
);
}
},
custom: {