@form-create/element-ui 3.2.35 → 3.2.37

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.2.35
3
- * (c) 2018-2025 xaboy
2
+ * @form-create/element-ui v3.2.37
3
+ * (c) 2018-2026 xaboy
4
4
  * Github https://github.com/xaboy/form-create
5
5
  * Released under the MIT License.
6
6
  */
@@ -479,7 +479,7 @@
479
479
  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}";
480
480
  styleInject(css_248z$3);
481
481
 
482
- var script$6 = {
482
+ var script$7 = {
483
483
  name: 'IconCircleClose'
484
484
  };
485
485
 
@@ -500,13 +500,13 @@
500
500
  }, null, -1);
501
501
 
502
502
  var _hoisted_4 = [_hoisted_2$6, _hoisted_3$6];
503
- function render$6(_ctx, _cache, $props, $setup, $data, $options) {
503
+ function render$7(_ctx, _cache, $props, $setup, $data, $options) {
504
504
  return vue.openBlock(), vue.createElementBlock("svg", _hoisted_1$6, _hoisted_4);
505
505
  }
506
506
 
507
- script$6.render = render$6;
507
+ script$7.render = render$7;
508
508
 
509
- var script$5 = {
509
+ var script$6 = {
510
510
  name: 'IconDocument'
511
511
  };
512
512
 
@@ -522,13 +522,13 @@
522
522
  }, null, -1);
523
523
 
524
524
  var _hoisted_3$5 = [_hoisted_2$5];
525
- function render$5(_ctx, _cache, $props, $setup, $data, $options) {
525
+ function render$6(_ctx, _cache, $props, $setup, $data, $options) {
526
526
  return vue.openBlock(), vue.createElementBlock("svg", _hoisted_1$5, _hoisted_3$5);
527
527
  }
528
528
 
529
- script$5.render = render$5;
529
+ script$6.render = render$6;
530
530
 
531
- var script$4 = {
531
+ var script$5 = {
532
532
  name: 'IconDelete'
533
533
  };
534
534
 
@@ -544,13 +544,13 @@
544
544
  }, null, -1);
545
545
 
546
546
  var _hoisted_3$4 = [_hoisted_2$4];
547
- function render$4(_ctx, _cache, $props, $setup, $data, $options) {
547
+ function render$5(_ctx, _cache, $props, $setup, $data, $options) {
548
548
  return vue.openBlock(), vue.createElementBlock("svg", _hoisted_1$4, _hoisted_3$4);
549
549
  }
550
550
 
551
- script$4.render = render$4;
551
+ script$5.render = render$5;
552
552
 
553
- var script$3 = {
553
+ var script$4 = {
554
554
  name: 'IconView'
555
555
  };
556
556
 
@@ -566,13 +566,13 @@
566
566
  }, null, -1);
567
567
 
568
568
  var _hoisted_3$3 = [_hoisted_2$3];
569
- function render$3(_ctx, _cache, $props, $setup, $data, $options) {
569
+ function render$4(_ctx, _cache, $props, $setup, $data, $options) {
570
570
  return vue.openBlock(), vue.createElementBlock("svg", _hoisted_1$3, _hoisted_3$3);
571
571
  }
572
572
 
573
- script$3.render = render$3;
573
+ script$4.render = render$4;
574
574
 
575
- var script$2 = {
575
+ var script$3 = {
576
576
  name: 'IconFolderOpened'
577
577
  };
578
578
 
@@ -588,11 +588,11 @@
588
588
  }, null, -1);
589
589
 
590
590
  var _hoisted_3$2 = [_hoisted_2$2];
591
- function render$2(_ctx, _cache, $props, $setup, $data, $options) {
591
+ function render$3(_ctx, _cache, $props, $setup, $data, $options) {
592
592
  return vue.openBlock(), vue.createElementBlock("svg", _hoisted_1$2, _hoisted_3$2);
593
593
  }
594
594
 
595
- script$2.render = render$2;
595
+ script$3.render = render$3;
596
596
 
597
597
  var NAME$7 = 'fcFrame';
598
598
  var Frame = vue.defineComponent({
@@ -703,8 +703,8 @@
703
703
  },
704
704
  emits: ['update:modelValue', 'change'],
705
705
  components: {
706
- IconFolderOpened: script$2,
707
- IconView: script$3
706
+ IconFolderOpened: script$3,
707
+ IconView: script$4
708
708
  },
709
709
  data: function data() {
710
710
  return {
@@ -780,7 +780,7 @@
780
780
  }
781
781
  }, {
782
782
  "default": function _default() {
783
- return [vue.createVNode(script$6, null, null)];
783
+ return [vue.createVNode(script$7, null, null)];
784
784
  }
785
785
  }) : null;
786
786
  }
