props.ts
541 Bytes
import { FormProps } from 'naive-ui'
import { FormSchema } from './types/form'
const DEFAULT_FORM_PROPS: FormProps = {
size: 'small',
}
export const basicProps = {
formProps: {
type: Object as PropType<FormProps>,
default: () => DEFAULT_FORM_PROPS
},
/**
* @description 表单字段映射成时间
*/
fieldMapToTime: {
type: Array as PropType<any[]>,
default: () => []
},
/**
* @description 表单配置
*/
schemas: {
type: Array as PropType<FormSchema[]>,
default: () => []
},
}