From 164b90a22f67eef653e6248824dd5b8bad9f2c36 Mon Sep 17 00:00:00 2001 From: GitHub Actions Bot Date: Tue, 6 Jun 2023 19:24:01 +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 chore: jsx文档 chore: jsx文档 --- .../src/views/crud/feature/search/crud.tsx | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/packages/ui/certd-client/src/views/crud/feature/search/crud.tsx b/packages/ui/certd-client/src/views/crud/feature/search/crud.tsx index b5133e01..eed73fcc 100644 --- a/packages/ui/certd-client/src/views/crud/feature/search/crud.tsx +++ b/packages/ui/certd-client/src/views/crud/feature/search/crud.tsx @@ -58,7 +58,7 @@ export default function ({ crudExpose }: CreateCrudOptionsProps): CreateCrudOpti options: computed(() => { return statusRef.data; }) - } as any, + }, columns: { id: { title: "ID", @@ -76,6 +76,19 @@ export default function ({ crudExpose }: CreateCrudOptionsProps): CreateCrudOpti search: { show: true }, type: "dict-radio", dict: statusRef + }, + customRender: { + title: "自定义render", + search: { + show: true + }, + type: "text", + form: { + render({ form }) { + //注意此处的v-model写法 + return ; + } + } } } }