Vue3 重构:邮件日志的列表

This commit is contained in:
YunaiV
2023-03-18 13:56:17 +08:00
parent 3c75d6065d
commit 0f4c74fef0
5 changed files with 49 additions and 22 deletions

View File

@@ -23,6 +23,9 @@ const crudSchemas = reactive<CrudSchema[]>([
type: 'daterange',
defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')]
}
},
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
}
},
{
@@ -116,12 +119,15 @@ const crudSchemas = reactive<CrudSchema[]>([
label: '创建时间',
field: 'createTime',
isTable: false,
formatter: dateFormatter
formatter: dateFormatter,
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
}
},
{
label: '操作',
field: 'action',
isForm: false
isDetail: false
}
])
export const { allSchemas } = useCrudSchemas(crudSchemas)