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

chore: jsx文档
chore: jsx文档
pull/14/head
GitHub Actions Bot 2023-06-06 19:24:01 +00:00
parent dc735a8aa2
commit 164b90a22f
1 changed files with 14 additions and 1 deletions

View File

@ -58,7 +58,7 @@ export default function ({ crudExpose }: CreateCrudOptionsProps): CreateCrudOpti
options: computed(() => { options: computed(() => {
return statusRef.data; return statusRef.data;
}) })
} as any, },
columns: { columns: {
id: { id: {
title: "ID", title: "ID",
@ -76,6 +76,19 @@ export default function ({ crudExpose }: CreateCrudOptionsProps): CreateCrudOpti
search: { show: true }, search: { show: true },
type: "dict-radio", type: "dict-radio",
dict: statusRef dict: statusRef
},
customRender: {
title: "自定义render",
search: {
show: true
},
type: "text",
form: {
render({ form }) {
//注意此处的v-model写法
return <a-input v-model={[form.customRender, "value"]} />;
}
}
} }
} }
} }