refactor: notice

This commit is contained in:
xingyu
2022-11-12 23:33:29 +08:00
parent f1445844bf
commit 301b66d30e
4 changed files with 175 additions and 216 deletions

View File

@ -27,18 +27,38 @@ type VxeCrudColumns = Omit<VxeTableColumn, 'children'> & {
title?: string
formatter?: VxeColumnPropTypes.Formatter
isSearch?: boolean
search?: VxeFormItemProps
search?: CrudSearchParams
isTable?: boolean
table?: VxeTableDefines.ColumnOptions
table?: CrudTableParams
isForm?: boolean
form?: FormSchema
form?: CrudFormParams
isDetail?: boolean
detail?: DescriptionsSchema
detail?: CrudDescriptionsParams
print?: CrudPrintParams
children?: VxeCrudColumns[]
dictType?: string
}
type CrudSearchParams = {
// 是否显示在查询项
show?: boolean
} & Omit<VxeFormItemProps, 'field'>
type CrudTableParams = {
// 是否显示表头
show?: boolean
} & Omit<VxeTableDefines.ColumnOptions, 'field'>
type CrudFormParams = {
// 是否显示表单项
show?: boolean
} & Omit<FormSchema, 'field'>
type CrudDescriptionsParams = {
// 是否显示表单项
show?: boolean
} & Omit<DescriptionsSchema, 'field'>
type CrudPrintParams = {
// 是否显示表单项
show?: boolean