Skip to content

Commit 3ddc7cd

Browse files
committed
fix: rangePicker xxxStep not work, close #5671
1 parent 71c6195 commit 3ddc7cd

File tree

4 files changed

+16
-1
lines changed

4 files changed

+16
-1
lines changed

components/date-picker/generatePicker/props.ts

+7
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,13 @@ function commonProps<DateType = any>() {
8282
mode: { type: String as PropType<PanelMode> },
8383
picker: { type: String as PropType<PickerMode> },
8484
valueFormat: String,
85+
86+
/** @deprecated Please use `disabledTime` instead. */
87+
disabledHours: Function as PropType<DisabledTimes['disabledHours']>,
88+
/** @deprecated Please use `disabledTime` instead. */
89+
disabledMinutes: Function as PropType<DisabledTimes['disabledMinutes']>,
90+
/** @deprecated Please use `disabledTime` instead. */
91+
disabledSeconds: Function as PropType<DisabledTimes['disabledSeconds']>,
8592
};
8693
}
8794

components/vc-picker/Picker.tsx

+4
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,10 @@ function Picker<DateType>() {
187187
'showToday',
188188
'renderExtraFooter',
189189
'dateRender',
190+
'minuteStep',
191+
'hourStep',
192+
'secondStep',
193+
'hideDisabledOptions',
190194
] as any,
191195
// slots: [
192196
// 'suffixIcon',

components/vc-picker/RangePicker.tsx

+5
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,11 @@ function RangerPicker<DateType>() {
232232
'direction',
233233
'activePickerIndex',
234234
'autocomplete',
235+
'minuteStep',
236+
'hourStep',
237+
'secondStep',
238+
'hideDisabledOptions',
239+
'disabledMinutes',
235240
] as any,
236241
setup(props, { attrs, expose }) {
237242
const needConfirmButton = computed(

components/vc-picker/panels/TimePanel/TimeBody.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,6 @@ const TimeBody = defineComponent({
205205
hideDisabledOptions,
206206
onSelect,
207207
} = props;
208-
209208
const columns: {
210209
node: VueNode;
211210
value: number;

0 commit comments

Comments
 (0)