mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-17 10:41:13 +08:00
fix(vue): modal and popover components now correctly pass properties (#23761)
resolves #23698
This commit is contained in:
@ -14,6 +14,8 @@ import { IonAlert as IonAlertCmp } from '@ionic/core/components/ion-alert.js'
|
||||
import { IonLoading as IonLoadingCmp } from '@ionic/core/components/ion-loading.js'
|
||||
import { IonPicker as IonPickerCmp } from '@ionic/core/components/ion-picker.js'
|
||||
import { IonToast as IonToastCmp } from '@ionic/core/components/ion-toast.js'
|
||||
import { IonModal as IonModalCmp } from '@ionic/core/components/ion-modal.js'
|
||||
import { IonPopover as IonPopoverCmp } from '@ionic/core/components/ion-popover.js'
|
||||
|
||||
import { defineOverlayContainer } from '../vue-component-lib/overlays';
|
||||
|
||||
@ -27,3 +29,7 @@ export const IonPicker = /*@__PURE__*/ defineOverlayContainer<JSX.IonPicker>('io
|
||||
|
||||
export const IonToast = /*@__PURE__*/ defineOverlayContainer<JSX.IonToast>('ion-toast', IonToastCmp, ['animated', 'buttons', 'color', 'cssClass', 'duration', 'enterAnimation', 'header', 'icon', 'keyboardClose', 'leaveAnimation', 'message', 'mode', 'position', 'translucent'], toastController);
|
||||
|
||||
export const IonModal = /*@__PURE__*/ defineOverlayContainer<JSX.IonModal>('ion-modal', IonModalCmp, ['animated', 'backdropDismiss', 'enterAnimation', 'isOpen', 'keyboardClose', 'leaveAnimation', 'mode', 'presentingElement', 'showBackdrop', 'swipeToClose', 'trigger']);
|
||||
|
||||
export const IonPopover = /*@__PURE__*/ defineOverlayContainer<JSX.IonPopover>('ion-popover', IonPopoverCmp, ['alignment', 'animated', 'arrow', 'backdropDismiss', 'component', 'componentProps', 'dismissOnSelect', 'enterAnimation', 'event', 'isOpen', 'keyboardClose', 'leaveAnimation', 'mode', 'reference', 'showBackdrop', 'side', 'size', 'translucent', 'trigger', 'triggerAction']);
|
||||
|
||||
|
Reference in New Issue
Block a user