vxe-table 3.8.7-beta.2 → 3.8.7-beta.3

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.
Files changed (105) hide show
  1. package/lib/form/src/form-config-item.js +2 -2
  2. package/lib/form/src/form-config-item.min.js +1 -1
  3. package/lib/form/src/form-gather.js +15 -12
  4. package/lib/form/src/form-gather.min.js +1 -1
  5. package/lib/form/src/form-item.js +2 -1
  6. package/lib/form/src/form-item.min.js +1 -1
  7. package/lib/form/src/form.js +1 -1
  8. package/lib/form/src/form.min.js +1 -1
  9. package/lib/form/src/util.js +1 -0
  10. package/lib/form/src/util.min.js +1 -1
  11. package/lib/form/style/style.css +91 -3
  12. package/lib/form/style/style.min.css +1 -1
  13. package/lib/icon/style/style.css +6 -2
  14. package/lib/icon/style/style.min.css +6 -2
  15. package/lib/index.css +1 -1
  16. package/lib/index.umd.js +110 -45
  17. package/lib/index.umd.min.js +1 -1
  18. package/lib/locale/lang/en-US.js +8 -1
  19. package/lib/locale/lang/en-US.min.js +1 -1
  20. package/lib/locale/lang/en-US.umd.js +8 -1
  21. package/lib/locale/lang/es-ES.js +9 -2
  22. package/lib/locale/lang/es-ES.min.js +1 -1
  23. package/lib/locale/lang/es-ES.umd.js +9 -2
  24. package/lib/locale/lang/ja-JP.js +7 -0
  25. package/lib/locale/lang/ja-JP.min.js +1 -1
  26. package/lib/locale/lang/ja-JP.umd.js +7 -0
  27. package/lib/locale/lang/pt-BR.js +191 -184
  28. package/lib/locale/lang/pt-BR.min.js +1 -1
  29. package/lib/locale/lang/pt-BR.umd.js +191 -184
  30. package/lib/locale/lang/zh-CN.js +7 -0
  31. package/lib/locale/lang/zh-CN.min.js +1 -1
  32. package/lib/locale/lang/zh-CN.umd.js +7 -0
  33. package/lib/locale/lang/zh-HK.min.js +1 -1
  34. package/lib/locale/lang/zh-HK.umd.js +7 -0
  35. package/lib/locale/lang/zh-MO.min.js +1 -1
  36. package/lib/locale/lang/zh-MO.umd.js +7 -0
  37. package/lib/locale/lang/zh-TC.js +7 -0
  38. package/lib/locale/lang/zh-TC.min.js +1 -1
  39. package/lib/locale/lang/zh-TC.umd.js +7 -0
  40. package/lib/locale/lang/zh-TW.min.js +1 -1
  41. package/lib/locale/lang/zh-TW.umd.js +7 -0
  42. package/lib/modal/src/modal.js +26 -8
  43. package/lib/modal/src/modal.min.js +1 -1
  44. package/lib/style.css +1 -1
  45. package/lib/style.min.css +1 -1
  46. package/lib/switch/src/switch.js +3 -1
  47. package/lib/switch/src/switch.min.js +1 -1
  48. package/lib/switch/style/style.css +10 -0
  49. package/lib/switch/style/style.min.css +1 -1
  50. package/lib/table/src/body.js +3 -3
  51. package/lib/table/src/body.min.js +1 -1
  52. package/lib/table/src/table.js +3 -3
  53. package/lib/table/src/table.min.js +1 -1
  54. package/lib/tools/log.js +1 -1
  55. package/lib/tools/log.min.js +1 -1
  56. package/lib/v-x-e-table/index.js +26 -4
  57. package/lib/v-x-e-table/index.min.js +1 -1
  58. package/lib/v-x-e-table/src/conf.js +2 -0
  59. package/lib/v-x-e-table/src/conf.min.js +1 -1
  60. package/lib/v-x-e-table/src/config.js +1 -3
  61. package/lib/v-x-e-table/src/config.min.js +1 -1
  62. package/lib/v-x-e-table/style/style.css +5 -1
  63. package/lib/v-x-e-table/style/style.min.css +1 -1
  64. package/lib/validator/src/mixin.js +16 -16
  65. package/lib/validator/src/mixin.min.js +1 -1
  66. package/lib/vxe-form/style/style.css +91 -3
  67. package/lib/vxe-form/style/style.min.css +1 -1
  68. package/lib/vxe-icon/style/style.css +5 -1
  69. package/lib/vxe-icon/style/style.min.css +1 -1
  70. package/lib/vxe-switch/style/style.css +10 -0
  71. package/lib/vxe-switch/style/style.min.css +1 -1
  72. package/package.json +1 -1
  73. package/packages/form/src/form-config-item.js +2 -2
  74. package/packages/form/src/form-gather.js +6 -11
  75. package/packages/form/src/form-item.js +2 -1
  76. package/packages/form/src/form.js +1 -1
  77. package/packages/form/src/util.js +1 -0
  78. package/packages/locale/lang/en-US.js +8 -1
  79. package/packages/locale/lang/es-ES.js +9 -2
  80. package/packages/locale/lang/ja-JP.js +7 -0
  81. package/packages/locale/lang/pt-BR.js +192 -185
  82. package/packages/locale/lang/zh-CN.js +7 -0
  83. package/packages/locale/lang/zh-TC.js +7 -0
  84. package/packages/modal/src/modal.js +13 -8
  85. package/packages/switch/src/switch.js +3 -1
  86. package/packages/table/src/body.js +3 -3
  87. package/packages/table/src/table.js +3 -3
  88. package/packages/v-x-e-table/index.js +24 -3
  89. package/packages/v-x-e-table/src/conf.js +2 -0
  90. package/packages/v-x-e-table/src/config.js +0 -2
  91. package/packages/validator/src/mixin.js +16 -16
  92. package/styles/form.scss +27 -3
  93. package/styles/icon.scss +1 -1
  94. package/styles/old-icon.scss +5 -0
  95. package/styles/switch.scss +10 -0
  96. package/types/form-item.d.ts +2 -1
  97. package/types/v-x-e-table/index.d.ts +69 -8
  98. package/types/v-x-e-table/renderer.d.ts +6 -0
  99. package/types/v-x-e-table/config.d.ts +0 -55
  100. /package/lib/icon/style/{iconfont.1715850304028.ttf → iconfont.1716169891278.ttf} +0 -0
  101. /package/lib/icon/style/{iconfont.1715850304028.woff → iconfont.1716169891278.woff} +0 -0
  102. /package/lib/icon/style/{iconfont.1715850304028.woff2 → iconfont.1716169891278.woff2} +0 -0
  103. /package/lib/{iconfont.1715850304028.ttf → iconfont.1716169891278.ttf} +0 -0
  104. /package/lib/{iconfont.1715850304028.woff → iconfont.1716169891278.woff} +0 -0
  105. /package/lib/{iconfont.1715850304028.woff2 → iconfont.1716169891278.woff2} +0 -0
