UNPKG

fant-mini-plus

Version:

fant-mini-plus是一个基于Vue3和TypeScript的uni-app高效UI组件库,提供丰富的组件和样式,帮助开发者快速构建高质量的移动应用。

59 lines (58 loc) 1.36 kB
export type DatePickerType = 'date' | 'time' | 'year-month' | 'date-hour-minute' | 'date-time'; export type DatePickerOptions = { /** * 初始选择的日期时间,默认当前时间。 */ currentDate?: number | string; /** * 最小日期时间。 */ startDate?: number; /** * 最大日期时间。 */ endDate?: number; /** * 可选的最大小时,针对 time 类型 */ maxHour?: number; /** * 可选的最大分,针对 time 类型 */ maxMinute?: number; /** * 可选的最大秒,针对 time 类型 */ maxSecond?: number; /** * 可选的最小小时,针对 time 类型 */ minHour?: number; /** * 可选的最小分,针对 time 类型 */ minMinute?: number; /** * 可选的最小秒,针对 time 类型 */ minSecond?: number; /** * 类型 */ type?: DatePickerType; /** * 主题颜色 */ themeColor?: string; /** * 接口调用成功的回调函数 */ success?: (result: any) => void; /** * 接口调用失败的回调函数 */ fail?: (result: any) => void; }; export interface DatePicker { showDatePicker(datePickerOptions: DatePickerOptions): void; }