mirror of https://github.com/certd/certd
31 lines
569 B
TypeScript
31 lines
569 B
TypeScript
//此处演示从后台获取crudOptions配置字符串
|
|
export const crudOptions = `
|
|
({crudExpose,dict}) => {
|
|
return {
|
|
columns: {
|
|
id: {
|
|
title: "ID",
|
|
key: "id",
|
|
type: "number",
|
|
column: {
|
|
width: 50
|
|
},
|
|
form: {
|
|
show: false
|
|
}
|
|
},
|
|
radio: {
|
|
title: "状态",
|
|
search: { show: true },
|
|
type: "dict-radio",
|
|
dict: dict({
|
|
url: "/mock/dicts/OpenStatusEnum?single"
|
|
})
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
`;
|