You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
			
				
					22 lines
				
				793 B
			
		
		
			
		
	
	
					22 lines
				
				793 B
			| 
								 
											2 years ago
										 
									 | 
							
								<view
							 | 
						||
| 
								 | 
							
								    class="wux-class {{ classes.wrap }}"
							 | 
						||
| 
								 | 
							
								    aria-role="switch"
							 | 
						||
| 
								 | 
							
								    aria-label="switch"
							 | 
						||
| 
								 | 
							
								    aria-checked="{{ inputChecked }}"
							 | 
						||
| 
								 | 
							
								    aria-disabled="{{ disabled }}"
							 | 
						||
| 
								 | 
							
								>
							 | 
						||
| 
								 | 
							
								    <view class="{{ classes.input }}" style="{{ inputChecked ? inputStyle : '' }}" bindtap="onTap">
							 | 
						||
| 
								 | 
							
								        <view class="{{ classes.text }}">
							 | 
						||
| 
								 | 
							
								            <block wx:if="{{ inputChecked }}">
							 | 
						||
| 
								 | 
							
								                <view wx:if="{{ checkedText }}">{{ checkedText }}</view>
							 | 
						||
| 
								 | 
							
								                <slot name="checked" wx:else></slot>
							 | 
						||
| 
								 | 
							
								            </block>
							 | 
						||
| 
								 | 
							
								            <block wx:else>
							 | 
						||
| 
								 | 
							
								                <view wx:if="{{ uncheckedText }}">{{ uncheckedText }}</view>
							 | 
						||
| 
								 | 
							
								                <slot name="unchecked" wx:else></slot>
							 | 
						||
| 
								 | 
							
								            </block>
							 | 
						||
| 
								 | 
							
								        </view>
							 | 
						||
| 
								 | 
							
								        <view class="{{ classes.spin }}" wx:if="{{ loading }}"></view>
							 | 
						||
| 
								 | 
							
								    </view>
							 | 
						||
| 
								 | 
							
								</view>
							 |