mirror of
				https://gitee.com/vant-contrib/vant.git
				synced 2025-10-27 01:32:10 +08:00 
			
		
		
		
	types(Cell): add CellSize type (#9802)
This commit is contained in:
		
							parent
							
								
									7d1b57fde3
								
							
						
					
					
						commit
						30510c01c6
					
				| @ -23,11 +23,13 @@ import { Icon } from '../icon'; | ||||
| 
 | ||||
| const [name, bem] = createNamespace('cell'); | ||||
| 
 | ||||
| export type CellSize = 'normal' | 'large'; | ||||
| 
 | ||||
| export type CellArrowDirection = 'up' | 'down' | 'left' | 'right'; | ||||
| 
 | ||||
| export const cellSharedProps = { | ||||
|   icon: String, | ||||
|   size: String as PropType<'large'>, | ||||
|   size: String as PropType<CellSize>, | ||||
|   title: numericProp, | ||||
|   value: numericProp, | ||||
|   label: numericProp, | ||||
|  | ||||
| @ -197,7 +197,12 @@ app.use(CellGroup); | ||||
| The component exports the following type definitions: | ||||
| 
 | ||||
| ```ts | ||||
| import type { CellProps, CellGroupProps, CellArrowDirection } from 'vant'; | ||||
| import type { | ||||
|   CellSize, | ||||
|   CellProps, | ||||
|   CellGroupProps, | ||||
|   CellArrowDirection, | ||||
| } from 'vant'; | ||||
| ``` | ||||
| 
 | ||||
| ## Theming | ||||
|  | ||||
| @ -202,7 +202,12 @@ app.use(CellGroup); | ||||
| 组件导出以下类型定义: | ||||
| 
 | ||||
| ```ts | ||||
| import type { CellProps, CellGroupProps, CellArrowDirection } from 'vant'; | ||||
| import type { | ||||
|   CellSize, | ||||
|   CellProps, | ||||
|   CellGroupProps, | ||||
|   CellArrowDirection, | ||||
| } from 'vant'; | ||||
| ``` | ||||
| 
 | ||||
| ## 主题定制 | ||||
|  | ||||
| @ -3,4 +3,4 @@ import _Cell from './Cell'; | ||||
| 
 | ||||
| export const Cell = withInstall(_Cell); | ||||
| export default Cell; | ||||
| export type { CellProps, CellArrowDirection } from './Cell'; | ||||
| export type { CellSize, CellProps, CellArrowDirection } from './Cell'; | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user