Use native w3c

This commit is contained in:
Xotic750 2018-01-21 01:17:38 +01:00
parent 4b48b69a9f
commit 98a755be21
4 changed files with 44 additions and 34 deletions

View file

@ -6,6 +6,7 @@
<script>
import { findComponentsDownward, oneOf } from '../../utils/assist';
import Emitter from '../../mixins/emitter';
const prefixCls = 'ivu-checkbox-group';
export default {
@ -45,10 +46,9 @@
},
methods: {
updateModel (update) {
const value = this.value;
this.childrens = findComponentsDownward(this, 'Checkbox');
if (this.childrens) {
const { value } = this;
this.childrens.forEach(child => {
child.model = value;