@@ -16,9 +16,9 @@ hideDisabledTime | Boolean | true | 是否隐藏禁用状态的时间项 | N
16
16
inputProps | Object | - | 透传给输入框(Input)组件的参数。TS 类型:` InputProps ` ,[ Input API Documents] ( ./input?tab=api ) 。[ 详细类型定义] ( https://github.com/Tencent/tdesign-vue-next/blob/develop/packages/components/time-picker/type.ts ) | N
17
17
label | String / Slot / Function | - | 左侧文本。TS 类型:` string \| TNode ` 。[ 通用类型定义] ( https://github.com/Tencent/tdesign-vue-next/blob/develop/packages/components/common.ts ) | N
18
18
placeholder | String | undefined | 占位符 | N
19
- popupProps | Object | - | 透传给 popup 组件的参数 。TS 类型:` PopupProps ` ,[ Popup API Documents] ( ./popup?tab=api ) 。[ 详细类型定义] ( https://github.com/Tencent/tdesign-vue-next/blob/develop/packages/components/time-picker/type.ts ) | N
19
+ popupProps | Object | - | 透传 Popup 组件全部属性 。TS 类型:` PopupProps ` ,[ Popup API Documents] ( ./popup?tab=api ) 。[ 详细类型定义] ( https://github.com/Tencent/tdesign-vue-next/blob/develop/packages/components/time-picker/type.ts ) | N
20
20
presets | Object | - | 预设快捷时间选择,示例:` { '前一小时': '11:00:00' } ` 。TS 类型:` PresetTime ` ` interface PresetTime { [presetName: string]: TimePickerValue \| (() => TimePickerValue) } ` 。[ 详细类型定义] ( https://github.com/Tencent/tdesign-vue-next/blob/develop/packages/components/time-picker/type.ts ) | N
21
- readonly | Boolean | undefined | 是否只读 ,优先级大于 ` allowInput ` | N
21
+ readonly | Boolean | undefined | 只读状态 ,优先级大于 ` allowInput ` | N
22
22
selectInputProps | Object | - | 透传 SelectInput 筛选器输入框组件的全部属性。TS 类型:` SelectInputProps ` ,[ SelectInput API Documents] ( ./select-input?tab=api ) 。[ 详细类型定义] ( https://github.com/Tencent/tdesign-vue-next/blob/develop/packages/components/time-picker/type.ts ) | N
23
23
size | String | medium | 尺寸。可选项:small/medium/large | N
24
24
status | String | default | 输入框状态。可选项:default/success/warning/error | N
@@ -29,7 +29,9 @@ defaultValue | String | - | 选中值。非受控属性。TS 类型:`TimePicke
29
29
valueDisplay | String / Slot / Function | - | 自定义选中项呈现的内容。TS 类型:` string \| TNode<{ value: TimePickerValue }> ` 。[ 通用类型定义] ( https://github.com/Tencent/tdesign-vue-next/blob/develop/packages/components/common.ts ) | N
30
30
onBlur | Function | | TS 类型:` (context: { value: TimePickerValue } & SelectInputBlurContext) => void ` <br />当输入框失去焦点时触发,value 表示组件当前有效值。[ 详细类型定义] ( https://github.com/Tencent/tdesign-vue-next/blob/develop/packages/components/time-picker/type.ts ) 。<br />` import { SelectInputBlurContext } from '@SelectInput' ` <br /> | N
31
31
onChange | Function | | TS 类型:` (value: TimePickerValue) => void ` <br />选中值发生变化时触发 | N
32
+ onClear | Function | | TS 类型:` (context: { e: MouseEvent }) => void ` <br />点击清空按钮时触发 | N
32
33
onClose | Function | | TS 类型:` (context: { e: MouseEvent }) => void ` <br />面板关闭时触发 | N
34
+ onConfirm | Function | | TS 类型:` (context: { e: MouseEvent }) => void ` <br />点击确认按钮时触发 | N
33
35
onFocus | Function | | TS 类型:` (context: { value: TimePickerValue; e: FocusEvent }) => void ` <br />输入框获得焦点时触发,value 表示组件当前有效值 | N
34
36
onInput | Function | | TS 类型:` (context: { value: TimePickerValue; e: InputEvent }) => void ` <br />当输入框内容发生变化时触发,参数 value 表示组件当前有效值 | N
35
37
onOpen | Function | | TS 类型:` (context: { e: MouseEvent }) => void ` <br />面板打开时触发 | N
@@ -41,7 +43,9 @@ onPick | Function | | TS 类型:`(value: TimePickerValue, context: { e: Mouse
41
43
-- | -- | --
42
44
blur | ` (context: { value: TimePickerValue } & SelectInputBlurContext) ` | 当输入框失去焦点时触发,value 表示组件当前有效值。[ 详细类型定义] ( https://github.com/Tencent/tdesign-vue-next/blob/develop/packages/components/time-picker/type.ts ) 。<br />` import { SelectInputBlurContext } from '@SelectInput' ` <br />
43
45
change | ` (value: TimePickerValue) ` | 选中值发生变化时触发
46
+ clear | ` (context: { e: MouseEvent }) ` | 点击清空按钮时触发
44
47
close | ` (context: { e: MouseEvent }) ` | 面板关闭时触发
48
+ confirm | ` (context: { e: MouseEvent }) ` | 点击确认按钮时触发
45
49
focus | ` (context: { value: TimePickerValue; e: FocusEvent }) ` | 输入框获得焦点时触发,value 表示组件当前有效值
46
50
input | ` (context: { value: TimePickerValue; e: InputEvent }) ` | 当输入框内容发生变化时触发,参数 value 表示组件当前有效值
47
51
open | ` (context: { e: MouseEvent }) ` | 面板打开时触发
@@ -56,13 +60,13 @@ allowInput | Boolean | false | 是否允许直接输入时间 | N
56
60
autoSwap | Boolean | true | 是否自动调换左右区间的顺序,默认为 true;若需要支持跨天的场景,可以设置为 false | N
57
61
borderless | Boolean | false | 无边框模式 | N
58
62
clearable | Boolean | false | 是否允许清除选中值 | N
59
- disableTime | Function | - | 禁用时间项。TS 类型:` (h: number, m: number, s: number, context: { partial: TimeRangePickerPartial }) =>Partial<{ hour: Array<number>, minute: Array<number>, second: Array<number> }> ` ` type TimeRangePickerPartial = 'start' \| 'end' ` 。[ 详细类型定义] ( https://github.com/Tencent/tdesign-vue-next/blob/develop/packages/components/time-picker/type.ts ) | N
63
+ disableTime | Function | - | 禁用时间项。TS 类型:` (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' ` 。[ 详细类型定义] ( https://github.com/Tencent/tdesign-vue-next/blob/develop/packages/components/time-picker/type.ts ) | N
60
64
disabled | Boolean / Array | undefined | 是否禁用组件,值为数组表示可分别控制开始日期和结束日期是否禁用。TS 类型:` boolean \| Array<boolean> ` | N
61
65
format | String | HH:mm: ss | 用于格式化时间,[ 详细文档] ( https://day.js.org/docs/en/display/format ) | N
62
66
hideDisabledTime | Boolean | true | 是否隐藏禁用状态的时间项 | N
63
67
label | String / Slot / Function | - | 左侧文本。TS 类型:` string \| TNode ` 。[ 通用类型定义] ( https://github.com/Tencent/tdesign-vue-next/blob/develop/packages/components/common.ts ) | N
64
68
placeholder | String / Array | undefined | 占位符,值为数组表示可分别为开始日期和结束日期设置占位符。TS 类型:` string \| Array<string> ` | N
65
- popupProps | Object | - | 透传给 popup 组件的参数 。TS 类型:` PopupProps ` ,[ Popup API Documents] ( ./popup?tab=api ) 。[ 详细类型定义] ( https://github.com/Tencent/tdesign-vue-next/blob/develop/packages/components/time-picker/type.ts ) | N
69
+ popupProps | Object | - | 透传 Popup 组件全部属性 。TS 类型:` PopupProps ` ,[ Popup API Documents] ( ./popup?tab=api ) 。[ 详细类型定义] ( https://github.com/Tencent/tdesign-vue-next/blob/develop/packages/components/time-picker/type.ts ) | N
66
70
presets | Object | - | 预设快捷时间范围选择,示例:{ '下午': [ '13:00:00', '18:00:00'] }。TS 类型:` PresetTimeRange ` ` interface PresetTimeRange { [presetRageName: string]: TimeRangeValue \| (() => TimeRangeValue)} ` 。[ 详细类型定义] ( https://github.com/Tencent/tdesign-vue-next/blob/develop/packages/components/time-picker/type.ts ) | N
67
71
rangeInputProps | Object | - | 透传给范围输入框 RangeInput 组件的参数。TS 类型:` RangeInputProps ` ,[ RangeInput API Documents] ( ./range-input?tab=api ) 。[ 详细类型定义] ( https://github.com/Tencent/tdesign-vue-next/blob/develop/packages/components/time-picker/type.ts ) | N
68
72
size | String | medium | 尺寸。可选项:small/medium/large | N
0 commit comments