@form-create/element-ui 3.1.6 → 3.1.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/form-create.esm.js +24 -9
- package/dist/form-create.esm.min.js +2 -2
- package/dist/form-create.js +24 -9
- package/dist/form-create.min.js +2 -2
- package/package.json +3 -3
- package/src/core/manager.js +22 -9
package/dist/form-create.esm.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @form-create/element-ui v3.1.
|
|
2
|
+
* @form-create/element-ui v3.1.7
|
|
3
3
|
* (c) 2018-2022 xaboy
|
|
4
4
|
* Github https://github.com/xaboy/form-create
|
|
5
5
|
* Released under the MIT License.
|
|
@@ -5538,7 +5538,7 @@ function FormCreateFactory(config) {
|
|
|
5538
5538
|
});
|
|
5539
5539
|
}
|
|
5540
5540
|
|
|
5541
|
-
this.initOptions(this.options
|
|
5541
|
+
this.initOptions(this.options.value);
|
|
5542
5542
|
this.$handle.init();
|
|
5543
5543
|
},
|
|
5544
5544
|
isSub: function isSub() {
|
|
@@ -6066,8 +6066,10 @@ var manager = {
|
|
|
6066
6066
|
makeInfo: function makeInfo(rule, uni) {
|
|
6067
6067
|
var _this4 = this;
|
|
6068
6068
|
|
|
6069
|
-
var titleProp = rule.title;
|
|
6070
|
-
|
|
6069
|
+
var titleProp = _objectSpread2({}, rule.title);
|
|
6070
|
+
|
|
6071
|
+
var infoProp = _objectSpread2({}, rule.info);
|
|
6072
|
+
|
|
6071
6073
|
var isTip = isTooltip(infoProp);
|
|
6072
6074
|
var form = this.options.form;
|
|
6073
6075
|
var children = [(titleProp.title || '') + (form.labelSuffix || form['label-suffix'] || '')];
|
|
@@ -6081,6 +6083,8 @@ var manager = {
|
|
|
6081
6083
|
delete prop.props.icon;
|
|
6082
6084
|
delete prop.props.show;
|
|
6083
6085
|
delete prop.props.info;
|
|
6086
|
+
delete prop.props.align;
|
|
6087
|
+
delete prop.props["native"];
|
|
6084
6088
|
var field = 'content';
|
|
6085
6089
|
|
|
6086
6090
|
if (infoProp.info && !hasProperty(prop.props, field)) {
|
|
@@ -6102,11 +6106,16 @@ var manager = {
|
|
|
6102
6106
|
})));
|
|
6103
6107
|
}
|
|
6104
6108
|
|
|
6105
|
-
|
|
6109
|
+
var _prop = mergeProps([titleProp, {
|
|
6106
6110
|
props: titleProp,
|
|
6107
6111
|
key: "".concat(uni, "tit"),
|
|
6108
6112
|
type: titleProp.type || 'span'
|
|
6109
|
-
}])
|
|
6113
|
+
}]);
|
|
6114
|
+
|
|
6115
|
+
delete _prop.props.show;
|
|
6116
|
+
delete _prop.props.title;
|
|
6117
|
+
delete _prop.props["native"];
|
|
6118
|
+
return this.$r(_prop, children);
|
|
6110
6119
|
},
|
|
6111
6120
|
makeCol: function makeCol(rule, uni, children) {
|
|
6112
6121
|
var col = rule.col;
|
|
@@ -6162,6 +6171,9 @@ var manager = {
|
|
|
6162
6171
|
|
|
6163
6172
|
var innerText = resetBtn.innerText;
|
|
6164
6173
|
delete resetBtn.innerText;
|
|
6174
|
+
delete resetBtn.click;
|
|
6175
|
+
delete resetBtn.col;
|
|
6176
|
+
delete resetBtn.show;
|
|
6165
6177
|
return this.$r({
|
|
6166
6178
|
type: 'button',
|
|
6167
6179
|
props: resetBtn,
|
|
@@ -6171,7 +6183,7 @@ var manager = {
|
|
|
6171
6183
|
on: {
|
|
6172
6184
|
click: function click() {
|
|
6173
6185
|
var fApi = _this5.$handle.api;
|
|
6174
|
-
resetBtn.click ? resetBtn.click(fApi) : fApi.resetFields();
|
|
6186
|
+
_this5.options.resetBtn.click ? _this5.options.resetBtn.click(fApi) : fApi.resetFields();
|
|
6175
6187
|
}
|
|
6176
6188
|
},
|
|
6177
6189
|
key: "".concat(this.key, "b2")
|
|
@@ -6184,6 +6196,9 @@ var manager = {
|
|
|
6184
6196
|
|
|
6185
6197
|
var innerText = submitBtn.innerText;
|
|
6186
6198
|
delete submitBtn.innerText;
|
|
6199
|
+
delete submitBtn.click;
|
|
6200
|
+
delete submitBtn.col;
|
|
6201
|
+
delete submitBtn.show;
|
|
6187
6202
|
return this.$r({
|
|
6188
6203
|
type: 'button',
|
|
6189
6204
|
props: submitBtn,
|
|
@@ -6193,7 +6208,7 @@ var manager = {
|
|
|
6193
6208
|
on: {
|
|
6194
6209
|
click: function click() {
|
|
6195
6210
|
var fApi = _this6.$handle.api;
|
|
6196
|
-
submitBtn.click ? submitBtn.click(fApi) : fApi.submit();
|
|
6211
|
+
_this6.options.submitBtn.click ? _this6.options.submitBtn.click(fApi) : fApi.submit();
|
|
6197
6212
|
}
|
|
6198
6213
|
},
|
|
6199
6214
|
key: "".concat(this.key, "b1")
|
|
@@ -6516,7 +6531,7 @@ function install(FormCreate) {
|
|
|
6516
6531
|
function elmFormCreate() {
|
|
6517
6532
|
return FormCreateFactory({
|
|
6518
6533
|
ui: 'element-ui',
|
|
6519
|
-
version: '3.1.
|
|
6534
|
+
version: '3.1.7',
|
|
6520
6535
|
manager: manager,
|
|
6521
6536
|
extendApi: extendApi,
|
|
6522
6537
|
install: install,
|