From 5d5ff1da4a69c03ae9b9426cf8ff37f19b74cbc5 Mon Sep 17 00:00:00 2001 From: neverland Date: Tue, 9 Mar 2021 11:18:58 +0800 Subject: [PATCH] chore: function components support named exports (#8314) --- src/dialog/index.tsx | 2 ++ src/image-preview/index.tsx | 1 + src/notify/index.tsx | 1 + src/toast/index.tsx | 2 ++ 4 files changed, 6 insertions(+) diff --git a/src/dialog/index.tsx b/src/dialog/index.tsx index 8382349ab..2a6ecaa79 100644 --- a/src/dialog/index.tsx +++ b/src/dialog/index.tsx @@ -127,3 +127,5 @@ Dialog.install = (app: App) => { Dialog.Component = withInstall(VanDialog); export default Dialog; +export { Dialog }; +export type { DialogTheme, DialogMessageAlign }; diff --git a/src/image-preview/index.tsx b/src/image-preview/index.tsx index cb02e07ee..8954dab12 100644 --- a/src/image-preview/index.tsx +++ b/src/image-preview/index.tsx @@ -104,3 +104,4 @@ ImagePreview.install = (app: App) => { }; export default ImagePreview; +export { ImagePreview }; diff --git a/src/notify/index.tsx b/src/notify/index.tsx index ec93d5327..6fb0a6173 100644 --- a/src/notify/index.tsx +++ b/src/notify/index.tsx @@ -104,3 +104,4 @@ Notify.install = (app: App) => { Notify.Component = withInstall(VanNotify); export default Notify; +export { Notify }; diff --git a/src/toast/index.tsx b/src/toast/index.tsx index ae5abfa3b..12fdbd0a6 100644 --- a/src/toast/index.tsx +++ b/src/toast/index.tsx @@ -184,3 +184,5 @@ Toast.install = (app: App) => { }; export default Toast; +export { Toast }; +export type { ToastType, ToastPosition };