import {PropType} from "@peryl/react-compose"; export const TimePublicProps = { displayFormat: { type: String, }, // 显示值格式化字符串 valueFormat: { type: String, }, // 值格式化字符串 max: { type: String }, // 最大时间,格式与valueFormat一致 min: { type: String }, // 最小时间,格式与valueFormat一致 layout: { type: [String, Array] as PropType, default: 'hms' }, // 时分秒布局 custom: { type: Function as PropType<(layout: string, val: any) => number[]> }, // 自定义时间点 checkDisabled: Function as PropType<(item: number, layout: any, val: any) => boolean>,// 自定义控制某些时间点不可选择 defaultTime: { type: String, default: '00:00:00' }, // 默认时间,没有值得时候,选择器初始状态的时间 defaultStartTime: { type: String, default: '00:00:00' }, // 默认时间,没有值得时候,开始时间选择面板初始状态的时间 defaultEndTime: { type: String, default: '23:59:59' }, // 默认时间,没有值得时候,结束时间选择面板初始状态的时间 startPlaceholder: { type: String }, // 开始时间输入框空值占位符 endPlaceholder: { type: String } // 结束时间输入框空值占位符 } as const;