types(Button): add ButtonNativeType、ButtonIconPosition type (#9604)

This commit is contained in:
neverland
2021-09-30 17:52:14 +08:00
committed by GitHub
parent 20fc06bf21
commit a7b5fb2af6
3 changed files with 18 additions and 3 deletions
+6 -1
View File
@@ -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
+6 -1
View File
@@ -177,7 +177,12 @@ app.use(Button);
组件导出以下类型定义:
```ts
import type { ButtonType, ButtonSize } from 'vant';
import type {
ButtonType,
ButtonSize,
ButtonNativeType,
ButtonIconPosition,
} from 'vant';
```
## 主题定制
+6 -1
View File
@@ -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';