@form-create/element-ui 3.1.1 → 3.1.2

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/auto-import.js CHANGED
@@ -57,15 +57,6 @@ import 'element-plus/es/components/date-picker/style/css'
57
57
  import 'element-plus/es/components/time-picker/style/css'
58
58
  import 'element-plus/es/components/progress/style/css'
59
59
 
60
- import Warning from '@element-plus/icons-vue/dist/es/warning'
61
- import View from '@element-plus/icons-vue/dist/es/view'
62
- import Delete from '@element-plus/icons-vue/dist/es/delete'
63
- import Document from '@element-plus/icons-vue/dist/es/document'
64
- import UploadIcon from '@element-plus/icons-vue/dist/es/upload'
65
- import CircleClose from '@element-plus/icons-vue/dist/es/circle-close'
66
- import CirclePlus from '@element-plus/icons-vue/dist/es/circle-plus'
67
- import Remove from '@element-plus/icons-vue/dist/es/remove'
68
-
69
60
  export default function install(formCreate) {
70
61
  formCreate.useApp((_, app) => {
71
62
  app.use(ElForm).use(ElButton).use(ElRow).use(ElCol).use(ElInput).use(ElInputNumber).use(ElCascader)
@@ -73,11 +64,6 @@ export default function install(formCreate) {
73
64
  .use(ElRadioGroup).use(ElRadioButton).use(ElRadio).use(ElDialog).use(ElCheckbox).use(ElSelect)
74
65
  .use(ElTree).use(ElUpload).use(ElSlider).use(ElRate).use(ElColorPicker).use(ElSwitch).use(ElDatePicker)
75
66
  .use(ElIcon).use(ElTimePicker).use(ElProgress);
76
-
77
- app.component(Warning.name, Warning).component(View.name, View).component(Delete.name, Delete)
78
- .component(Document.name, Document).component(UploadIcon.name, UploadIcon)
79
- .component(CircleClose.name, CircleClose).component(CirclePlus.name, CirclePlus)
80
- .component(Remove.name, Remove);
81
67
  });
82
68
 
83
69
  }
@@ -1,10 +1,10 @@
1
1
  /*!
2
- * @form-create/element-ui v3.1.0
2
+ * @form-create/element-ui v3.1.2
3
3
  * (c) 2018-2022 xaboy
4
4
  * Github https://github.com/xaboy/form-create
5
5
  * Released under the MIT License.
6
6
  */
7
- import { defineComponent, toRef, resolveComponent, createVNode, mergeProps as mergeProps$1, isVNode, nextTick, Fragment, markRaw, reactive, getCurrentInstance, provide, inject, toRefs, onMounted, onBeforeUnmount, onUpdated, watch, computed, customRef, withDirectives, resolveDirective, createApp, h, ref } from 'vue';
7
+ import { defineComponent, toRef, resolveComponent, createVNode, mergeProps as mergeProps$1, openBlock, createElementBlock, createElementVNode, isVNode, nextTick, Fragment, markRaw, reactive, getCurrentInstance, provide, inject, toRefs, onMounted, onBeforeUnmount, onUpdated, watch, computed, customRef, withDirectives, resolveDirective, createApp, h, ref } from 'vue';
8
8
 
9
9
  function ownKeys(object, enumerableOnly) {
10
10
  var keys = Object.keys(object);
@@ -342,9 +342,124 @@ function styleInject(css, ref) {
342
342
  }
343
343
  }
344
344
 
345
- var css_248z$2 = "._fc-frame ._fc-files img{display:inline-block;height:100%;vertical-align:top;width:100%}._fc-frame ._fc-upload-btn{border:1px dashed #c0ccda}._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-btn{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}";
345
+ var css_248z$2 = "._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}";
346
346
  styleInject(css_248z$2);
347
347
 
348
+ var script$8 = {
349
+ name: 'IconCircleClose'
350
+ };
351
+
352
+ var _hoisted_1$8 = {
353
+ "class": "icon",
354
+ viewBox: "0 0 1024 1024",
355
+ xmlns: "http://www.w3.org/2000/svg"
356
+ };
357
+
358
+ var _hoisted_2$8 = /*#__PURE__*/createElementVNode("path", {
359
+ fill: "currentColor",
360
+ d: "M466.752 512l-90.496-90.496a32 32 0 0145.248-45.248L512 466.752l90.496-90.496a32 32 0 1145.248 45.248L557.248 512l90.496 90.496a32 32 0 11-45.248 45.248L512 557.248l-90.496 90.496a32 32 0 01-45.248-45.248L466.752 512z"
361
+ }, null, -1);
362
+
363
+ var _hoisted_3$8 = /*#__PURE__*/createElementVNode("path", {
364
+ fill: "currentColor",
365
+ d: "M512 896a384 384 0 100-768 384 384 0 000 768zm0 64a448 448 0 110-896 448 448 0 010 896z"
366
+ }, null, -1);
367
+
368
+ var _hoisted_4$2 = [_hoisted_2$8, _hoisted_3$8];
369
+ function render$8(_ctx, _cache, $props, $setup, $data, $options) {
370
+ return openBlock(), createElementBlock("svg", _hoisted_1$8, _hoisted_4$2);
371
+ }
372
+
373
+ script$8.render = render$8;
374
+
375
+ var script$7 = {
376
+ name: 'IconDocument'
377
+ };
378
+
379
+ var _hoisted_1$7 = {
380
+ "class": "icon",
381
+ viewBox: "0 0 1024 1024",
382
+ xmlns: "http://www.w3.org/2000/svg"
383
+ };
384
+
385
+ var _hoisted_2$7 = /*#__PURE__*/createElementVNode("path", {
386
+ fill: "currentColor",
387
+ d: "M832 384H576V128H192v768h640V384zm-26.496-64L640 154.496V320h165.504zM160 64h480l256 256v608a32 32 0 01-32 32H160a32 32 0 01-32-32V96a32 32 0 0132-32zm160 448h384v64H320v-64zm0-192h160v64H320v-64zm0 384h384v64H320v-64z"
388
+ }, null, -1);
389
+
390
+ var _hoisted_3$7 = [_hoisted_2$7];
391
+ function render$7(_ctx, _cache, $props, $setup, $data, $options) {
392
+ return openBlock(), createElementBlock("svg", _hoisted_1$7, _hoisted_3$7);
393
+ }
394
+
395
+ script$7.render = render$7;
396
+
397
+ var script$6 = {
398
+ name: 'IconDelete'
399
+ };
400
+
401
+ var _hoisted_1$6 = {
402
+ "class": "icon",
403
+ viewBox: "0 0 1024 1024",
404
+ xmlns: "http://www.w3.org/2000/svg"
405
+ };
406
+
407
+ var _hoisted_2$6 = /*#__PURE__*/createElementVNode("path", {
408
+ fill: "currentColor",
409
+ d: "M160 256H96a32 32 0 010-64h256V95.936a32 32 0 0132-32h256a32 32 0 0132 32V192h256a32 32 0 110 64h-64v672a32 32 0 01-32 32H192a32 32 0 01-32-32V256zm448-64v-64H416v64h192zM224 896h576V256H224v640zm192-128a32 32 0 01-32-32V416a32 32 0 0164 0v320a32 32 0 01-32 32zm192 0a32 32 0 01-32-32V416a32 32 0 0164 0v320a32 32 0 01-32 32z"
410
+ }, null, -1);
411
+
412
+ var _hoisted_3$6 = [_hoisted_2$6];
413
+ function render$6(_ctx, _cache, $props, $setup, $data, $options) {
414
+ return openBlock(), createElementBlock("svg", _hoisted_1$6, _hoisted_3$6);
415
+ }
416
+
417
+ script$6.render = render$6;
418
+
419
+ var script$5 = {
420
+ name: 'IconView'
421
+ };
422
+
423
+ var _hoisted_1$5 = {
424
+ "class": "icon",
425
+ viewBox: "0 0 1024 1024",
426
+ xmlns: "http://www.w3.org/2000/svg"
427
+ };
428
+
429
+ var _hoisted_2$5 = /*#__PURE__*/createElementVNode("path", {
430
+ fill: "currentColor",
431
+ d: "M512 160c320 0 512 352 512 352S832 864 512 864 0 512 0 512s192-352 512-352zm0 64c-225.28 0-384.128 208.064-436.8 288 52.608 79.872 211.456 288 436.8 288 225.28 0 384.128-208.064 436.8-288-52.608-79.872-211.456-288-436.8-288zm0 64a224 224 0 110 448 224 224 0 010-448zm0 64a160.192 160.192 0 00-160 160c0 88.192 71.744 160 160 160s160-71.808 160-160-71.744-160-160-160z"
432
+ }, null, -1);
433
+
434
+ var _hoisted_3$5 = [_hoisted_2$5];
435
+ function render$5(_ctx, _cache, $props, $setup, $data, $options) {
436
+ return openBlock(), createElementBlock("svg", _hoisted_1$5, _hoisted_3$5);
437
+ }
438
+
439
+ script$5.render = render$5;
440
+
441
+ var script$4 = {
442
+ name: 'IconFolderOpened'
443
+ };
444
+
445
+ var _hoisted_1$4 = {
446
+ "class": "icon",
447
+ viewBox: "0 0 1024 1024",
448
+ xmlns: "http://www.w3.org/2000/svg"
449
+ };
450
+
451
+ var _hoisted_2$4 = /*#__PURE__*/createElementVNode("path", {
452
+ fill: "currentColor",
453
+ d: "M878.08 448H241.92l-96 384h636.16l96-384zM832 384v-64H485.76L357.504 192H128v448l57.92-231.744A32 32 0 01216.96 384H832zm-24.96 512H96a32 32 0 01-32-32V160a32 32 0 0132-32h287.872l128.384 128H864a32 32 0 0132 32v96h23.04a32 32 0 0131.04 39.744l-112 448A32 32 0 01807.04 896z"
454
+ }, null, -1);
455
+
456
+ var _hoisted_3$4 = [_hoisted_2$4];
457
+ function render$4(_ctx, _cache, $props, $setup, $data, $options) {
458
+ return openBlock(), createElementBlock("svg", _hoisted_1$4, _hoisted_3$4);
459
+ }
460
+
461
+ script$4.render = render$4;
462
+
348
463
  function _isSlot$1(s) {
349
464
  return typeof s === 'function' || Object.prototype.toString.call(s) === '[object Object]' && !isVNode(s);
350
465
  }
@@ -372,7 +487,7 @@ var Frame = defineComponent({
372
487
  },
373
488
  icon: {
374
489
  type: String,
375
- "default": 'upload'
490
+ "default": 'IconFolderOpened'
376
491
  },
377
492
  width: {
378
493
  type: String,
@@ -457,6 +572,10 @@ var Frame = defineComponent({
457
572
  formCreateInject: Object
458
573
  },
459
574
  emits: ['update:modelValue', 'change'],
575
+ components: {
576
+ IconFolderOpened: script$4,
577
+ IconView: script$5
578
+ },
460
579
  data: function data() {
461
580
  return {
462
581
  fileList: toArray(this.modelValue),
@@ -515,7 +634,7 @@ var Frame = defineComponent({
515
634
  }), {
516
635
  append: function append() {
517
636
  return createVNode(resolveComponent("ElButton"), {
518
- "icon": _this.icon,
637
+ "icon": resolveComponent(_this.icon),
519
638
  "onClick": function onClick() {
520
639
  return _this.showModel();
521
640
  }
@@ -523,7 +642,7 @@ var Frame = defineComponent({
523
642
  },
524
643
  suffix: function suffix() {
525
644
  return _this.fileList.length ? createVNode(resolveComponent("ElIcon"), {
526
- "class": "el-input__icon",
645
+ "class": "el-input__icon _fc-upload-icon",
527
646
  "onClick": function onClick() {
528
647
  _this.fileList = [];
529
648
 
@@ -531,7 +650,7 @@ var Frame = defineComponent({
531
650
  }
532
651
  }, {
533
652
  "default": function _default() {
534
- return [createVNode(resolveComponent("CircleClose"), null, null)];
653
+ return [createVNode(script$8, null, null)];
535
654
  }
536
655
  }) : null;
537
656
  }
@@ -580,7 +699,7 @@ var Frame = defineComponent({
580
699
  makeHandleIcon: function makeHandleIcon(val, index) {
581
700
  var _this2 = this;
582
701
 
583
- var Type = resolveComponent(this.handleIcon === true || this.handleIcon === undefined ? 'view' : this.handleIcon);
702
+ var Type = resolveComponent(this.handleIcon === true || this.handleIcon === undefined ? 'icon-view' : this.handleIcon);
584
703
  return createVNode(resolveComponent("ElIcon"), {
585
704
  "onClick": function onClick() {
586
705
  return _this2.handleClick(val);
@@ -602,7 +721,7 @@ var Frame = defineComponent({
602
721
  "key": '6' + index
603
722
  }, {
604
723
  "default": function _default() {
605
- return [createVNode(resolveComponent("delete"), null, null)];
724
+ return [createVNode(script$6, null, null)];
606
725
  }
607
726
  });
608
727
  },
@@ -616,7 +735,7 @@ var Frame = defineComponent({
616
735
  }
617
736
  }, {
618
737
  "default": function _default() {
619
- return [createVNode(resolveComponent("document"), null, null)];
738
+ return [createVNode(script$7, null, null)];
620
739
  }
621
740
  }), _this4.makeIcons(src, index)]);
622
741
  }));
@@ -999,6 +1118,28 @@ var Tree = defineComponent({
999
1118
  var css_248z$1 = "._fc-exceed .el-upload{display:none}";
1000
1119
  styleInject(css_248z$1);
1001
1120
 
1121
+ var script$3 = {
1122
+ name: 'IconUpload'
1123
+ };
1124
+
1125
+ var _hoisted_1$3 = {
1126
+ "class": "icon",
1127
+ viewBox: "0 0 1024 1024",
1128
+ xmlns: "http://www.w3.org/2000/svg"
1129
+ };
1130
+
1131
+ var _hoisted_2$3 = /*#__PURE__*/createElementVNode("path", {
1132
+ fill: "currentColor",
1133
+ d: "M160 832h704a32 32 0 110 64H160a32 32 0 110-64zm384-578.304V704h-64V247.296L237.248 490.048 192 444.8 508.8 128l316.8 316.8-45.312 45.248L544 253.696z"
1134
+ }, null, -1);
1135
+
1136
+ var _hoisted_3$3 = [_hoisted_2$3];
1137
+ function render$3(_ctx, _cache, $props, $setup, $data, $options) {
1138
+ return openBlock(), createElementBlock("svg", _hoisted_1$3, _hoisted_3$3);
1139
+ }
1140
+
1141
+ script$3.render = render$3;
1142
+
1002
1143
  function parseFile(file, i) {
1003
1144
  return {
1004
1145
  url: file,
@@ -1093,7 +1234,7 @@ var Upload = defineComponent({
1093
1234
  "default": function _default() {
1094
1235
  return [((_this$$slots$default = (_this$$slots = _this.$slots)["default"]) === null || _this$$slots$default === void 0 ? void 0 : _this$$slots$default.call(_this$$slots)) || createVNode(resolveComponent("ElIcon"), null, {
1095
1236
  "default": function _default() {
1096
- return [createVNode(resolveComponent("upload"), null, null)];
1237
+ return [createVNode(script$3, null, null)];
1097
1238
  }
1098
1239
  })];
1099
1240
  }
@@ -1137,6 +1278,65 @@ function hasProperty(rule, k) {
1137
1278
  return {}.hasOwnProperty.call(rule, k);
1138
1279
  }
1139
1280
 
1281
+ var script$2 = {
1282
+ name: 'IconCirclePlus'
1283
+ };
1284
+
1285
+ var _hoisted_1$2 = {
1286
+ "class": "icon",
1287
+ viewBox: "0 0 1024 1024",
1288
+ xmlns: "http://www.w3.org/2000/svg"
1289
+ };
1290
+
1291
+ var _hoisted_2$2 = /*#__PURE__*/createElementVNode("path", {
1292
+ fill: "currentColor",
1293
+ d: "M352 480h320a32 32 0 110 64H352a32 32 0 010-64z"
1294
+ }, null, -1);
1295
+
1296
+ var _hoisted_3$2 = /*#__PURE__*/createElementVNode("path", {
1297
+ fill: "currentColor",
1298
+ d: "M480 672V352a32 32 0 1164 0v320a32 32 0 01-64 0z"
1299
+ }, null, -1);
1300
+
1301
+ var _hoisted_4$1 = /*#__PURE__*/createElementVNode("path", {
1302
+ fill: "currentColor",
1303
+ d: "M512 896a384 384 0 100-768 384 384 0 000 768zm0 64a448 448 0 110-896 448 448 0 010 896z"
1304
+ }, null, -1);
1305
+
1306
+ var _hoisted_5 = [_hoisted_2$2, _hoisted_3$2, _hoisted_4$1];
1307
+ function render$2(_ctx, _cache, $props, $setup, $data, $options) {
1308
+ return openBlock(), createElementBlock("svg", _hoisted_1$2, _hoisted_5);
1309
+ }
1310
+
1311
+ script$2.render = render$2;
1312
+
1313
+ var script$1 = {
1314
+ name: 'IconRemove'
1315
+ };
1316
+
1317
+ var _hoisted_1$1 = {
1318
+ "class": "icon",
1319
+ viewBox: "0 0 1024 1024",
1320
+ xmlns: "http://www.w3.org/2000/svg"
1321
+ };
1322
+
1323
+ var _hoisted_2$1 = /*#__PURE__*/createElementVNode("path", {
1324
+ fill: "currentColor",
1325
+ d: "M352 480h320a32 32 0 110 64H352a32 32 0 010-64z"
1326
+ }, null, -1);
1327
+
1328
+ var _hoisted_3$1 = /*#__PURE__*/createElementVNode("path", {
1329
+ fill: "currentColor",
1330
+ d: "M512 896a384 384 0 100-768 384 384 0 000 768zm0 64a448 448 0 110-896 448 448 0 010 896z"
1331
+ }, null, -1);
1332
+
1333
+ var _hoisted_4 = [_hoisted_2$1, _hoisted_3$1];
1334
+ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
1335
+ return openBlock(), createElementBlock("svg", _hoisted_1$1, _hoisted_4);
1336
+ }
1337
+
1338
+ script$1.render = render$1;
1339
+
1140
1340
  function _isSlot(s) {
1141
1341
  return typeof s === 'function' || Object.prototype.toString.call(s) === '[object Object]' && !isVNode(s);
1142
1342
  }
@@ -1366,13 +1566,13 @@ var Group = defineComponent({
1366
1566
  this.input(this.modelValue);
1367
1567
  },
1368
1568
  addIcon: function addIcon(key) {
1369
- return createVNode(resolveComponent("el-icon"), {
1569
+ return createVNode(resolveComponent("ElIcon"), {
1370
1570
  "key": "a".concat(key),
1371
1571
  "style": "font-size:".concat(this.fontSize, "px;cursor:").concat(this.disabled ? 'not-allowed;color:#c9cdd4' : 'pointer', ";"),
1372
1572
  "onClick": this.add
1373
1573
  }, {
1374
1574
  "default": function _default() {
1375
- return [createVNode(resolveComponent("circle-plus"), null, null)];
1575
+ return [createVNode(script$2, null, null)];
1376
1576
  }
1377
1577
  });
1378
1578
  },
@@ -1388,7 +1588,7 @@ var Group = defineComponent({
1388
1588
  }
1389
1589
  }, {
1390
1590
  "default": function _default() {
1391
- return [createVNode(resolveComponent("remove"), null, null)];
1591
+ return [createVNode(script$1, null, null)];
1392
1592
  }
1393
1593
  });
1394
1594
  },
@@ -1445,12 +1645,15 @@ var Group = defineComponent({
1445
1645
  return keys.length === 0 ? this.$slots["default"] ? this.$slots["default"]({
1446
1646
  vm: this,
1447
1647
  add: this.add
1448
- }) : createVNode("i", {
1648
+ }) : createVNode(resolveComponent("ElIcon"), {
1449
1649
  "key": 1,
1450
- "class": "el-icon-circle-plus-outline",
1451
1650
  "style": "font-size:".concat(this.fontSize, "px;vertical-align:middle;color:").concat(this.disabled ? '#c9cdd4;cursor: not-allowed' : '#606266;cursor:pointer', ";"),
1452
1651
  "onClick": this.add
1453
- }, null) : createVNode("div", {
1652
+ }, {
1653
+ "default": function _default() {
1654
+ return [createVNode(script$2, null, null)];
1655
+ }
1656
+ }) : createVNode("div", {
1454
1657
  "key": 2
1455
1658
  }, [keys.map(function (key, index) {
1456
1659
  var _slot;
@@ -1597,7 +1800,29 @@ var Sub = defineComponent({
1597
1800
  }
1598
1801
  });
1599
1802
 
1600
- var components = [Checkbox, Frame, Radio, Select, Tree, Upload, Group, Sub];
1803
+ var script = {
1804
+ name: 'IconWarning'
1805
+ };
1806
+
1807
+ var _hoisted_1 = {
1808
+ "class": "icon",
1809
+ viewBox: "0 0 1024 1024",
1810
+ xmlns: "http://www.w3.org/2000/svg"
1811
+ };
1812
+
1813
+ var _hoisted_2 = /*#__PURE__*/createElementVNode("path", {
1814
+ fill: "currentColor",
1815
+ d: "M512 64a448 448 0 110 896 448 448 0 010-896zm0 832a384 384 0 000-768 384 384 0 000 768zm48-176a48 48 0 11-96 0 48 48 0 0196 0zm-48-464a32 32 0 0132 32v288a32 32 0 01-64 0V288a32 32 0 0132-32z"
1816
+ }, null, -1);
1817
+
1818
+ var _hoisted_3 = [_hoisted_2];
1819
+ function render(_ctx, _cache, $props, $setup, $data, $options) {
1820
+ return openBlock(), createElementBlock("svg", _hoisted_1, _hoisted_3);
1821
+ }
1822
+
1823
+ script.render = render;
1824
+
1825
+ var components = [Checkbox, Frame, Radio, Select, Tree, Upload, Group, Sub, script];
1601
1826
 
1602
1827
  var NAME$1 = 'FormCreate';
1603
1828
  function $FormCreate(FormCreate) {
@@ -3920,7 +4145,7 @@ function useInput(Handler) {
3920
4145
  }
3921
4146
  },
3922
4147
  setFormData: function setFormData(ctx, value) {
3923
- $set(this.formData, ctx.id, value === undefined ? null : value);
4148
+ $set(this.formData, ctx.id, value === null ? undefined : value);
3924
4149
  },
3925
4150
  getFormData: function getFormData(ctx) {
3926
4151
  return this.formData[ctx.id];
@@ -4935,7 +5160,7 @@ function FormCreateFactory(config) {
4935
5160
  return components[name];
4936
5161
  }
4937
5162
  } else {
4938
- name = toCase(id.name);
5163
+ name = toCase(id.displayName || id.name);
4939
5164
  component = id;
4940
5165
  }
4941
5166
 
@@ -5594,7 +5819,7 @@ var manager = {
5594
5819
  }, {
5595
5820
  "default": function _default() {
5596
5821
  return _this4.$r({
5597
- type: infoProp.icon === true ? 'warning' : infoProp.icon
5822
+ type: infoProp.icon === true ? 'icon-warning' : infoProp.icon
5598
5823
  });
5599
5824
  }
5600
5825
  }, true);
@@ -5965,7 +6190,7 @@ function install(FormCreate) {
5965
6190
  function elmFormCreate() {
5966
6191
  return FormCreateFactory({
5967
6192
  ui: 'element-ui',
5968
- version: '3.1.0',
6193
+ version: '3.1.2',
5969
6194
  manager: manager,
5970
6195
  extendApi: extendApi,
5971
6196
  install: install,