|
|
@ -7,7 +7,8 @@ export const columns: BasicColumn[] = [ |
|
|
|
{ |
|
|
|
title: '标题', |
|
|
|
align:"center", |
|
|
|
dataIndex: 'title' |
|
|
|
dataIndex: 'title', |
|
|
|
slots: { customRender: 'htmlSlot' }, |
|
|
|
}, |
|
|
|
{ |
|
|
|
title: '描述', |
|
|
@ -15,6 +16,17 @@ export const columns: BasicColumn[] = [ |
|
|
|
dataIndex: 'description', |
|
|
|
slots: { customRender: 'htmlSlot' }, |
|
|
|
}, |
|
|
|
{ |
|
|
|
title: '底图', |
|
|
|
align:"center", |
|
|
|
dataIndex: 'image', |
|
|
|
customRender:render.renderAvatar, |
|
|
|
}, |
|
|
|
{ |
|
|
|
title: '排序字段', |
|
|
|
align:"center", |
|
|
|
dataIndex: 'orderNo' |
|
|
|
}, |
|
|
|
]; |
|
|
|
//查询数据
|
|
|
|
export const searchFormSchema: FormSchema[] = [ |
|
|
@ -24,11 +36,23 @@ export const formSchema: FormSchema[] = [ |
|
|
|
{ |
|
|
|
label: '标题', |
|
|
|
field: 'title', |
|
|
|
component: 'Input', |
|
|
|
component: 'JCodeEditor', //TODO String后缀暂未添加
|
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '描述', |
|
|
|
field: 'description', |
|
|
|
component: 'JCodeEditor', //TODO String后缀暂未添加
|
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '底图', |
|
|
|
field: 'image', |
|
|
|
component: 'JImageUpload', |
|
|
|
componentProps:{ |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '排序字段', |
|
|
|
field: 'orderNo', |
|
|
|
component: 'InputNumber', |
|
|
|
}, |
|
|
|
]; |