From a7b5fb2af60cb2d152db11f5237122104b1afbea Mon Sep 17 00:00:00 2001 From: neverland Date: Thu, 30 Sep 2021 17:52:14 +0800 Subject: [PATCH] =?UTF-8?q?types(Button):=20add=20ButtonNativeType?= =?UTF-8?q?=E3=80=81ButtonIconPosition=20type=20(#9604)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/vant/src/button/README.md | 7 ++++++- packages/vant/src/button/README.zh-CN.md | 7 ++++++- packages/vant/src/button/index.ts | 7 ++++++- 3 files changed, 18 insertions(+), 3 deletions(-) diff --git a/packages/vant/src/button/README.md b/packages/vant/src/button/README.md index e27df77c0..1c81fe62f 100644 --- a/packages/vant/src/button/README.md +++ b/packages/vant/src/button/README.md @@ -154,7 +154,12 @@ app.use(Button); The component exports the following type definitions: ```ts -import type { ButtonType, ButtonSize } from 'vant'; +import type { + ButtonType, + ButtonSize, + ButtonNativeType, + ButtonIconPosition, +} from 'vant'; ``` ## Theming diff --git a/packages/vant/src/button/README.zh-CN.md b/packages/vant/src/button/README.zh-CN.md index b15a792aa..c8349b463 100644 --- a/packages/vant/src/button/README.zh-CN.md +++ b/packages/vant/src/button/README.zh-CN.md @@ -177,7 +177,12 @@ app.use(Button); 组件导出以下类型定义: ```ts -import type { ButtonType, ButtonSize } from 'vant'; +import type { + ButtonType, + ButtonSize, + ButtonNativeType, + ButtonIconPosition, +} from 'vant'; ``` ## 主题定制 diff --git a/packages/vant/src/button/index.ts b/packages/vant/src/button/index.ts index 08bbc2763..02ebe4982 100644 --- a/packages/vant/src/button/index.ts +++ b/packages/vant/src/button/index.ts @@ -3,4 +3,9 @@ import _Button from './Button'; export const Button = withInstall(_Button); export default Button; -export type { ButtonType, ButtonSize } from './Button'; +export type { + ButtonType, + ButtonSize, + ButtonNativeType, + ButtonIconPosition, +} from './Button';