Vue3 重构:基本完善完 邮件模版 的重构

This commit is contained in:
YunaiV
2023-03-18 11:40:55 +08:00
parent 7d22328d69
commit e8d83d4718
4 changed files with 136 additions and 23 deletions

View File

@@ -1,8 +1,5 @@
import type { CrudSchema } from '@/hooks/web/useCrudSchemas'
import { DictTag } from '@/components/DictTag'
import { TableColumn } from '@/types/table'
import { dateFormatter } from '@/utils/formatTime'
import { getBoolDictOptions } from '@/utils/dict'
const { t } = useI18n() // 国际化
@@ -55,17 +52,10 @@ const crudSchemas = reactive<CrudSchema[]>([
{
label: '是否开启 SSL',
field: 'sslEnable',
formatter: (_: Recordable, __: TableColumn, cellValue: boolean) => {
return h(DictTag, {
type: DICT_TYPE.INFRA_BOOLEAN_STRING,
value: cellValue
})
},
dictType: DICT_TYPE.INFRA_BOOLEAN_STRING,
dictClass: 'boolean',
form: {
component: 'Radio',
componentProps: {
options: getBoolDictOptions(DICT_TYPE.INFRA_BOOLEAN_STRING)
}
component: 'Radio'
}
},
{