fix: rangePicker xxxStep not work, close #5671

pull/5674/head
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> }, mode: { type: String as PropType<PanelMode> },
picker: { type: String as PropType<PickerMode> }, picker: { type: String as PropType<PickerMode> },
valueFormat: String, 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', 'showToday',
'renderExtraFooter', 'renderExtraFooter',
'dateRender', 'dateRender',
'minuteStep',
'hourStep',
'secondStep',
'hideDisabledOptions',
] as any, ] as any,
// slots: [ // slots: [
// 'suffixIcon', // 'suffixIcon',

View File

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

View File

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