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 };