chore: function components support named exports (#8314)

This commit is contained in:
neverland
2021-03-09 11:18:58 +08:00
committed by GitHub
parent 7571c904ec
commit 5d5ff1da4a
4 changed files with 6 additions and 0 deletions

View File

@@ -127,3 +127,5 @@ Dialog.install = (app: App) => {
Dialog.Component = withInstall<typeof VanDialog>(VanDialog);
export default Dialog;
export { Dialog };
export type { DialogTheme, DialogMessageAlign };

View File

@@ -104,3 +104,4 @@ ImagePreview.install = (app: App) => {
};
export default ImagePreview;
export { ImagePreview };

View File

@@ -104,3 +104,4 @@ Notify.install = (app: App) => {
Notify.Component = withInstall<typeof VanNotify>(VanNotify);
export default Notify;
export { Notify };

View File

@@ -184,3 +184,5 @@ Toast.install = (app: App) => {
};
export default Toast;
export { Toast };
export type { ToastType, ToastPosition };