fix(RangPicker): Incorrect display of prevIcon and nextIcon (#7127)

* fix(RangPicker): Incorrect display of prevIcon and nextIcon

* fix: superPrevIcon and superNextIcon invalid
feat-4.1
selicens 2023-12-18 11:23:30 +08:00 committed by GitHub
parent 67efafca4a
commit 6625d39118
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 0 deletions

View File

@ -129,6 +129,10 @@ export type RangePickerSharedProps<DateType> = {
activePickerIndex?: 0 | 1; activePickerIndex?: 0 | 1;
dateRender?: RangeDateRender<DateType>; dateRender?: RangeDateRender<DateType>;
panelRender?: (originPanel: VueNode) => VueNode; panelRender?: (originPanel: VueNode) => VueNode;
prevIcon?: VueNode;
nextIcon?: VueNode;
superPrevIcon?: VueNode;
superNextIcon?: VueNode;
}; };
type OmitPickerProps<Props> = Omit< type OmitPickerProps<Props> = Omit<
@ -250,6 +254,10 @@ function RangerPicker<DateType>() {
'hideDisabledOptions', 'hideDisabledOptions',
'disabledMinutes', 'disabledMinutes',
'presets', 'presets',
'prevIcon',
'nextIcon',
'superPrevIcon',
'superNextIcon',
] as any, ] as any,
setup(props, { attrs, expose }) { setup(props, { attrs, expose }) {
const needConfirmButton = computed( const needConfirmButton = computed(