diff --git a/components/date-picker/generatePicker/props.ts b/components/date-picker/generatePicker/props.ts index 86281d6b84..f64febfb08 100644 --- a/components/date-picker/generatePicker/props.ts +++ b/components/date-picker/generatePicker/props.ts @@ -82,6 +82,13 @@ function commonProps() { mode: { type: String as PropType }, picker: { type: String as PropType }, valueFormat: String, + + /** @deprecated Please use `disabledTime` instead. */ + disabledHours: Function as PropType, + /** @deprecated Please use `disabledTime` instead. */ + disabledMinutes: Function as PropType, + /** @deprecated Please use `disabledTime` instead. */ + disabledSeconds: Function as PropType, }; } diff --git a/components/vc-picker/Picker.tsx b/components/vc-picker/Picker.tsx index 9d23d62019..7aa2ffaae3 100644 --- a/components/vc-picker/Picker.tsx +++ b/components/vc-picker/Picker.tsx @@ -187,6 +187,10 @@ function Picker() { 'showToday', 'renderExtraFooter', 'dateRender', + 'minuteStep', + 'hourStep', + 'secondStep', + 'hideDisabledOptions', ] as any, // slots: [ // 'suffixIcon', diff --git a/components/vc-picker/RangePicker.tsx b/components/vc-picker/RangePicker.tsx index e56c97aae3..46f64577c7 100644 --- a/components/vc-picker/RangePicker.tsx +++ b/components/vc-picker/RangePicker.tsx @@ -232,6 +232,11 @@ function RangerPicker() { 'direction', 'activePickerIndex', 'autocomplete', + 'minuteStep', + 'hourStep', + 'secondStep', + 'hideDisabledOptions', + 'disabledMinutes', ] as any, setup(props, { attrs, expose }) { const needConfirmButton = computed( diff --git a/components/vc-picker/panels/TimePanel/TimeBody.tsx b/components/vc-picker/panels/TimePanel/TimeBody.tsx index 9ee29374aa..e67c356148 100644 --- a/components/vc-picker/panels/TimePanel/TimeBody.tsx +++ b/components/vc-picker/panels/TimePanel/TimeBody.tsx @@ -205,7 +205,6 @@ const TimeBody = defineComponent({ hideDisabledOptions, onSelect, } = props; - const columns: { node: VueNode; value: number;