mirror of https://github.com/certd/certd
🔱: [client] sync upgrade with 3 commits [trident-sync]
perf: rowHandle按钮支持render,删除按钮提供popcomfirm风格示例 perf: table-select open支持context参数pull/91/head
parent
7b42d7252e
commit
43961c1c18
|
@ -19,7 +19,7 @@
|
||||||
"circle:check": "pnpm dependency-cruise --validate --output-type err-html -f dependency-report.html src",
|
"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"
|
"afterPubPush": "git add . && git commit -m \"build: publish success\" && git push"
|
||||||
},
|
},
|
||||||
"author": "Greper",
|
"author": "greper",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@ant-design/colors": "^7.0.2",
|
"@ant-design/colors": "^7.0.2",
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import * as api from "./api";
|
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 { ref } from "vue";
|
||||||
import { AddReq, CreateCrudOptionsProps, CreateCrudOptionsRet, DelReq, EditReq, UserPageQuery, UserPageRes } from "@fast-crud/fast-crud";
|
import { AddReq, CreateCrudOptionsProps, CreateCrudOptionsRet, DelReq, EditReq, UserPageQuery, UserPageRes } from "@fast-crud/fast-crud";
|
||||||
export default async function ({ crudExpose }: CreateCrudOptionsProps): Promise<CreateCrudOptionsRet> {
|
export default async function ({ crudExpose }: CreateCrudOptionsProps): Promise<CreateCrudOptionsRet> {
|
||||||
|
@ -42,8 +42,16 @@ export default async function ({ crudExpose }: CreateCrudOptionsProps): Promise<
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
remove: {
|
remove: {
|
||||||
tooltip: {
|
render(scope: any) {
|
||||||
title: "删除"
|
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: {
|
custom: {
|
||||||
|
|
Loading…
Reference in New Issue