/** * @description: 搜索配置 */ export const search = [ { prop: 'noticeName', label: '公告名称', type: 'input' as const, placeholder: '请输入公告名称', width: '220px', }, { prop: 'startDateTime', label: '发布时间', type: 'date' as const, dateType: 'date' as const, // 时间范围选择器 valueFormat: 'YYYY-MM-DD', width: '220px', }, { prop: 'endDateTime', label: '结束时间', type: 'date' as const, dateType: 'date' as const, // 时间范围选择器 valueFormat: 'YYYY-MM-DD', width: '220px', }, { prop: 'status', label: '状态', type: 'select' as const, placeholder: '请选择状态', options: [ { label: '草稿', value: 1 }, { label: '已发布', value: 2 }, ], width: '220px', }, ] /** * @description: 表格配置 */ export const tableColumns = [ { prop: 'noticeName', label: '公告名称'}, // { prop: 'noticeContent', label: '公告内容'}, { prop: 'publishTime', label: '发布时间'}, { slotName: 'status', label: '状态'}, { slotName: 'action', label: '操作'}, ] /** * @description: dialog form配置 */ export const formItem = [ { prop: 'noticeName', label: '公告名称', type: 'input' as const, placeholder: '请输入公告名称'}, // 公告内容 { slotName: 'noticeContent', label: '公告内容', type: 'editor' as const}, { prop: 'status', label: '状态', type: 'radio' as const, placeholder: '请选择状态'}, ]