@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.
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @form-create/element-ui v3.1.6
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.
@@ -5542,7 +5542,7 @@
5542
5542
  });
5543
5543
  }
5544
5544
 
5545
- this.initOptions(this.options || {});
5545
+ this.initOptions(this.options.value);
5546
5546
  this.$handle.init();
5547
5547
  },
5548
5548
  isSub: function isSub() {
@@ -6070,8 +6070,10 @@
6070
6070
  makeInfo: function makeInfo(rule, uni) {
6071
6071
  var _this4 = this;
6072
6072
 
6073
- var titleProp = rule.title;
6074
- var infoProp = rule.info;
6073
+ var titleProp = _objectSpread2({}, rule.title);
6074
+
6075
+ var infoProp = _objectSpread2({}, rule.info);
6076
+
6075
6077
  var isTip = isTooltip(infoProp);
6076
6078
  var form = this.options.form;
6077
6079
  var children = [(titleProp.title || '') + (form.labelSuffix || form['label-suffix'] || '')];
@@ -6085,6 +6087,8 @@
6085
6087
  delete prop.props.icon;
6086
6088
  delete prop.props.show;
6087
6089
  delete prop.props.info;
6090
+ delete prop.props.align;
6091
+ delete prop.props["native"];
6088
6092
  var field = 'content';
6089
6093
 
6090
6094
  if (infoProp.info && !hasProperty(prop.props, field)) {
@@ -6106,11 +6110,16 @@
6106
6110
  })));
6107
6111
  }
6108
6112
 
6109
- return this.$r(mergeProps([titleProp, {
6113
+ var _prop = mergeProps([titleProp, {
6110
6114
  props: titleProp,
6111
6115
  key: "".concat(uni, "tit"),
6112
6116
  type: titleProp.type || 'span'
6113
- }]), children);
6117
+ }]);
6118
+
6119
+ delete _prop.props.show;
6120
+ delete _prop.props.title;
6121
+ delete _prop.props["native"];
6122
+ return this.$r(_prop, children);
6114
6123
  },
6115
6124
  makeCol: function makeCol(rule, uni, children) {
6116
6125
  var col = rule.col;
@@ -6166,6 +6175,9 @@
6166
6175
 
6167
6176
  var innerText = resetBtn.innerText;
6168
6177
  delete resetBtn.innerText;
6178
+ delete resetBtn.click;
6179
+ delete resetBtn.col;
6180
+ delete resetBtn.show;
6169
6181
  return this.$r({
6170
6182
  type: 'button',
6171
6183
  props: resetBtn,
@@ -6175,7 +6187,7 @@
6175
6187
  on: {
6176
6188
  click: function click() {
6177
6189
  var fApi = _this5.$handle.api;
6178
- resetBtn.click ? resetBtn.click(fApi) : fApi.resetFields();
6190
+ _this5.options.resetBtn.click ? _this5.options.resetBtn.click(fApi) : fApi.resetFields();
6179
6191
  }
6180
6192
  },
6181
6193
  key: "".concat(this.key, "b2")
@@ -6188,6 +6200,9 @@
6188
6200
 
6189
6201
  var innerText = submitBtn.innerText;
6190
6202
  delete submitBtn.innerText;
6203
+ delete submitBtn.click;
6204
+ delete submitBtn.col;
6205
+ delete submitBtn.show;
6191
6206
  return this.$r({
6192
6207
  type: 'button',
6193
6208
  props: submitBtn,
@@ -6197,7 +6212,7 @@
6197
6212
  on: {
6198
6213
  click: function click() {
6199
6214
  var fApi = _this6.$handle.api;
6200
- submitBtn.click ? submitBtn.click(fApi) : fApi.submit();
6215
+ _this6.options.submitBtn.click ? _this6.options.submitBtn.click(fApi) : fApi.submit();
6201
6216
  }
6202
6217
  },
6203
6218
  key: "".concat(this.key, "b1")
@@ -6520,7 +6535,7 @@
6520
6535
  function elmFormCreate() {
6521
6536
  return FormCreateFactory({
6522
6537
  ui: 'element-ui',
6523
- version: '3.1.6',
6538
+ version: '3.1.7',
6524
6539
  manager: manager,
6525
6540
  extendApi: extendApi,
6526
6541
  install: install,