mirror of https://github.com/certd/certd
🔱: [client] sync upgrade with 3 commits [trident-sync]
chore: jsx文档 chore: jsx文档pull/14/head
parent
dc735a8aa2
commit
164b90a22f
|
@ -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"]} />;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue