Press n or j to go to the next uncovered block, b, p or k for the previous block.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 | import { Moment } from "moment"; import { ChangeContext } from "../form/controlled"; export type RangeDateType = [Moment, Moment]; export type CalendarTableType = "date" | "time" | "month" | "year"; export type showTimeType<T> = | boolean | { /** * 默认值 */ defaultValue?: T; /** * 小时选项间隔 * @default 1 */ hourStep?: number; /** * 秒选项间隔 * @default 1 */ minuteStep?: number; /** * 分钟选项间隔 * @default 1 */ secondStep?: number; /** * 时间格式,用于指定显示各列 * * @default "HH:mm:ss" */ format?: string; /** * 顶部内容 */ caption?: React.ReactNode; }; export interface DateChangeContext extends ChangeContext<React.SyntheticEvent> { type?: CalendarTableType; } |