mirror of
				https://gitee.com/vant-contrib/vant.git
				synced 2025-10-31 03:22:08 +08:00 
			
		
		
		
	types(Button): add ButtonNativeType、ButtonIconPosition type (#9604)
This commit is contained in:
		
							parent
							
								
									20fc06bf21
								
							
						
					
					
						commit
						a7b5fb2af6
					
				| @ -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 | ||||
|  | ||||
| @ -177,7 +177,12 @@ app.use(Button); | ||||
| 组件导出以下类型定义: | ||||
| 
 | ||||
| ```ts | ||||
| import type { ButtonType, ButtonSize } from 'vant'; | ||||
| import type { | ||||
|   ButtonType, | ||||
|   ButtonSize, | ||||
|   ButtonNativeType, | ||||
|   ButtonIconPosition, | ||||
| } from 'vant'; | ||||
| ``` | ||||
| 
 | ||||
| ## 主题定制 | ||||
|  | ||||
| @ -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'; | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user