fix: rangePicker xxxStep not work, close #5671

This commit is contained in:
tangjinzhou 2022-06-07 10:47:51 +08:00
parent 71c6195771
commit 3ddc7cdd7c
4 changed files with 16 additions and 1 deletions

View File

@ -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']>,
};
}

View File

@ -187,6 +187,10 @@ function Picker<DateType>() {
'showToday',
'renderExtraFooter',
'dateRender',
'minuteStep',
'hourStep',
'secondStep',
'hideDisabledOptions',
] as any,
// slots: [
// 'suffixIcon',

View File

@ -232,6 +232,11 @@ function RangerPicker<DateType>() {
'direction',
'activePickerIndex',
'autocomplete',
'minuteStep',
'hourStep',
'secondStep',
'hideDisabledOptions',
'disabledMinutes',
] as any,
setup(props, { attrs, expose }) {
const needConfirmButton = computed(

View File

@ -205,7 +205,6 @@ const TimeBody = defineComponent({
hideDisabledOptions,
onSelect,
} = props;
const columns: {
node: VueNode;
value: number;