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

@ -27,11 +27,13 @@
import UploadList from './upload-list.vue';
import ajax from './ajax';
import { oneOf } from '../../utils/assist';
import Emitter from '../../mixins/emitter';
const prefixCls = 'ivu-upload';
export default {
name: 'Upload',
mixins: [ Emitter ],
components: { UploadList },
props: {
action: {
@ -277,8 +279,7 @@
_file.status = 'finished';
_file.response = res;
// todo
// this.$dispatch('on-form-change', _file);
this.dispatch('FormItem', 'on-form-change', _file);
this.onSuccess(res, _file, this.fileList);
setTimeout(() => {