chore: function components support named exports (#8314)
This commit is contained in:
@@ -127,3 +127,5 @@ Dialog.install = (app: App) => {
|
|||||||
Dialog.Component = withInstall<typeof VanDialog>(VanDialog);
|
Dialog.Component = withInstall<typeof VanDialog>(VanDialog);
|
||||||
|
|
||||||
export default Dialog;
|
export default Dialog;
|
||||||
|
export { Dialog };
|
||||||
|
export type { DialogTheme, DialogMessageAlign };
|
||||||
|
|||||||
@@ -104,3 +104,4 @@ ImagePreview.install = (app: App) => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
export default ImagePreview;
|
export default ImagePreview;
|
||||||
|
export { ImagePreview };
|
||||||
|
|||||||
@@ -104,3 +104,4 @@ Notify.install = (app: App) => {
|
|||||||
Notify.Component = withInstall<typeof VanNotify>(VanNotify);
|
Notify.Component = withInstall<typeof VanNotify>(VanNotify);
|
||||||
|
|
||||||
export default Notify;
|
export default Notify;
|
||||||
|
export { Notify };
|
||||||
|
|||||||
@@ -184,3 +184,5 @@ Toast.install = (app: App) => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
export default Toast;
|
export default Toast;
|
||||||
|
export { Toast };
|
||||||
|
export type { ToastType, ToastPosition };
|
||||||
|
|||||||
Reference in New Issue
Block a user