@@ -851,7 +851,7 @@
851
851
  "key": '6' + index
852
852
  }, {
853
853
  "default": function _default() {
854
- return [vue.createVNode(script$4, null, null)];
854
+ return [vue.createVNode(script$5, null, null)];
855
855
  }
856
856
  });
857
857
  },
@@ -865,7 +865,7 @@
865
865
  }
866
866
  }, {
867
867
  "default": function _default() {
868
- return [vue.createVNode(script$5, null, null)];
868
+ return [vue.createVNode(script$6, null, null)];
869
869
  }
870
870
  }), _this4.makeIcons(src, index)]);
871
871
  }));
@@ -1256,7 +1256,7 @@
1256
1256
  }
1257
1257
 
1258
1258
  var NAME$5 = 'fcSelect';
1259
- var Select = vue.defineComponent({
1259
+ var script$2 = vue.defineComponent({
1260
1260
  name: NAME$5,
1261
1261
  inheritAttrs: false,
1262
1262
  props: {
@@ -1268,63 +1268,69 @@
1268
1268
  type: String
1269
1269
  },
1270
1270
  emits: ['update:modelValue', 'fc.el'],
1271
- setup: function setup(props) {
1271
+ setup: function setup(props, _ref) {
1272
+ var emit = _ref.emit;
1272
1273
  var options = vue.toRef(props.formCreateInject, 'options', []);
1273
1274
  var value = vue.toRef(props, 'modelValue');
1274
1275
 
1275
- var _options = function _options() {
1276
+ var _options = vue.computed(function () {
1276
1277
  return Array.isArray(options.value) ? options.value : [];
1278
+ });
1279
+
1280
+ var handleUpdate = function handleUpdate(v) {
1281
+ emit('update:modelValue', v);
1277
1282
  };
1278
1283
 
1279
1284
  return {
1280
1285
  options: _options,
1281
- value: value
1286
+ value: value,
1287
+ handleUpdate: handleUpdate,
1288
+ hasProperty: hasProperty,
1289
+ is: is
1282
1290
  };
1283
1291
  },
1284
- render: function render() {
1285
- var _this = this,
1286
- _this$$slots$default,
1287
- _this$$slots;
1288
-
1289
- var makeOption = function makeOption(props, index) {
1290
- return vue.createVNode(vue.resolveComponent("ElOption"), vue.mergeProps(props, {
1291
- "key": '' + index + '-' + props.value
1292
- }), null);
1293
- };
1294
-
1295
- var makeOptionGroup = function makeOptionGroup(props, index) {
1296
- return vue.createVNode(vue.resolveComponent("ElOptionGroup"), {
1297
- "label": props.label,
1298
- "key": '' + index + '-' + props.label
1299
- }, {
1300
- "default": function _default() {
1301
- return [is.trueArray(props.options) && props.options.map(function (v, index) {
1302
- return makeOption(v, index);
1303
- })];
1304
- }
1305
- });
1306
- };
1307
-
1308
- var options = this.options();
1309
- return vue.createVNode(vue.resolveComponent("ElSelect"), vue.mergeProps(this.$attrs, {
1310
- "modelValue": this.value,
1311
- "onUpdate:modelValue": function onUpdateModelValue(v) {
1312
- return _this.$emit('update:modelValue', v);
1313
- },
1314
- "ref": "el"
1315
- }), _objectSpread2({
1316
- "default": function _default() {
1317
- return [options.map(function (props, index) {
1318
- return hasProperty(props || '', 'options') ? makeOptionGroup(props, index) : makeOption(props, index);
1319
- }), (_this$$slots$default = (_this$$slots = _this.$slots)["default"]) === null || _this$$slots$default === void 0 ? void 0 : _this$$slots$default.call(_this$$slots)];
1320
- }
1321
- }, getSlot(this.$slots, ['default'])));
1322
- },
1323
1292
  mounted: function mounted() {
1324
1293
  this.$emit('fc.el', this.$refs.el);
1325
1294
  }
1326
1295
  });
1327
1296
 
1297
+ function render$2(_ctx, _cache, $props, $setup, $data, $options) {
1298
+ var _component_el_option = vue.resolveComponent("el-option");
1299
+
1300
+ var _component_el_option_group = vue.resolveComponent("el-option-group");
1301
+
1302
+ var _component_el_select = vue.resolveComponent("el-select");
1303
+
1304
+ return vue.openBlock(), vue.createBlock(_component_el_select, vue.mergeProps(_ctx.$attrs, {
1305
+ "model-value": _ctx.value,
1306
+ "onUpdate:modelValue": _ctx.handleUpdate,
1307
+ ref: "el"
1308
+ }), {
1309
+ "default": vue.withCtx(function () {
1310
+ return [(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.options, function (props, index) {
1311
+ return vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [_ctx.hasProperty(props, 'options') ? (vue.openBlock(), vue.createBlock(_component_el_option_group, {
1312
+ label: props.label,
1313
+ key: "".concat(index, "-").concat(props.label)
1314
+ }, {
1315
+ "default": vue.withCtx(function () {
1316
+ return [(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.is.trueArray(props.options) ? props.options : [], function (option, optIndex) {
1317
+ return vue.openBlock(), vue.createBlock(_component_el_option, vue.mergeProps({
1318
+ key: "".concat(optIndex, "-").concat(option.value)
1319
+ }, option), null, 16);
1320
+ }), 128))];
1321
+ }),
1322
+ _: 2
1323
+ }, 1032, ["label"])) : (vue.openBlock(), vue.createBlock(_component_el_option, vue.mergeProps(_defineProperty({
1324
+ key: 1
1325
+ }, "key", "".concat(index, "-").concat(props.value)), props), null, 16))], 64);
1326
+ }), 256)), vue.renderSlot(_ctx.$slots, "default")];
1327
+ }),
1328
+ _: 3
1329
+ }, 16, ["model-value", "onUpdate:modelValue"]);
1330
+ }
1331
+
1332
+ script$2.render = render$2;
1333
+
1328
1334
  var NAME$4 = 'fcTree';
