mirror of https://github.com/certd/certd
🔱: [client] sync upgrade with 3 commits [trident-sync]
perf: rowHandle按钮支持render,删除按钮提供popcomfirm风格示例 perf: table-select open支持context参数client_sync
parent
7b42d7252e
commit
43961c1c18
|
@ -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",
|
||||
|
|
|
@ -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: {
|
||||
|
|
Loading…
Reference in New Issue