package/lib/index.umd.js CHANGED
@@ -11013,6 +11013,7 @@ var iconPrefix = 'vxe-icon-';
11013
11013
  validConfig: {
11014
11014
  showMessage: true,
11015
11015
  autoClear: true,
11016
+ autoPos: true,
11016
11017
  message: 'inline',
11017
11018
  msgMode: 'single'
11018
11019
  },
@@ -11322,6 +11323,7 @@ var iconPrefix = 'vxe-icon-';
11322
11323
  animat: true,
11323
11324
  showClose: true,
11324
11325
  draggable: true,
11326
+ showConfirmButton: null,
11325
11327
  // storage: false,
11326
11328
  storageKey: 'VXE_MODAL_POSITION'
11327
11329
  },
@@ -11349,7 +11351,7 @@ var es_array_concat = __webpack_require__(8706);
11349
11351
 
11350
11352
 
11351
11353
  function getLog(message, params) {
11352
- return "[vxe-table v".concat("3.8.7-beta.2", "] ").concat(conf.i18n(message, params));
11354
+ return "[vxe-table v".concat("3.8.7-beta.3", "] ").concat(conf.i18n(message, params));
11353
11355
  }
11354
11356
  function outLog(type) {
11355
11357
  return function (message, params) {
@@ -12988,7 +12990,6 @@ function setConfig(options) {
12988
12990
  }
12989
12991
  return external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().merge(conf, options);
12990
12992
  }
12991
- var config = setConfig;
12992
12993
  ;// CONCATENATED MODULE: ./packages/v-x-e-table/index.js
12993
12994
 
12994
12995
 
@@ -13085,11 +13086,28 @@ function _t(key, args) {
13085
13086
  return key ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toValueString(conf.translate ? conf.translate(key, args) : key) : '';
13086
13087
  }
13087
13088
  var v = 'v3';
13088
- var setup = setConfig;
13089
+
13090
+ /**
13091
+ * 已废弃,请使用 setConfig
13092
+ * @deprecated
13093
+ */
13094
+ var setup = function setup(options) {
13095
+ if (false) {}
13096
+ return setConfig(options);
13097
+ };
13098
+
13099
+ /**
13100
+ * 已废弃,请使用 setConfig
13101
+ * @deprecated
13102
+ */
13103
+ var config = function config(options) {
13104
+ if (false) {}
13105
+ return setConfig(options);
13106
+ };
13089
13107
  var globalStore = {};
13090
13108
  var VXETable = {
13091
13109
  v: v,
13092
- version: "3.8.7-beta.2",
13110
+ version: "3.8.7-beta.3",
13093
13111
  reg: reg,
13094
13112
  use: use,
13095
13113
  setConfig: setConfig,
@@ -13103,7 +13121,7 @@ var VXETable = {
13103
13121
  t: t,
13104
13122
  _t: _t,
13105
13123
  // 已废弃
13106
- config: setConfig,
13124
+ config: config,
13107
13125
  setup: setup,
13108
13126
  globalConfs: globalConfs
13109
13127
  };
@@ -14461,9 +14479,9 @@ function syncBodyScroll(_vm, fixedType, scrollTop, elem1, elem2) {
14461
14479
  }, h);
14462
14480
  } else {
14463
14481
  var compConf = emptyOpts.name ? v_x_e_table.renderer.get(emptyOpts.name) : null;
14464
- var renderEmpty = compConf ? compConf.renderEmpty : null;
14465
- if (renderEmpty) {
14466
- emptyContent = getSlotVNs(renderEmpty.call(this, h, emptyOpts, {
14482
+ var renderTableEmptyView = compConf ? compConf.renderTableEmptyView || compConf.renderEmpty : null;
14483
+ if (renderTableEmptyView) {
14484
+ emptyContent = getSlotVNs(renderTableEmptyView.call(this, h, emptyOpts, {
14467
14485
  $table: $xetable
14468
14486
  }));
14469
14487
  } else {
@@ -22982,9 +23000,9 @@ function renderEmptyContenet(h, _vm) {
22982
23000
  emptyContent = $scopedSlots.empty.call(_vm, params, h);
22983
23001
  } else {
22984
23002
  var compConf = emptyOpts.name ? v_x_e_table.renderer.get(emptyOpts.name) : null;
22985
- var renderEmpty = compConf ? compConf.renderEmpty : null;
22986
- if (renderEmpty) {
22987
- emptyContent = getSlotVNs(renderEmpty.call(_vm, h, emptyOpts, params));
23003
+ var renderTableEmptyView = compConf ? compConf.renderTableEmptyView || compConf.renderEmpty : null;
23004
+ if (renderTableEmptyView) {
23005
+ emptyContent = getSlotVNs(renderTableEmptyView.call(_vm, h, emptyOpts, params));
22988
23006
  } else {
22989
23007
  emptyContent = getFuncText(_vm.emptyText) || conf.i18n('vxe.table.emptyText');
22990
23008
  }
@@ -26200,12 +26218,22 @@ var msgQueue = [];
26200
26218
  // 请使用 content
26201
26219
  message: [String, Function],
26202
26220
  content: [String, Function],
26221
+ showCancelButton: {
26222
+ type: Boolean,
26223
+ default: null
26224
+ },
26203
26225
  cancelButtonText: {
26204
26226
  type: String,
26205
26227
  default: function _default() {
26206
26228
  return conf.modal.cancelButtonText;
26207
26229
  }
26208
26230
  },
26231
+ showConfirmButton: {
26232
+ type: Boolean,
26233
+ default: function _default() {
26234
+ return conf.modal.showConfirmButton;
26235
+ }
26236
+ },
26209
26237
  confirmButtonText: {
26210
26238
  type: String,
26211
26239
  default: function _default() {
@@ -26453,7 +26481,9 @@ var msgQueue = [];
26453
26481
  mask = this.mask,
26454
26482
  isMsg = this.isMsg,
26455
26483
  showTitleOverflow = this.showTitleOverflow,
26456
- destroyOnClose = this.destroyOnClose;
26484
+ destroyOnClose = this.destroyOnClose,
26485
+ showCancelButton = this.showCancelButton,
26486
+ showConfirmButton = this.showConfirmButton;
26457
26487
  var content = this.content || this.message;
26458
26488
  var defaultSlot = $scopedSlots.default || slots.default;
26459
26489
  var footerSlot = $scopedSlots.footer || slots.footer;
@@ -26539,12 +26569,14 @@ var msgQueue = [];
26539
26569
  class: 'vxe-modal--footer'
26540
26570
  }, footerSlot ? !inited || destroyOnClose && !visible ? [] : getSlotVNs(footerSlot.call(this, {
26541
26571
  $modal: this
26542
- }, h)) : [type === 'confirm' ? h('vxe-button', {
26572
+ }, h)) : [external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isBoolean(showCancelButton) ? showCancelButton : type === 'confirm' ? h('vxe-button', {
26573
+ key: 1,
26543
26574
  ref: 'cancelBtn',
26544
26575
  on: {
26545
26576
  click: this.cancelEvent
26546
26577
  }
26547
- }, this.cancelButtonText || conf.i18n('vxe.button.cancel')) : null, h('vxe-button', {
26578
+ }, this.cancelButtonText || conf.i18n('vxe.button.cancel')) : null, external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isBoolean(showConfirmButton) ? showConfirmButton : type === 'confirm' || type === 'alert' ? h('vxe-button', {
26579
+ key: 2,
26548
26580
  ref: 'confirmBtn',
26549
26581
  props: {
26550
26582
  status: 'primary'
@@ -26552,7 +26584,7 @@ var msgQueue = [];
26552
26584
  on: {
26553
26585
  click: this.confirmEvent
26554
26586
  }
26555
- }, this.confirmButtonText || conf.i18n('vxe.button.confirm'))]) : null, !isMsg && resize ? h('span', {
26587
+ }, this.confirmButtonText || conf.i18n('vxe.button.confirm')) : null]) : null, !isMsg && resize ? h('span', {
26556
26588
  class: 'vxe-modal--resize'
26557
26589
  }, ['wl', 'wr', 'swst', 'sest', 'st', 'swlb', 'selb', 'sb'].map(function (type) {
26558
26590
  return h('span', {
@@ -26985,6 +27017,10 @@ var msgQueue = [];
26985
27017
  modalBoxElem.style.left = "".concat(left, "px");
26986
27018
  modalBoxElem.style.top = "".concat(top, "px");
26987
27019
  modalBoxElem.className = modalBoxElem.className.replace(/\s?is--drag/, '') + ' is--drag';
27020
+ _this11.$emit('move', {
27021
+ type: 'move',
27022
+ $event: evnt
27023
+ });
26988
27024
  };
26989
27025
  document.onmouseup = function () {
26990
27026
  document.onmousemove = domMousemove;
@@ -27148,10 +27184,10 @@ var msgQueue = [];
27148
27184
  if (remember && storage) {
27149
27185
  _this12.savePosStorage();
27150
27186
  }
27151
- if ($listeners.zoom) {
27152
- _this12.$emit('zoom', params);
27153
- } else if (events.zoom) {
27154
- events.zoom.call(_this12, params);
27187
+ if ($listeners.resize) {
27188
+ _this12.$emit('resize', params);
27189
+ } else if (events.resize) {
27190
+ events.resize.call(_this12, params);
27155
27191
  }
27156
27192
  };
27157
27193
  document.onmouseup = function () {
@@ -33948,6 +33984,9 @@ var Keyboard = VxeTableKeyboardModule;
33948
33984
 
33949
33985
 
33950
33986
 
33987
+
33988
+
33989
+
33951
33990
 
33952
33991
 
33953
33992
 
@@ -34081,20 +34120,20 @@ function validErrorRuleValue(rule, val) {
34081
34120
  treeConfig = this.treeConfig,
34082
34121
  treeOpts = this.treeOpts;
34083
34122
  var childrenField = treeOpts.children || treeOpts.childrenField;
34084
- var vaildDatas;
34123
+ var validDatas;
34085
34124
  if (rows === true) {
34086
- vaildDatas = afterFullData;
34125
+ validDatas = afterFullData;
34087
34126
  } else if (rows) {
34088
34127
  if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(rows)) {
34089
34128
  cb = rows;
34090
34129
  } else {
34091
- vaildDatas = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isArray(rows) ? rows : [rows];
34130
+ validDatas = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isArray(rows) ? rows : [rows];
34092
34131
  }
34093
34132
  }
34094
- if (!vaildDatas) {
34095
- vaildDatas = this.getInsertRecords().concat(this.getUpdateRecords());
34133
+ if (!validDatas) {
34134
+ validDatas = this.getInsertRecords().concat(this.getUpdateRecords());
34096
34135
  }
34097
- var rowValids = [];
34136
+ var rowValidErrs = [];
34098
34137
  this.lastCallTime = Date.now();
34099
34138
  this.validRuleErr = false; // 如果为快速校验,当存在某列校验不通过时将终止执行
34100
34139
  this.clearValidate();
@@ -34136,17 +34175,17 @@ function validErrorRuleValue(rule, val) {
34136
34175
  }));
34137
34176
  }
34138
34177
  });
34139
- rowValids.push(Promise.all(colVailds));
34178
+ rowValidErrs.push(Promise.all(colVailds));
34140
34179
  }
34141
34180
  };
34142
34181
  if (treeConfig) {
34143
- external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eachTree(vaildDatas, handleVaild, {
34182
+ external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eachTree(validDatas, handleVaild, {
34144
34183
  children: childrenField
34145
34184
  });
34146
34185
  } else {
34147
- vaildDatas.forEach(handleVaild);
34186
+ validDatas.forEach(handleVaild);
34148
34187
  }
34149
- return Promise.all(rowValids).then(function () {
34188
+ return Promise.all(rowValidErrs).then(function () {
34150
34189
  var ruleProps = Object.keys(validRest);
34151
34190
  _this2.validErrorMaps = _this2.handleErrMsgMode(validErrMaps);
34152
34191
  return _this2.$nextTick().then(function () {
@@ -34191,9 +34230,9 @@ function validErrorRuleValue(rule, val) {
34191
34230
  var column = firstErrParams.column;
34192
34231
  var rowIndex = afterFullData.indexOf(row);
34193
34232
  var columnIndex = visibleColumn.indexOf(column);
34194
- var locatRow = rowIndex > 0 ? afterFullData[rowIndex - 1] : row;
34195
- var locatColumn = columnIndex > 0 ? visibleColumn[rowIndex - 1] : column;
34196
- _this2.scrollToRow(locatRow, locatColumn).then(posAndFinish);
34233
+ var targetRow = rowIndex > 0 ? afterFullData[rowIndex - 1] : row;
34234
+ var targetColumn = columnIndex > 0 ? visibleColumn[columnIndex - 1] : column;
34235
+ _this2.scrollToRow(targetRow, targetColumn).then(posAndFinish);
34197
34236
  }
34198
34237
  });
34199
34238
  });
@@ -34348,9 +34387,9 @@ function validErrorRuleValue(rule, val) {
34348
34387
  validErrMaps = Object.assign({}, validErrorMaps);
34349
34388
  rowList.forEach(function (row) {
34350
34389
  colList.forEach(function (column) {
34351
- var vaildKey = "".concat(getRowid(_this4, row), ":").concat(column.id);
34352
- if (validErrMaps[vaildKey]) {
34353
- delete validErrMaps[vaildKey];
34390
+ var validKey = "".concat(getRowid(_this4, row), ":").concat(column.id);
34391
+ if (validErrMaps[validKey]) {
34392
+ delete validErrMaps[validKey];
34354
34393
  }
34355
34394
  });
34356
34395
  });
@@ -39458,6 +39497,7 @@ var Tooltip = VxeTooltip;
39458
39497
 
39459
39498
 
39460
39499
 
39500
+
39461
39501
  var ItemConfig = /*#__PURE__*/function () {
39462
39502
  function ItemConfig($xeform, item) {
39463
39503
  _classCallCheck(this, ItemConfig);
@@ -39486,6 +39526,7 @@ var ItemConfig = /*#__PURE__*/function () {
39486
39526
  titleClassName: item.titleClassName,
39487
39527
  titleStyle: item.titleStyle,
39488
39528
  itemRender: item.itemRender,
39529
+ rules: item.rules,
39489
39530
  // 渲染属性
39490
39531
  showError: false,
39491
39532
  errRule: null,
@@ -39653,6 +39694,7 @@ function renderTitle(h, _vm, item) {
39653
39694
 
39654
39695
 
39655
39696
 
39697
+
39656
39698
  /**
39657
39699
  * 配置式项
39658
39700
  */
@@ -39747,7 +39789,7 @@ var VxeFormConfigItem = {
39747
39789
  });
39748
39790
  });
39749
39791
  return childVNs.length ? h('div', {
39750
- class: ['vxe-form--gather vxe-row', item.id, span ? "vxe-col--".concat(span, " is--span") : '', className ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(className) ? className(params) : className : '']
39792
+ class: ['vxe-form--gather vxe-form--item-row', item.id, span ? "vxe-form--item-col_".concat(span, " is--span") : '', className ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(className) ? className(params) : className : '']
39751
39793
  }, childVNs) : _e();
39752
39794
  }
39753
39795
  if (rules) {
@@ -39775,7 +39817,7 @@ var VxeFormConfigItem = {
39775
39817
  mouseleave: $xeform.handleTitleTipLeaveEvent
39776
39818
  } : {};
39777
39819
  return h('div', {
39778
- class: ['vxe-form--item', item.id, span ? "vxe-col--".concat(span, " is--span") : null, className ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(className) ? className(params) : className : '', itemClassName ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(itemClassName) ? itemClassName(params) : itemClassName : '', {
39820
+ class: ['vxe-form--item', item.id, span ? "vxe-form--item-col_".concat(span, " is--span") : null, className ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(className) ? className(params) : className : '', itemClassName ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(itemClassName) ? itemClassName(params) : itemClassName : '', {
39779
39821
  'is--title': title,
39780
39822
  'is--colon': titleColon,
39781
39823
  'is--vertical': itemVertical,
@@ -39846,6 +39888,9 @@ var VxeFormConfigItem = {
39846
39888
 
39847
39889
 
39848
39890
 
39891
+
39892
+
39893
+
39849
39894
 
39850
39895
 
39851
39896
 
@@ -40067,7 +40112,7 @@ function getResetValue(value, resetValue) {
40067
40112
  reset: this.resetEvent
40068
40113
  }
40069
40114
  }, [h('div', {
40070
- class: 'vxe-form--wrapper vxe-row'
40115
+ class: 'vxe-form--wrapper vxe-form--item-row'
40071
40116
  }, customLayout ? defaultSlot ? this.callSlot(defaultSlot, {}, h) : [] : formItems.map(function (item, index) {
40072
40117
  return h(form_config_item, {
40073
40118
  key: index,
@@ -40570,6 +40615,7 @@ var Form = VxeForm;
40570
40615
 
40571
40616
 
40572
40617
 
40618
+
40573
40619
  var form_item_props = {
40574
40620
  title: String,
40575
40621
  field: String,
@@ -40621,7 +40667,8 @@ var form_item_props = {
40621
40667
  visibleMethod: Function,
40622
40668
  folding: Boolean,
40623
40669
  collapseNode: Boolean,
40624
- itemRender: Object
40670
+ itemRender: Object,
40671
+ rules: Array
40625
40672
  };
40626
40673
  var form_item_watch = {};
40627
40674
  Object.keys(form_item_props).forEach(function (name) {
@@ -40814,12 +40861,21 @@ var FormItem = VxeFormItem;
40814
40861
  $xeformiteminfo: this
40815
40862
  };
40816
40863
  },
40817
- created: function created() {
40818
- var _this = this;
40819
- if (false) {}
40820
- },
40821
40864
  render: function render(h) {
40822
- return h('div', this.$slots.default);
40865
+ var $xeform = this.$xeform,
40866
+ className = this.className,
40867
+ field = this.field,
40868
+ itemConfig = this.itemConfig;
40869
+ var span = this.span || ($xeform ? $xeform.props.span : null);
40870
+ return $xeform && $xeform.customLayout ? h('div', {
40871
+ class: ['vxe-form--gather vxe-form--item-row', itemConfig.id, span ? "vxe-form--item-col_".concat(span, " is--span") : '', className ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(className) ? className({
40872
+ $form: $xeform,
40873
+ data: $xeform ? $xeform.props.data : {},
40874
+ item: itemConfig,
40875
+ field: field,
40876
+ property: field
40877
+ }) : className : '']
40878
+ }, this.$slots.default) : h('div');
40823
40879
  }
40824
40880
  });
40825
40881
  ;// CONCATENATED MODULE: ./packages/form-gather/index.js
@@ -40955,7 +41011,9 @@ var Option = VxeOption;
40955
41011
  default: false
40956
41012
  },
40957
41013
  openIcon: String,
40958
- closeIcon: String
41014
+ closeIcon: String,
41015
+ openActiveIcon: String,
41016
+ closeActiveIcon: String
40959
41017
  },
40960
41018
  inject: {
40961
41019
  $xeform: {
@@ -42031,6 +42089,13 @@ var Pulldown = VxePulldown;
42031
42089
  }
42032
42090
  }
42033
42091
  },
42092
+ formDesign: {
42093
+ widget: {
42094
+ input: '输入框',
42095
+ textarea: '文本域',
42096
+ select: '下拉框'
42097
+ }
42098
+ },
42034
42099
  /**
42035
42100
  * 扩展插件
42036
42101
  */