1329
1335
  var Tree = vue.defineComponent({
1330
1336
  name: NAME$4,
@@ -2438,7 +2444,7 @@
2438
2444
 
2439
2445
  script.render = render;
2440
2446
 
2441
- var components = [Checkbox, Frame, Radio, Select, Tree, Upload, Group, Sub, script];
2447
+ var components = [Checkbox, Frame, Radio, script$2, Tree, Upload, Group, Sub, script];
2442
2448
 
2443
2449
  var normalMerge = ['props'];
2444
2450
  var toArrayMerge = ['class', 'style', 'directives'];
@@ -4277,7 +4283,7 @@
4277
4283
  }
4278
4284
  },
4279
4285
  deepSet: function deepSet$1(ctx) {
4280
- var deep = ctx.rule.deep;
4286
+ var deep = ctx.prop.deep;
4281
4287
  deep && Object.keys(deep).sort(function (a, b) {
4282
4288
  return a.length < b.length ? -1 : 1;
4283
4289
  }).forEach(function (str) {
@@ -6130,7 +6136,7 @@
6130
6136
  this.setFormData(ctx, ctx.parser.toFormValue(rule.value, ctx));
6131
6137
 
6132
6138
  if (this.isMounted && !this.reloading) {
6133
- this.vm.emit('change', ctx.field, rule.value, ctx.origin, this.api);
6139
+ this.vm.emit('change', ctx.field, rule.value, ctx.origin, this.api, false, true);
6134
6140
  }
6135
6141
  },
6136
6142
  getParser: function getParser(ctx) {
@@ -7235,7 +7241,7 @@
7235
7241
  this.lifecycle('created');
7236
7242
  },
7237
7243
  updateAppendData: function updateAppendData() {
7238
- this.appendData = _objectSpread2(_objectSpread2(_objectSpread2({}, this.options.formData || {}), this.fc.vm.props.modelValue || {}), this.appendData);
7244
+ this.appendData = _objectSpread2(_objectSpread2(_objectSpread2({}, deepCopy(this.options.formData || {})), this.fc.vm.props.modelValue || {}), this.appendData);
7239
7245
  },
7240
7246
  isBreakWatch: function isBreakWatch() {
7241
7247
  return this.loading || this.noWatchFn || this.reloading;
@@ -9891,7 +9897,7 @@
9891
9897
  function elmFormCreate() {
9892
9898
  return FormCreateFactory({
9893
9899
  ui: 'element-ui',
9894
- version: '3.2.35',
9900
+ version: '3.2.37',
9895
9901
  manager: manager,
9896
9902
  extendApi: extendApi,
9897
9903
  install: install,