some comps support dispatch event to FormItem

some comps support dispatch event to FormItem
This commit is contained in:
梁灏 2017-03-09 11:14:40 +08:00
parent 7778edfa02
commit cd78c9c488
14 changed files with 57 additions and 48 deletions

View file

@ -22,10 +22,13 @@
</label>
</template>
<script>
import Emitter from '../../mixins/emitter';
const prefixCls = 'ivu-checkbox';
export default {
name: 'Checkbox',
mixins: [ Emitter ],
props: {
disabled: {
type: Boolean,
@ -106,8 +109,7 @@
this.$parent.change(this.model);
} else {
this.$emit('on-change', checked);
// todo
// this.$dispatch('on-form-change', checked);
this.dispatch('FormItem', 'on-form-change', checked);
}
},
updateModel () {