mirror of
				https://gitee.com/vant-contrib/vant.git
				synced 2025-11-04 21:02:09 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			25 lines
		
	
	
		
			409 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			25 lines
		
	
	
		
			409 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
import { use } from '../utils';
 | 
						|
import { ParentMixin } from '../mixins/relation';
 | 
						|
 | 
						|
const [sfc, bem] = use('checkbox-group');
 | 
						|
 | 
						|
export default sfc({
 | 
						|
  mixins: [ParentMixin('vanCheckbox')],
 | 
						|
 | 
						|
  props: {
 | 
						|
    max: Number,
 | 
						|
    value: Array,
 | 
						|
    disabled: Boolean
 | 
						|
  },
 | 
						|
 | 
						|
  watch: {
 | 
						|
    value(val) {
 | 
						|
      this.$emit('change', val);
 | 
						|
    }
 | 
						|
  },
 | 
						|
 | 
						|
  render(h) {
 | 
						|
    return <div class={bem()}>{this.slots()}</div>;
 | 
						|
  }
 | 
						|
});
 |