开始做登录
This commit is contained in:
		
							
								
								
									
										1
									
								
								node_modules/@vant/weapp/dist/checkbox-group/index.d.ts
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								node_modules/@vant/weapp/dist/checkbox-group/index.d.ts
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1 @@ | ||||
| export {}; | ||||
							
								
								
									
										36
									
								
								node_modules/@vant/weapp/dist/checkbox-group/index.js
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										36
									
								
								node_modules/@vant/weapp/dist/checkbox-group/index.js
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1,36 @@ | ||||
| import { useChildren } from '../common/relation'; | ||||
| import { VantComponent } from '../common/component'; | ||||
| VantComponent({ | ||||
|     field: true, | ||||
|     relation: useChildren('checkbox', function (target) { | ||||
|         this.updateChild(target); | ||||
|     }), | ||||
|     props: { | ||||
|         max: Number, | ||||
|         value: { | ||||
|             type: Array, | ||||
|             observer: 'updateChildren', | ||||
|         }, | ||||
|         disabled: { | ||||
|             type: Boolean, | ||||
|             observer: 'updateChildren', | ||||
|         }, | ||||
|         direction: { | ||||
|             type: String, | ||||
|             value: 'vertical', | ||||
|         }, | ||||
|     }, | ||||
|     methods: { | ||||
|         updateChildren() { | ||||
|             this.children.forEach((child) => this.updateChild(child)); | ||||
|         }, | ||||
|         updateChild(child) { | ||||
|             const { value, disabled, direction } = this.data; | ||||
|             child.setData({ | ||||
|                 value: value.indexOf(child.data.name) !== -1, | ||||
|                 parentDisabled: disabled, | ||||
|                 direction, | ||||
|             }); | ||||
|         }, | ||||
|     }, | ||||
| }); | ||||
							
								
								
									
										3
									
								
								node_modules/@vant/weapp/dist/checkbox-group/index.json
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								node_modules/@vant/weapp/dist/checkbox-group/index.json
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1,3 @@ | ||||
| { | ||||
|   "component": true | ||||
| } | ||||
							
								
								
									
										5
									
								
								node_modules/@vant/weapp/dist/checkbox-group/index.wxml
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										5
									
								
								node_modules/@vant/weapp/dist/checkbox-group/index.wxml
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1,5 @@ | ||||
| <wxs src="../wxs/utils.wxs" module="utils" /> | ||||
|  | ||||
| <view class="{{ utils.bem('checkbox-group', [{ horizontal: direction === 'horizontal' }]) }}"> | ||||
|   <slot /> | ||||
| </view> | ||||
							
								
								
									
										1
									
								
								node_modules/@vant/weapp/dist/checkbox-group/index.wxss
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								node_modules/@vant/weapp/dist/checkbox-group/index.wxss
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1 @@ | ||||
| @import '../common/index.wxss';.van-checkbox-group--horizontal{display:flex;flex-wrap:wrap} | ||||
		Reference in New Issue
	
	Block a user