Use native w3c
This commit is contained in:
parent
4b48b69a9f
commit
98a755be21
4 changed files with 44 additions and 34 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue