|
7 | 7 | name | type | default | description | required |
8 | 8 | -- | -- | -- | -- | -- |
9 | 9 | className | String | - | className of component | N |
10 | | -style | Object | - | CSS(Cascading Style Sheets),Typescript:`React.CSSProperties` | N |
| 10 | +style | Object | - | CSS(Cascading Style Sheets),Typescript: `React.CSSProperties` | N |
11 | 11 | allowInput | Boolean | false | \- | N |
12 | 12 | borderless | Boolean | false | \- | N |
13 | 13 | clearable | Boolean | false | \- | N |
14 | | -disableTime | Function | - | disable time config function。Typescript:`(h: number, m: number, s: number, ms: number) => Partial<{ hour: Array<number>, minute: Array<number>, second: Array<number>, millisecond: Array<number> }>` | N |
| 14 | +disableTime | Function | - | disable time config function。Typescript: `(h: number, m: number, s: number, ms: number) => Partial<{ hour: Array<number>, minute: Array<number>, second: Array<number>, millisecond: Array<number> }>` | N |
15 | 15 | disabled | Boolean | undefined | \- | N |
16 | 16 | format | String | HH:mm:ss | \- | N |
17 | 17 | hideDisabledTime | Boolean | true | \- | N |
18 | | -inputProps | Object | - | Typescript:`InputProps`,[Input API Documents](./input?tab=api)。[see more ts definition](https://github.com/Tencent/tdesign-react/blob/develop/packages/components/time-picker/type.ts) | N |
19 | | -label | TNode | - | Typescript:`string \| TNode`。[see more ts definition](https://github.com/Tencent/tdesign-react/blob/develop/packages/components/common.ts) | N |
| 18 | +inputProps | Object | - | Typescript: `InputProps`,[Input API Documents](./input?tab=api)。[see more ts definition](https://github.com/Tencent/tdesign-react/blob/develop/packages/components/time-picker/type.ts) | N |
| 19 | +label | TNode | - | Typescript: `string \| TNode`。[see more ts definition](https://github.com/Tencent/tdesign-react/blob/develop/packages/components/common.ts) | N |
20 | 20 | placeholder | String | undefined | \- | N |
21 | | -popupProps | Object | - | Typescript:`PopupProps`,[Popup API Documents](./popup?tab=api)。[see more ts definition](https://github.com/Tencent/tdesign-react/blob/develop/packages/components/time-picker/type.ts) | N |
22 | | -presets | Object | - | Typescript:`PresetTime` `interface PresetTime { [presetName: string]: TimePickerValue \| (() => TimePickerValue) }`。[see more ts definition](https://github.com/Tencent/tdesign-react/blob/develop/packages/components/time-picker/type.ts) | N |
| 21 | +popupProps | Object | - | Typescript: `PopupProps`,[Popup API Documents](./popup?tab=api)。[see more ts definition](https://github.com/Tencent/tdesign-react/blob/develop/packages/components/time-picker/type.ts) | N |
| 22 | +prefixIcon | TElement | - | Typescript: `TNode`。[see more ts definition](https://github.com/Tencent/tdesign-react/blob/develop/packages/components/common.ts) | N |
| 23 | +presets | Object | - | Typescript: `PresetTime` `interface PresetTime { [presetName: string]: TimePickerValue \| (() => TimePickerValue) }`。[see more ts definition](https://github.com/Tencent/tdesign-react/blob/develop/packages/components/time-picker/type.ts) | N |
23 | 24 | readonly | Boolean | undefined | Whether it is read only, the priority is greater than `allowInput` | N |
24 | | -selectInputProps | Object | - | Typescript:`SelectInputProps`,[SelectInput API Documents](./select-input?tab=api)。[see more ts definition](https://github.com/Tencent/tdesign-react/blob/develop/packages/components/time-picker/type.ts) | N |
| 25 | +selectInputProps | Object | - | Typescript: `SelectInputProps`,[SelectInput API Documents](./select-input?tab=api)。[see more ts definition](https://github.com/Tencent/tdesign-react/blob/develop/packages/components/time-picker/type.ts) | N |
25 | 26 | size | String | medium | options: small/medium/large | N |
26 | 27 | status | String | default | options: default/success/warning/error | N |
27 | | -steps | Array | [1, 1, 1] | Typescript:`Array<string \| number>` | N |
28 | | -tips | TNode | - | Typescript:`string \| TNode`。[see more ts definition](https://github.com/Tencent/tdesign-react/blob/develop/packages/components/common.ts) | N |
29 | | -value | String | - | Typescript:`TimePickerValue` `type TimePickerValue = string`。[see more ts definition](https://github.com/Tencent/tdesign-react/blob/develop/packages/components/time-picker/type.ts) | N |
30 | | -defaultValue | String | - | uncontrolled property。Typescript:`TimePickerValue` `type TimePickerValue = string`。[see more ts definition](https://github.com/Tencent/tdesign-react/blob/develop/packages/components/time-picker/type.ts) | N |
31 | | -valueDisplay | TNode | - | `MouseEvent<SVGElement>`。Typescript:`string \| TNode<{ value: TimePickerValue }>`。[see more ts definition](https://github.com/Tencent/tdesign-react/blob/develop/packages/components/common.ts) | N |
32 | | -onBlur | Function | | Typescript:`(context: { value: TimePickerValue } & SelectInputBlurContext) => void`<br/>[see more ts definition](https://github.com/Tencent/tdesign-react/blob/develop/packages/components/time-picker/type.ts)。<br/>`import { SelectInputBlurContext } from '@SelectInput'`<br/> | N |
33 | | -onChange | Function | | Typescript:`(value: TimePickerValue) => void`<br/> | N |
34 | | -onClear | Function | | Typescript:`(context: { e: MouseEvent }) => void`<br/>Triggered when the clear button is clicked | N |
35 | | -onClose | Function | | Typescript:`(context: { e: MouseEvent }) => void`<br/> | N |
36 | | -onConfirm | Function | | Typescript:`(context: { e: MouseEvent }) => void`<br/> | N |
37 | | -onFocus | Function | | Typescript:`(context: { value: TimePickerValue; e: FocusEvent }) => void`<br/> | N |
38 | | -onInput | Function | | Typescript:`(context: { value: TimePickerValue; e: InputEvent }) => void`<br/> | N |
39 | | -onOpen | Function | | Typescript:`(context: { e: MouseEvent }) => void`<br/> | N |
40 | | -onPick | Function | | Typescript:`(value: TimePickerValue, context: { e: MouseEvent }) => void`<br/> | N |
| 28 | +steps | Array | [1, 1, 1] | Typescript: `Array<string \| number>` | N |
| 29 | +suffixIcon | TElement | - | Typescript: `TNode`。[see more ts definition](https://github.com/Tencent/tdesign-react/blob/develop/packages/components/common.ts) | N |
| 30 | +tips | TNode | - | Typescript: `string \| TNode`。[see more ts definition](https://github.com/Tencent/tdesign-react/blob/develop/packages/components/common.ts) | N |
| 31 | +value | String | - | Typescript: `TimePickerValue` `type TimePickerValue = string`。[see more ts definition](https://github.com/Tencent/tdesign-react/blob/develop/packages/components/time-picker/type.ts) | N |
| 32 | +defaultValue | String | - | uncontrolled property。Typescript: `TimePickerValue` `type TimePickerValue = string`。[see more ts definition](https://github.com/Tencent/tdesign-react/blob/develop/packages/components/time-picker/type.ts) | N |
| 33 | +valueDisplay | TNode | - | `MouseEvent<SVGElement>`。Typescript: `string \| TNode<{ value: TimePickerValue }>`。[see more ts definition](https://github.com/Tencent/tdesign-react/blob/develop/packages/components/common.ts) | N |
| 34 | +onBlur | Function | | Typescript: `(context: { value: TimePickerValue } & SelectInputBlurContext) => void`<br/>[see more ts definition](https://github.com/Tencent/tdesign-react/blob/develop/packages/components/time-picker/type.ts)。<br/>`import { SelectInputBlurContext } from '@SelectInput'`<br/> | N |
| 35 | +onChange | Function | | Typescript: `(value: TimePickerValue) => void`<br/> | N |
| 36 | +onClear | Function | | Typescript: `(context: { e: MouseEvent }) => void`<br/>Triggered when the clear button is clicked | N |
| 37 | +onClose | Function | | Typescript: `(context: { e: MouseEvent }) => void`<br/> | N |
| 38 | +onConfirm | Function | | Typescript: `(context: { e: MouseEvent }) => void`<br/> | N |
| 39 | +onFocus | Function | | Typescript: `(context: { value: TimePickerValue; e: FocusEvent }) => void`<br/> | N |
| 40 | +onInput | Function | | Typescript: `(context: { value: TimePickerValue; e: InputEvent }) => void`<br/> | N |
| 41 | +onOpen | Function | | Typescript: `(context: { e: MouseEvent }) => void`<br/> | N |
| 42 | +onPick | Function | | Typescript: `(value: TimePickerValue, context: { e: MouseEvent }) => void`<br/> | N |
41 | 43 |
|
42 | 44 |
|
43 | 45 | ### TimeRangePicker Props |
44 | 46 |
|
45 | 47 | name | type | default | description | required |
46 | 48 | -- | -- | -- | -- | -- |
47 | 49 | className | String | - | className of component | N |
48 | | -style | Object | - | CSS(Cascading Style Sheets),Typescript:`React.CSSProperties` | N |
| 50 | +style | Object | - | CSS(Cascading Style Sheets),Typescript: `React.CSSProperties` | N |
49 | 51 | allowInput | Boolean | false | \- | N |
50 | 52 | autoSwap | Boolean | true | \- | N |
51 | 53 | borderless | Boolean | false | \- | N |
52 | 54 | clearable | Boolean | false | \- | N |
53 | | -disableTime | Function | - | Typescript:`(h: number, m: number, s: number, ms: number, context: { partial: TimeRangePickerPartial }) =>Partial<{ hour: Array<number>, minute: Array<number>, second: Array<number> }>` `type TimeRangePickerPartial = 'start' \| 'end'`。[see more ts definition](https://github.com/Tencent/tdesign-react/blob/develop/packages/components/time-picker/type.ts) | N |
54 | | -disabled | Boolean / Array | undefined | Typescript:`boolean \| Array<boolean>` | N |
| 55 | +disableTime | Function | - | Typescript: `(h: number, m: number, s: number, ms: number, context: { partial: TimeRangePickerPartial }) =>Partial<{ hour: Array<number>, minute: Array<number>, second: Array<number> }>` `type TimeRangePickerPartial = 'start' \| 'end'`。[see more ts definition](https://github.com/Tencent/tdesign-react/blob/develop/packages/components/time-picker/type.ts) | N |
| 56 | +disabled | Boolean / Array | undefined | Typescript: `boolean \| Array<boolean>` | N |
55 | 57 | format | String | HH:mm:ss | \- | N |
56 | 58 | hideDisabledTime | Boolean | true | \- | N |
57 | | -label | TNode | - | Typescript:`string \| TNode`。[see more ts definition](https://github.com/Tencent/tdesign-react/blob/develop/packages/components/common.ts) | N |
58 | | -placeholder | String / Array | undefined | Typescript:`string \| Array<string>` | N |
59 | | -popupProps | Object | - | Typescript:`PopupProps`,[Popup API Documents](./popup?tab=api)。[see more ts definition](https://github.com/Tencent/tdesign-react/blob/develop/packages/components/time-picker/type.ts) | N |
60 | | -presets | Object | - | Typescript:`PresetTimeRange` `interface PresetTimeRange { [presetRageName: string]: TimeRangeValue \| (() => TimeRangeValue)}`。[see more ts definition](https://github.com/Tencent/tdesign-react/blob/develop/packages/components/time-picker/type.ts) | N |
61 | | -rangeInputProps | Object | - | Typescript:`RangeInputProps`,[RangeInput API Documents](./range-input?tab=api)。[see more ts definition](https://github.com/Tencent/tdesign-react/blob/develop/packages/components/time-picker/type.ts) | N |
| 59 | +label | TNode | - | Typescript: `string \| TNode`。[see more ts definition](https://github.com/Tencent/tdesign-react/blob/develop/packages/components/common.ts) | N |
| 60 | +placeholder | String / Array | undefined | Typescript: `string \| Array<string>` | N |
| 61 | +popupProps | Object | - | Typescript: `PopupProps`,[Popup API Documents](./popup?tab=api)。[see more ts definition](https://github.com/Tencent/tdesign-react/blob/develop/packages/components/time-picker/type.ts) | N |
| 62 | +presets | Object | - | Typescript: `PresetTimeRange` `interface PresetTimeRange { [presetRageName: string]: TimeRangeValue \| (() => TimeRangeValue)}`。[see more ts definition](https://github.com/Tencent/tdesign-react/blob/develop/packages/components/time-picker/type.ts) | N |
| 63 | +rangeInputProps | Object | - | Typescript: `RangeInputProps`,[RangeInput API Documents](./range-input?tab=api)。[see more ts definition](https://github.com/Tencent/tdesign-react/blob/develop/packages/components/time-picker/type.ts) | N |
62 | 64 | readonly | Boolean | undefined | Whether it is read only, the priority is greater than `allowInput` | N |
63 | 65 | size | String | medium | options: small/medium/large | N |
64 | 66 | status | String | default | options: default/success/warning/error | N |
65 | | -steps | Array | [1, 1, 1] | Typescript:`Array<string \| number>` | N |
66 | | -tips | TNode | - | Typescript:`string \| TNode`。[see more ts definition](https://github.com/Tencent/tdesign-react/blob/develop/packages/components/common.ts) | N |
67 | | -value | Array | - | Typescript:`TimeRangeValue` `type TimeRangeValue = Array<string>`。[see more ts definition](https://github.com/Tencent/tdesign-react/blob/develop/packages/components/time-picker/type.ts) | N |
68 | | -defaultValue | Array | - | uncontrolled property。Typescript:`TimeRangeValue` `type TimeRangeValue = Array<string>`。[see more ts definition](https://github.com/Tencent/tdesign-react/blob/develop/packages/components/time-picker/type.ts) | N |
69 | | -onBlur | Function | | Typescript:`(context: { value: TimeRangeValue; e?: FocusEvent; position?: TimeRangePickerPartial }) => void`<br/>[see more ts definition](https://github.com/Tencent/tdesign-react/blob/develop/packages/components/time-picker/type.ts)。<br/>`type TimeRangePickerPartial = 'start' \| 'end'`<br/> | N |
70 | | -onChange | Function | | Typescript:`(value: TimeRangeValue) => void`<br/> | N |
71 | | -onFocus | Function | | Typescript:`(context?: { value: TimeRangeValue; e?: FocusEvent; position?: TimeRangePickerPartial }) => void`<br/>[see more ts definition](https://github.com/Tencent/tdesign-react/blob/develop/packages/components/time-picker/type.ts)。<br/>`type TimeRangePickerPartial = 'start' \| 'end'`<br/> | N |
72 | | -onInput | Function | | Typescript:`(context: { value: TimeRangeValue; e?: InputEvent; position?: TimeRangePickerPartial }) => void`<br/>[see more ts definition](https://github.com/Tencent/tdesign-react/blob/develop/packages/components/time-picker/type.ts)。<br/>`type TimeRangePickerPartial = 'start' \| 'end'`<br/> | N |
73 | | -onPick | Function | | Typescript:`(value: TimeRangeValue, context: { e: MouseEvent, position?: TimeRangePickerPartial }) => void`<br/> | N |
| 67 | +steps | Array | [1, 1, 1] | Typescript: `Array<string \| number>` | N |
| 68 | +tips | TNode | - | Typescript: `string \| TNode`。[see more ts definition](https://github.com/Tencent/tdesign-react/blob/develop/packages/components/common.ts) | N |
| 69 | +value | Array | - | Typescript: `TimeRangeValue` `type TimeRangeValue = Array<string>`。[see more ts definition](https://github.com/Tencent/tdesign-react/blob/develop/packages/components/time-picker/type.ts) | N |
| 70 | +defaultValue | Array | - | uncontrolled property。Typescript: `TimeRangeValue` `type TimeRangeValue = Array<string>`。[see more ts definition](https://github.com/Tencent/tdesign-react/blob/develop/packages/components/time-picker/type.ts) | N |
| 71 | +onBlur | Function | | Typescript: `(context: { value: TimeRangeValue; e?: FocusEvent; position?: TimeRangePickerPartial }) => void`<br/>[see more ts definition](https://github.com/Tencent/tdesign-react/blob/develop/packages/components/time-picker/type.ts)。<br/>`type TimeRangePickerPartial = 'start' \| 'end'`<br/> | N |
| 72 | +onChange | Function | | Typescript: `(value: TimeRangeValue) => void`<br/> | N |
| 73 | +onFocus | Function | | Typescript: `(context?: { value: TimeRangeValue; e?: FocusEvent; position?: TimeRangePickerPartial }) => void`<br/>[see more ts definition](https://github.com/Tencent/tdesign-react/blob/develop/packages/components/time-picker/type.ts)。<br/>`type TimeRangePickerPartial = 'start' \| 'end'`<br/> | N |
| 74 | +onInput | Function | | Typescript: `(context: { value: TimeRangeValue; e?: InputEvent; position?: TimeRangePickerPartial }) => void`<br/>[see more ts definition](https://github.com/Tencent/tdesign-react/blob/develop/packages/components/time-picker/type.ts)。<br/>`type TimeRangePickerPartial = 'start' \| 'end'`<br/> | N |
| 75 | +onPick | Function | | Typescript: `(value: TimeRangeValue, context: { e: MouseEvent, position?: TimeRangePickerPartial }) => void`<br/> | N |
0 commit comments