mirror of
				https://gitee.com/vant-contrib/vant.git
				synced 2025-10-27 01:32:10 +08:00 
			
		
		
		
	types(Sku): add methods types
This commit is contained in:
		
							parent
							
								
									cf191e09cb
								
							
						
					
					
						commit
						d2bb9fa81b
					
				| @ -5,7 +5,7 @@ import { BORDER_BOTTOM } from '../../utils/constant'; | |||||||
| // Types
 | // Types
 | ||||||
| import Vue, { CreateElement, RenderContext } from 'vue/types'; | import Vue, { CreateElement, RenderContext } from 'vue/types'; | ||||||
| import { DefaultSlots } from '../../utils/types'; | import { DefaultSlots } from '../../utils/types'; | ||||||
| import { SkuData, SkuGoodsData, SelectedSkuData } from '../type'; | import { SkuData, SkuGoodsData, SelectedSkuData } from '../../../types/sku'; | ||||||
| 
 | 
 | ||||||
| export type SkuHeaderProps = { | export type SkuHeaderProps = { | ||||||
|   sku: SkuData; |   sku: SkuData; | ||||||
|  | |||||||
| @ -5,7 +5,7 @@ import { BORDER_BOTTOM } from '../../utils/constant'; | |||||||
| // Types
 | // Types
 | ||||||
| import { CreateElement, RenderContext } from 'vue/types'; | import { CreateElement, RenderContext } from 'vue/types'; | ||||||
| import { DefaultSlots } from '../../utils/types'; | import { DefaultSlots } from '../../utils/types'; | ||||||
| import { SkuTreeItemData } from '../type'; | import { SkuTreeItemData } from '../../../types/sku'; | ||||||
| 
 | 
 | ||||||
| export type SkuRowProps = { | export type SkuRowProps = { | ||||||
|   skuRow: SkuTreeItemData; |   skuRow: SkuTreeItemData; | ||||||
|  | |||||||
							
								
								
									
										7
									
								
								src/sku/type.ts → types/sku.d.ts
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										7
									
								
								src/sku/type.ts → types/sku.d.ts
									
									
									
									
										vendored
									
									
								
							| @ -1,4 +1,5 @@ | |||||||
| /* eslint-disable camelcase */ | /* eslint-disable camelcase */ | ||||||
|  | import { VanComponent } from './component'; | ||||||
| 
 | 
 | ||||||
| export type SkuData = { | export type SkuData = { | ||||||
|   price: string; |   price: string; | ||||||
| @ -49,3 +50,9 @@ export type SkuGoodsData = { | |||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
| export type SelectedSkuData = Record<string, string>; | export type SelectedSkuData = Record<string, string>; | ||||||
|  | 
 | ||||||
|  | export class Sku extends VanComponent { | ||||||
|  |   getSkuData(): SkuData; | ||||||
|  | 
 | ||||||
|  |   resetSelectedSku(): void; | ||||||
|  | } | ||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user