UNPKG

@lxlib/form

Version:

This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 9.1.1.

73 lines (72 loc) 2.14 kB
import { SFDLSSize, SFUISchemaItem } from '../../schema/ui'; export interface SFTimeWidgetSchema extends SFUISchemaItem { size?: SFDLSSize; placeholder?: string; /** * **Just only support date-fns** * * Return the formatted date string in the given format, [Accepted tokens](https://date-fns.org/v1.30.1/docs/format), like this: * - `yyyy-MM-dd HH:mm:ss` Date time * - `X` Seconds timestamp * - `x` Milliseconds timestamp */ format?: string; /** * To set the date format (equar [nzFormat](https://ng.ant.design/components/date-picker/zh#api)) * * **TIPS** [nzFormat special instructions](https://ng.ant.design/components/date-picker/en#api) */ displayFormat?: string; /** * 是否UTC新纪元(表示从 `1970` 开始计毫秒数),当 `type='number'` 时有效,默认:`false` */ utcEpoch?: boolean; /** * Allow clearing text, default: `true` */ allowEmpty?: boolean; /** * Clear tooltip of icon, default: `清除` */ clearText?: string; /** * Default open panel value, default: `new Date()` */ defaultOpenValue?: Date; /** * To specify the hours that cannot be selected */ disabledHours?: () => number[]; /** * To specify the minutes that cannot be selected */ disabledMinutes?: (hour: number) => number[]; /** * To specify the seconds that cannot be selected */ disabledSeconds?: (hour: number, minute: number) => number[]; /** * Hide the options that can not be selected, default: `false` */ hideDisabledOptions?: boolean; /** * Display as 12 hours format, with default format, default: `h:mm:ss a` */ use12Hours?: boolean; /** * Interval between hours in picker, default: `1` */ hourStep?: number; /** * Interval between minutes in picker, default: `1` */ minuteStep?: number; /** * Interval between seconds in picker, default: `1` */ secondStep?: number; /** * ClassName of panel */ popupClassName?: string; }