@form-create/element-ui 3.1.25 → 3.1.27

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,6 +1,6 @@
1
1
  /*!
2
- * @form-create/element-ui v3.1.25
3
- * (c) 2018-2023 xaboy
2
+ * @form-create/element-ui v3.1.27
3
+ * (c) 2018-2024 xaboy
4
4
  * Github https://github.com/xaboy/form-create
5
5
  * Released under the MIT License.
6
6
  */
@@ -350,7 +350,7 @@
350
350
  }
351
351
  }
352
352
 
353
- var css_248z$3 = "._fc-frame ._fc-files img{display:inline-block;height:100%;vertical-align:top;width:100%}._fc-frame ._fc-upload-btn{border:1px dashed #c0ccda;cursor:pointer}._fc-frame ._fc-upload-cover{background:rgba(0,0,0,.6);bottom:0;left:0;opacity:0;position:absolute;right:0;top:0;-webkit-transition:opacity .3s;-o-transition:opacity .3s;transition:opacity .3s}._fc-frame ._fc-upload-cover i{color:#fff;cursor:pointer;font-size:20px;margin:0 2px}._fc-frame ._fc-files:hover ._fc-upload-cover{opacity:1}._fc-frame .el-upload{display:block}._fc-frame ._fc-upload-icon{cursor:pointer}._fc-files,._fc-frame ._fc-upload-btn{background:#fff;border:1px solid #c0ccda;border-radius:4px;-webkit-box-shadow:2px 2px 5px rgba(0,0,0,.1);box-shadow:2px 2px 5px rgba(0,0,0,.1);-webkit-box-sizing:border-box;box-sizing:border-box;display:inline-block;height:58px;line-height:58px;margin-right:4px;overflow:hidden;position:relative;text-align:center;width:58px}";
353
+ var css_248z$3 = "._fc-frame ._fc-files img{display:inline-block;height:100%;vertical-align:top;width:100%}._fc-frame ._fc-upload-btn{border:1px dashed #c0ccda;cursor:pointer}._fc-frame._fc-disabled ._fc-upload-btn,._fc-frame._fc-disabled .el-button{color:#999;cursor:not-allowed!important}._fc-frame ._fc-upload-cover{background:rgba(0,0,0,.6);bottom:0;left:0;opacity:0;position:absolute;right:0;top:0;-webkit-transition:opacity .3s;-o-transition:opacity .3s;transition:opacity .3s}._fc-frame ._fc-upload-cover i{color:#fff;cursor:pointer;font-size:20px;margin:0 2px}._fc-frame ._fc-files:hover ._fc-upload-cover{opacity:1}._fc-frame .el-upload{display:block}._fc-frame ._fc-upload-icon{cursor:pointer}._fc-files,._fc-frame ._fc-upload-btn{background:#fff;border:1px solid #c0ccda;border-radius:4px;-webkit-box-shadow:2px 2px 5px rgba(0,0,0,.1);box-shadow:2px 2px 5px rgba(0,0,0,.1);-webkit-box-sizing:border-box;box-sizing:border-box;display:inline-block;height:58px;line-height:58px;margin-right:4px;overflow:hidden;position:relative;text-align:center;width:58px}";
354
354
  styleInject(css_248z$3);
355
355
 
356
356
  var script$6 = {
@@ -649,7 +649,7 @@
649
649
  }, null);
650
650
  },
651
651
  suffix: function suffix() {
652
- return _this.fileList.length ? vue.createVNode(vue.resolveComponent("ElIcon"), {
652
+ return _this.fileList.length && !_this.disabled ? vue.createVNode(vue.resolveComponent("ElIcon"), {
653
653
  "class": "el-input__icon _fc-upload-icon",
654
654
  "onClick": function onClick() {
655
655
  _this.fileList = [];
@@ -892,7 +892,10 @@
892
892
  }
893
893
  });
894
894
  return vue.createVNode("div", {
895
- "class": "_fc-frame"
895
+ "class": {
896
+ '_fc-frame': true,
897
+ '_fc-disabled': this.disabled
898
+ }
896
899
  }, [node, vue.createVNode(vue.resolveComponent("ElDialog"), {
897
900
  "appendToBody": true,
898
901
  "modal": this.previewMask,
@@ -1193,7 +1196,7 @@
1193
1196
  }
1194
1197
  });
1195
1198
 
1196
- var css_248z$2 = "._fc-exceed .el-upload{display:none}";
1199
+ var css_248z$2 = "._fc-exceed .el-upload{display:none}.el-upload-list.is-disabled .el-upload{cursor:not-allowed!important}";
1197
1200
  styleInject(css_248z$2);
1198
1201
 
1199
1202
  var script$1 = {
@@ -1763,7 +1766,7 @@
1763
1766
  },
1764
1767
  expandRule: function expandRule(n) {
1765
1768
  for (var i = 0; i < n; i++) {
1766
- this.modelValue.push(this.field ? null : {});
1769
+ this.addRule(i);
1767
1770
  }
1768
1771
  }
1769
1772
  },
@@ -3229,7 +3232,7 @@
3229
3232
  _vn = _this4.display(_vn);
3230
3233
  }
3231
3234
 
3232
- cacheFlag && _this4.setCache(ctx, function () {
3235
+ cacheFlag && !Object.keys(children).length && _this4.setCache(ctx, function () {
3233
3236
  return _vn;
3234
3237
  }, parent);
3235
3238
  return _vn;
@@ -3803,6 +3806,8 @@
3803
3806
 
3804
3807
  onLoad && onLoad(value);
3805
3808
  _this2.$api && _this2.$api.sync(_this2.rule);
3809
+ })["catch"](function (e) {
3810
+ console.error(e);
3806
3811
  });
3807
3812
  value = def;
3808
3813
  this.setPending(key, origin, value);
@@ -4826,7 +4831,7 @@
4826
4831
 
4827
4832
  this.deferSyncValue(function () {
4828
4833
  o && o.forEach(function (child) {
4829
- if ((n || []).indexOf(child) === -1 && child && !is.String(child) && child.__fc__ && child.__fc__.parent === ctx) {
4834
+ if ((n || []).indexOf(child) === -1 && child && !is.String(child) && child.__fc__ && child.__fc__.parent === ctx && child.__fc__.root === o) {
4830
4835
  _this2.rmCtx(child.__fc__);
4831
4836
  }
4832
4837
  });
@@ -6576,7 +6581,7 @@
6576
6581
  on: {
6577
6582
  click: function click() {
6578
6583
  var fApi = _this6.$handle.api;
6579
- _this6.options.submitBtn.click ? _this6.options.submitBtn.click(fApi) : fApi.submit();
6584
+ _this6.options.submitBtn.click ? _this6.options.submitBtn.click(fApi) : fApi.submit()["catch"](function () {});
6580
6585
  }
6581
6586
  },
6582
6587
  key: "".concat(this.key, "b1")
@@ -6919,7 +6924,7 @@
6919
6924
  function elmFormCreate() {
6920
6925
  return FormCreateFactory({
6921
6926
  ui: 'element-ui',
6922
- version: '3.1.25',
6927
+ version: '3.1.27',
6923
6928
  manager: manager,
6924
6929
  extendApi: extendApi,
6925
6930
  install: install,