some comps support dispatch event to FormItem
some comps support dispatch event to FormItem
This commit is contained in:
parent
7778edfa02
commit
cd78c9c488
14 changed files with 57 additions and 48 deletions
|
@ -5,11 +5,13 @@
|
|||
</template>
|
||||
<script>
|
||||
import { oneOf } from '../../utils/assist';
|
||||
import Emitter from '../../mixins/emitter';
|
||||
|
||||
const prefixCls = 'ivu-radio-group';
|
||||
|
||||
export default {
|
||||
name: 'RadioGroup',
|
||||
mixins: [ Emitter ],
|
||||
props: {
|
||||
value: {
|
||||
type: [String, Number],
|
||||
|
@ -63,8 +65,7 @@
|
|||
this.updateValue();
|
||||
this.$emit('input', data.value);
|
||||
this.$emit('on-change', data.value);
|
||||
// todo 事件
|
||||
// this.$dispatch('on-form-change', data.value);
|
||||
this.dispatch('FormItem', 'on-form-change', data.value);
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue