Skip to content

Commit

Permalink
fix: rangePicker xxxStep not work, close #5671
Browse files Browse the repository at this point in the history
  • Loading branch information
tangjinzhou committed Jun 7, 2022
1 parent 71c6195 commit 3ddc7cd
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 1 deletion.
7 changes: 7 additions & 0 deletions components/date-picker/generatePicker/props.ts
Expand Up @@ -82,6 +82,13 @@ function commonProps<DateType = any>() {
mode: { type: String as PropType<PanelMode> },
picker: { type: String as PropType<PickerMode> },
valueFormat: String,

/** @deprecated Please use `disabledTime` instead. */
disabledHours: Function as PropType<DisabledTimes['disabledHours']>,
/** @deprecated Please use `disabledTime` instead. */
disabledMinutes: Function as PropType<DisabledTimes['disabledMinutes']>,
/** @deprecated Please use `disabledTime` instead. */
disabledSeconds: Function as PropType<DisabledTimes['disabledSeconds']>,
};
}

Expand Down
4 changes: 4 additions & 0 deletions components/vc-picker/Picker.tsx
Expand Up @@ -187,6 +187,10 @@ function Picker<DateType>() {
'showToday',
'renderExtraFooter',
'dateRender',
'minuteStep',
'hourStep',
'secondStep',
'hideDisabledOptions',
] as any,
// slots: [
// 'suffixIcon',
Expand Down
5 changes: 5 additions & 0 deletions components/vc-picker/RangePicker.tsx
Expand Up @@ -232,6 +232,11 @@ function RangerPicker<DateType>() {
'direction',
'activePickerIndex',
'autocomplete',
'minuteStep',
'hourStep',
'secondStep',
'hideDisabledOptions',
'disabledMinutes',
] as any,
setup(props, { attrs, expose }) {
const needConfirmButton = computed(
Expand Down
1 change: 0 additions & 1 deletion components/vc-picker/panels/TimePanel/TimeBody.tsx
Expand Up @@ -205,7 +205,6 @@ const TimeBody = defineComponent({
hideDisabledOptions,
onSelect,
} = props;

const columns: {
node: VueNode;
value: number;
Expand Down

0 comments on commit 3ddc7cd

Please sign in to comment.