提交 3d179c5f 编写于 作者: D dolymood

build: package

上级 ca98327e
此差异已折叠。
此差异已折叠。
......@@ -7260,6 +7260,15 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
},
computed: {
fieldsModel: function fieldsModel() {
var model = {};
this.fields.forEach(function (fieldComponent) {
if (!fieldComponent.isBtnField) {
model[fieldComponent.fieldValue.modelKey] = fieldComponent.modelValue;
}
});
return model;
},
groups: function groups() {
var schema = this.schema;
var groups = schema.groups || [];
......@@ -7329,13 +7338,13 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
this.syncValidatorValues();
if (this.skipValidate) {
this.$emit(EVENT_SUBMIT, e, this.model);
this.$emit(EVENT_SUBMIT, e, this.model, this.fieldsModel);
return;
}
var submited = function submited(submitResult) {
if (submitResult) {
_this.$emit(EVENT_VALID, _this.validity);
_this.$emit(EVENT_SUBMIT, e, _this.model);
_this.$emit(EVENT_SUBMIT, e, _this.model, _this.fieldsModel);
} else {
e.preventDefault();
_this.$emit(EVENT_INVALID, _this.validity);
......@@ -7501,6 +7510,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
},
addField: function addField(fieldComponent) {
this.fields.push(fieldComponent);
this.setValidity(fieldComponent.fieldValue.modelKey);
},
destroyField: function destroyField(fieldComponent) {
var i = this.fields.indexOf(fieldComponent);
......
......@@ -7226,7 +7226,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
}
var Cube = {
version: "1.12.29",
version: "1.12.30",
install: install,
BScroll: _module.BetterScroll,
createAPI: _module.createAPI
......@@ -14761,6 +14761,15 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
},
computed: {
fieldsModel: function fieldsModel() {
var model = {};
this.fields.forEach(function (fieldComponent) {
if (!fieldComponent.isBtnField) {
model[fieldComponent.fieldValue.modelKey] = fieldComponent.modelValue;
}
});
return model;
},
groups: function groups() {
var schema = this.schema;
var groups = schema.groups || [];
......@@ -14830,13 +14839,13 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
this.syncValidatorValues();
if (this.skipValidate) {
this.$emit(EVENT_SUBMIT, e, this.model);
this.$emit(EVENT_SUBMIT, e, this.model, this.fieldsModel);
return;
}
var submited = function submited(submitResult) {
if (submitResult) {
_this.$emit(EVENT_VALID, _this.validity);
_this.$emit(EVENT_SUBMIT, e, _this.model);
_this.$emit(EVENT_SUBMIT, e, _this.model, _this.fieldsModel);
} else {
e.preventDefault();
_this.$emit(EVENT_INVALID, _this.validity);
......@@ -15002,6 +15011,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
},
addField: function addField(fieldComponent) {
this.fields.push(fieldComponent);
this.setValidity(fieldComponent.fieldValue.modelKey);
},
destroyField: function destroyField(fieldComponent) {
var i = this.fields.indexOf(fieldComponent);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册