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

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 (108) 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 +239 -167
  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/methods.js +9 -7
  53. package/lib/table/src/methods.min.js +1 -1
  54. package/lib/table/src/table.js +3 -3
  55. package/lib/table/src/table.min.js +1 -1
  56. package/lib/tools/log.js +1 -1
  57. package/lib/tools/log.min.js +1 -1
  58. package/lib/v-x-e-table/index.js +55 -17
  59. package/lib/v-x-e-table/index.min.js +1 -1
  60. package/lib/v-x-e-table/src/conf.js +2 -0
  61. package/lib/v-x-e-table/src/conf.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/methods.js +9 -7
  88. package/packages/table/src/table.js +3 -3
  89. package/packages/v-x-e-table/index.js +49 -5
  90. package/packages/v-x-e-table/src/conf.js +2 -0
  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 +74 -8
  98. package/types/v-x-e-table/renderer.d.ts +6 -0
  99. package/lib/v-x-e-table/src/config.js +0 -27
  100. package/lib/v-x-e-table/src/config.min.js +0 -1
  101. package/packages/v-x-e-table/src/config.js +0 -21
  102. package/types/v-x-e-table/config.d.ts +0 -55
  103. /package/lib/icon/style/{iconfont.1715850304028.ttf → iconfont.1716213624034.ttf} +0 -0
  104. /package/lib/icon/style/{iconfont.1715850304028.woff → iconfont.1716213624034.woff} +0 -0
  105. /package/lib/icon/style/{iconfont.1715850304028.woff2 → iconfont.1716213624034.woff2} +0 -0
  106. /package/lib/{iconfont.1715850304028.ttf → iconfont.1716213624034.ttf} +0 -0
  107. /package/lib/{iconfont.1715850304028.woff → iconfont.1716213624034.woff} +0 -0
  108. /package/lib/{iconfont.1715850304028.woff2 → iconfont.1716213624034.woff2} +0 -0
package/lib/index.umd.js CHANGED
@@ -10743,6 +10743,7 @@ __webpack_require__.d(__webpack_exports__, {
10743
10743
  renderer: function() { return /* reexport */ renderer; },
10744
10744
  saveFile: function() { return /* reexport */ saveLocalFile; },
10745
10745
  setConfig: function() { return /* reexport */ setConfig; },
10746
+ setIcon: function() { return /* reexport */ setIcon; },
10746
10747
  setup: function() { return /* reexport */ setup; },
10747
10748
  t: function() { return /* reexport */ t; },
10748
10749
  use: function() { return /* reexport */ use; },
@@ -10837,6 +10838,7 @@ __webpack_require__.d(all_namespaceObject, {
10837
10838
  renderer: function() { return renderer; },
10838
10839
  saveFile: function() { return saveLocalFile; },
10839
10840
  setConfig: function() { return setConfig; },
10841
+ setIcon: function() { return setIcon; },
10840
10842
  setup: function() { return setup; },
10841
10843
  t: function() { return t; },
10842
10844
  use: function() { return use; },
@@ -10960,6 +10962,100 @@ function _createClass(Constructor, protoProps, staticProps) {
10960
10962
  }
10961
10963
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.push.js
10962
10964
  var es_array_push = __webpack_require__(4114);
10965
+ // EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.assign.js
10966
+ var es_object_assign = __webpack_require__(9085);
10967
+ ;// CONCATENATED MODULE: ./node_modules/dom-zindex/es/index.esm.js
10968
+ var storeEl = null;
10969
+ var storeId = 'z-index-manage';
10970
+ var storeMainKey = 'm';
10971
+ var storeSubKey = 's';
10972
+ var storeData = {
10973
+ m: 1000,
10974
+ s: 1000
10975
+ };
10976
+ function getDom() {
10977
+ if (!storeEl) {
10978
+ if (typeof document !== 'undefined') {
10979
+ storeEl = document.getElementById(storeId);
10980
+ if (!storeEl) {
10981
+ storeEl = document.createElement('div');
10982
+ storeEl.id = storeId;
10983
+ storeEl.style.display = 'none';
10984
+ document.body.appendChild(storeEl);
10985
+ setCurrent(storeData.m);
10986
+ setSubCurrent(storeData.s);
10987
+ }
10988
+ }
10989
+ }
10990
+ return storeEl;
10991
+ }
10992
+ function createSetHandle(key) {
10993
+ return function (value) {
10994
+ if (value) {
10995
+ value = Number(value);
10996
+ storeData[key] = value;
10997
+ var doc = getDom();
10998
+ if (doc) {
10999
+ if (doc.dataset) {
11000
+ doc.dataset[key] = value + '';
11001
+ }
11002
+ else {
11003
+ doc.setAttribute('data-' + key, value + '');
11004
+ }
11005
+ }
11006
+ }
11007
+ return storeData[key];
11008
+ };
11009
+ }
11010
+ var setCurrent = createSetHandle(storeMainKey);
11011
+ function createGetHandle(key, nextMethod) {
11012
+ return function getCurrent(currZindex) {
11013
+ var zIndex;
11014
+ var doc = getDom();
11015
+ if (doc) {
11016
+ var domVal = doc.dataset ? doc.dataset[key] : doc.getAttribute('data-' + key);
11017
+ if (domVal) {
11018
+ zIndex = Number(domVal);
11019
+ }
11020
+ }
11021
+ if (!zIndex) {
11022
+ zIndex = storeData[key];
11023
+ }
11024
+ if (currZindex) {
11025
+ if (Number(currZindex) < zIndex) {
11026
+ return nextMethod();
11027
+ }
11028
+ return currZindex;
11029
+ }
11030
+ return zIndex;
11031
+ };
11032
+ }
11033
+ var getCurrent = createGetHandle(storeMainKey, getNext);
11034
+ function getNext() {
11035
+ return setCurrent(getCurrent() + 1);
11036
+ }
11037
+ var setSubCurrent = createSetHandle(storeSubKey);
11038
+ var _getSubCurrent = createGetHandle(storeSubKey, getSubNext);
11039
+ function getSubCurrent() {
11040
+ return getCurrent() + _getSubCurrent();
11041
+ }
11042
+ function getSubNext() {
11043
+ setSubCurrent(_getSubCurrent() + 1);
11044
+ return getSubCurrent();
11045
+ }
11046
+ /**
11047
+ * Web common z-index style management
11048
+ */
11049
+ var DomZIndex = {
11050
+ setCurrent: setCurrent,
11051
+ getCurrent: getCurrent,
11052
+ getNext: getNext,
11053
+ setSubCurrent: setSubCurrent,
11054
+ getSubCurrent: getSubCurrent,
11055
+ getSubNext: getSubNext
11056
+ };
11057
+ /* harmony default export */ var index_esm = (DomZIndex);
11058
+
10963
11059
  ;// CONCATENATED MODULE: ./packages/v-x-e-table/src/conf.js
10964
11060
  var iconPrefix = 'vxe-icon-';
10965
11061
  /* harmony default export */ var conf = ({
@@ -11013,6 +11109,7 @@ var iconPrefix = 'vxe-icon-';
11013
11109
  validConfig: {
11014
11110
  showMessage: true,
11015
11111
  autoClear: true,
11112
+ autoPos: true,
11016
11113
  message: 'inline',
11017
11114
  msgMode: 'single'
11018
11115
  },
@@ -11322,6 +11419,7 @@ var iconPrefix = 'vxe-icon-';
11322
11419
  animat: true,
11323
11420
  showClose: true,
11324
11421
  draggable: true,
11422
+ showConfirmButton: null,
11325
11423
  // storage: false,
11326
11424
  storageKey: 'VXE_MODAL_POSITION'
11327
11425
  },
@@ -11349,7 +11447,7 @@ var es_array_concat = __webpack_require__(8706);
11349
11447
 
11350
11448
 
11351
11449
  function getLog(message, params) {
11352
- return "[vxe-table v".concat("3.8.7-beta.2", "] ").concat(conf.i18n(message, params));
11450
+ return "[vxe-table v".concat("3.8.7-beta.4", "] ").concat(conf.i18n(message, params));
11353
11451
  }
11354
11452
  function outLog(type) {
11355
11453
  return function (message, params) {
@@ -11538,98 +11636,6 @@ function _toConsumableArray(arr) {
11538
11636
  }
11539
11637
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.splice.js
11540
11638
  var es_array_splice = __webpack_require__(4554);
11541
- ;// CONCATENATED MODULE: ./node_modules/dom-zindex/es/index.esm.js
11542
- var storeEl = null;
11543
- var storeId = 'z-index-manage';
11544
- var storeMainKey = 'm';
11545
- var storeSubKey = 's';
11546
- var storeData = {
11547
- m: 1000,
11548
- s: 1000
11549
- };
11550
- function getDom() {
11551
- if (!storeEl) {
11552
- if (typeof document !== 'undefined') {
11553
- storeEl = document.getElementById(storeId);
11554
- if (!storeEl) {
11555
- storeEl = document.createElement('div');
11556
- storeEl.id = storeId;
11557
- storeEl.style.display = 'none';
11558
- document.body.appendChild(storeEl);
11559
- setCurrent(storeData.m);
11560
- setSubCurrent(storeData.s);
11561
- }
11562
- }
11563
- }
11564
- return storeEl;
11565
- }
11566
- function createSetHandle(key) {
11567
- return function (value) {
11568
- if (value) {
11569
- value = Number(value);
11570
- storeData[key] = value;
11571
- var doc = getDom();
11572
- if (doc) {
11573
- if (doc.dataset) {
11574
- doc.dataset[key] = value + '';
11575
- }
11576
- else {
11577
- doc.setAttribute('data-' + key, value + '');
11578
- }
11579
- }
11580
- }
11581
- return storeData[key];
11582
- };
11583
- }
11584
- var setCurrent = createSetHandle(storeMainKey);
11585
- function createGetHandle(key, nextMethod) {
11586
- return function getCurrent(currZindex) {
11587
- var zIndex;
11588
- var doc = getDom();
11589
- if (doc) {
11590
- var domVal = doc.dataset ? doc.dataset[key] : doc.getAttribute('data-' + key);
11591
- if (domVal) {
11592
- zIndex = Number(domVal);
11593
- }
11594
- }
11595
- if (!zIndex) {
11596
- zIndex = storeData[key];
11597
- }
11598
- if (currZindex) {
11599
- if (Number(currZindex) < zIndex) {
11600
- return nextMethod();
11601
- }
11602
- return currZindex;
11603
- }
11604
- return zIndex;
11605
- };
11606
- }
11607
- var getCurrent = createGetHandle(storeMainKey, getNext);
11608
- function getNext() {
11609
- return setCurrent(getCurrent() + 1);
11610
- }
11611
- var setSubCurrent = createSetHandle(storeSubKey);
11612
- var _getSubCurrent = createGetHandle(storeSubKey, getSubNext);
11613
- function getSubCurrent() {
11614
- return getCurrent() + _getSubCurrent();
11615
- }
11616
- function getSubNext() {
11617
- setSubCurrent(_getSubCurrent() + 1);
11618
- return getSubCurrent();
11619
- }
11620
- /**
11621
- * Web common z-index style management
11622
- */
11623
- var DomZIndex = {
11624
- setCurrent: setCurrent,
11625
- getCurrent: getCurrent,
11626
- getNext: getNext,
11627
- setSubCurrent: setSubCurrent,
11628
- getSubCurrent: getSubCurrent,
11629
- getSubNext: getSubNext
11630
- };
11631
- /* harmony default export */ var index_esm = (DomZIndex);
11632
-
11633
11639
  ;// CONCATENATED MODULE: ./packages/tools/utils.js
11634
11640
 
11635
11641
 
@@ -12968,27 +12974,6 @@ function setTheme(options) {
12968
12974
  }
12969
12975
  }
12970
12976
  }
12971
- ;// CONCATENATED MODULE: ./packages/v-x-e-table/src/config.js
12972
-
12973
-
12974
-
12975
-
12976
-
12977
- /**
12978
- * 全局参数设置
12979
- */
12980
- function setConfig(options) {
12981
- if (options) {
12982
- if (options.theme) {
12983
- setTheme(options);
12984
- }
12985
- if (options.zIndex) {
12986
- index_esm.setCurrent(options.zIndex);
12987
- }
12988
- }
12989
- return external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().merge(conf, options);
12990
- }
12991
- var config = setConfig;
12992
12977
  ;// CONCATENATED MODULE: ./packages/v-x-e-table/index.js
12993
12978
 
12994
12979
 
@@ -13005,6 +12990,7 @@ var config = setConfig;
13005
12990
 
13006
12991
 
13007
12992
 
12993
+
13008
12994
  var installedPlugins = [];
13009
12995
  function use(Plugin, options) {
13010
12996
  /* eslint-disable @typescript-eslint/no-use-before-define */
@@ -13035,6 +13021,22 @@ function getExportOrImpotType(types, flag) {
13035
13021
  });
13036
13022
  return rest;
13037
13023
  }
13024
+
13025
+ /**
13026
+ * 全局参数设置
13027
+ */
13028
+ var setConfig = function setConfig(options) {
13029
+ if (options) {
13030
+ if (options.theme) {
13031
+ setTheme(options);
13032
+ }
13033
+ if (options.zIndex) {
13034
+ index_esm.setCurrent(options.zIndex);
13035
+ }
13036
+ external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().merge(conf, options);
13037
+ }
13038
+ return VXETable;
13039
+ };
13038
13040
  var VXETableConfig = /*#__PURE__*/function () {
13039
13041
  function VXETableConfig() {
13040
13042
  _classCallCheck(this, VXETableConfig);
@@ -13085,14 +13087,38 @@ function _t(key, args) {
13085
13087
  return key ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toValueString(conf.translate ? conf.translate(key, args) : key) : '';
13086
13088
  }
13087
13089
  var v = 'v3';
13088
- var setup = setConfig;
13090
+
13091
+ /**
13092
+ * 已废弃,请使用 setConfig
13093
+ * @deprecated
13094
+ */
13095
+ var setup = function setup(options) {
13096
+ if (false) {}
13097
+ return setConfig(options);
13098
+ };
13099
+
13100
+ /**
13101
+ * 已废弃,请使用 setConfig
13102
+ * @deprecated
13103
+ */
13104
+ var config = function config(options) {
13105
+ if (false) {}
13106
+ return setConfig(options);
13107
+ };
13108
+ function setIcon(options) {
13109
+ if (options) {
13110
+ Object.assign(conf.icon, options);
13111
+ }
13112
+ return VXETable;
13113
+ }
13089
13114
  var globalStore = {};
13090
13115
  var VXETable = {
13091
13116
  v: v,
13092
- version: "3.8.7-beta.2",
13117
+ version: "3.8.7-beta.4",
13093
13118
  reg: reg,
13094
13119
  use: use,
13095
13120
  setConfig: setConfig,
13121
+ setIcon: setIcon,
13096
13122
  globalStore: globalStore,
13097
13123
  interceptor: interceptor,
13098
13124
  renderer: renderer,
@@ -13103,7 +13129,7 @@ var VXETable = {
13103
13129
  t: t,
13104
13130
  _t: _t,
13105
13131
  // 已废弃
13106
- config: setConfig,
13132
+ config: config,
13107
13133
  setup: setup,
13108
13134
  globalConfs: globalConfs
13109
13135
  };
@@ -13113,10 +13139,7 @@ setTheme(globalStore);
13113
13139
 
13114
13140
 
13115
13141
 
13116
-
13117
13142
  /* harmony default export */ var v_x_e_table = (VXETable);
13118
- // EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.assign.js
13119
- var es_object_assign = __webpack_require__(9085);
13120
13143
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.iterator.js
13121
13144
  var es_array_iterator = __webpack_require__(3792);
13122
13145
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.map.js
@@ -14461,9 +14484,9 @@ function syncBodyScroll(_vm, fixedType, scrollTop, elem1, elem2) {
14461
14484
  }, h);
14462
14485
  } else {
14463
14486
  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, {
14487
+ var renderTableEmptyView = compConf ? compConf.renderTableEmptyView || compConf.renderEmpty : null;
14488
+ if (renderTableEmptyView) {
14489
+ emptyContent = getSlotVNs(renderTableEmptyView.call(this, h, emptyOpts, {
14467
14490
  $table: $xetable
14468
14491
  }));
14469
14492
  } else {
@@ -19687,14 +19710,15 @@ var Methods = {
19687
19710
  backMethod = keyboardOpts.backMethod;
19688
19711
  // 如果是删除键
19689
19712
  if (keyboardOpts.isDel && (selected.row || selected.column)) {
19713
+ var delPaqrams = {
19714
+ row: selected.row,
19715
+ rowIndex: _this29.getRowIndex(selected.row),
19716
+ column: selected.column,
19717
+ columnIndex: _this29.getColumnIndex(selected.column),
19718
+ $table: _this29
19719
+ };
19690
19720
  if (delMethod) {
19691
- delMethod({
19692
- row: selected.row,
19693
- rowIndex: _this29.getRowIndex(selected.row),
19694
- column: selected.column,
19695
- columnIndex: _this29.getColumnIndex(selected.column),
19696
- $table: _this29
19697
- });
19721
+ delMethod(delPaqrams);
19698
19722
  } else {
19699
19723
  setCellValue(selected.row, selected.column, null);
19700
19724
  }
@@ -19714,6 +19738,7 @@ var Methods = {
19714
19738
  // 如果按下 del 键,更新表尾数据
19715
19739
  _this29.updateFooter();
19716
19740
  }
19741
+ _this29.emitEvent('cell-delete-value', delPaqrams, evnt);
19717
19742
  } else if (isBack && keyboardOpts.isArrow && treeConfig && (rowOpts.isCurrent || highlightCurrentRow) && currentRow) {
19718
19743
  // 如果树形表格回退键关闭当前行返回父节点
19719
19744
  var _XEUtils$findTree = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().findTree(_this29.afterFullData, function (item) {
@@ -22982,9 +23007,9 @@ function renderEmptyContenet(h, _vm) {
22982
23007
  emptyContent = $scopedSlots.empty.call(_vm, params, h);
22983
23008
  } else {
22984
23009
  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));
23010
+ var renderTableEmptyView = compConf ? compConf.renderTableEmptyView || compConf.renderEmpty : null;
23011
+ if (renderTableEmptyView) {
23012
+ emptyContent = getSlotVNs(renderTableEmptyView.call(_vm, h, emptyOpts, params));
22988
23013
  } else {
22989
23014
  emptyContent = getFuncText(_vm.emptyText) || conf.i18n('vxe.table.emptyText');
22990
23015
  }
@@ -26200,12 +26225,22 @@ var msgQueue = [];
26200
26225
  // 请使用 content
26201
26226
  message: [String, Function],
26202
26227
  content: [String, Function],
26228
+ showCancelButton: {
26229
+ type: Boolean,
26230
+ default: null
26231
+ },
26203
26232
  cancelButtonText: {
26204
26233
  type: String,
26205
26234
  default: function _default() {
26206
26235
  return conf.modal.cancelButtonText;
26207
26236
  }
26208
26237
  },
26238
+ showConfirmButton: {
26239
+ type: Boolean,
26240
+ default: function _default() {
26241
+ return conf.modal.showConfirmButton;
26242
+ }
26243
+ },
26209
26244
  confirmButtonText: {
26210
26245
  type: String,
26211
26246
  default: function _default() {
@@ -26453,7 +26488,9 @@ var msgQueue = [];
26453
26488
  mask = this.mask,
26454
26489
  isMsg = this.isMsg,
26455
26490
  showTitleOverflow = this.showTitleOverflow,
26456
- destroyOnClose = this.destroyOnClose;
26491
+ destroyOnClose = this.destroyOnClose,
26492
+ showCancelButton = this.showCancelButton,
26493
+ showConfirmButton = this.showConfirmButton;
26457
26494
  var content = this.content || this.message;
26458
26495
  var defaultSlot = $scopedSlots.default || slots.default;
26459
26496
  var footerSlot = $scopedSlots.footer || slots.footer;
@@ -26539,12 +26576,14 @@ var msgQueue = [];
26539
26576
  class: 'vxe-modal--footer'
26540
26577
  }, footerSlot ? !inited || destroyOnClose && !visible ? [] : getSlotVNs(footerSlot.call(this, {
26541
26578
  $modal: this
26542
- }, h)) : [type === 'confirm' ? h('vxe-button', {
26579
+ }, h)) : [external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isBoolean(showCancelButton) ? showCancelButton : type === 'confirm' ? h('vxe-button', {
26580
+ key: 1,
26543
26581
  ref: 'cancelBtn',
26544
26582
  on: {
26545
26583
  click: this.cancelEvent
26546
26584
  }
26547
- }, this.cancelButtonText || conf.i18n('vxe.button.cancel')) : null, h('vxe-button', {
26585
+ }, 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', {
26586
+ key: 2,
26548
26587
  ref: 'confirmBtn',
26549
26588
  props: {
26550
26589
  status: 'primary'
@@ -26552,7 +26591,7 @@ var msgQueue = [];
26552
26591
  on: {
26553
26592
  click: this.confirmEvent
26554
26593
  }
26555
- }, this.confirmButtonText || conf.i18n('vxe.button.confirm'))]) : null, !isMsg && resize ? h('span', {
26594
+ }, this.confirmButtonText || conf.i18n('vxe.button.confirm')) : null]) : null, !isMsg && resize ? h('span', {
26556
26595
  class: 'vxe-modal--resize'
26557
26596
  }, ['wl', 'wr', 'swst', 'sest', 'st', 'swlb', 'selb', 'sb'].map(function (type) {
26558
26597
  return h('span', {
@@ -26985,6 +27024,10 @@ var msgQueue = [];
26985
27024
  modalBoxElem.style.left = "".concat(left, "px");
26986
27025
  modalBoxElem.style.top = "".concat(top, "px");
26987
27026
  modalBoxElem.className = modalBoxElem.className.replace(/\s?is--drag/, '') + ' is--drag';
27027
+ _this11.$emit('move', {
27028
+ type: 'move',
27029
+ $event: evnt
27030
+ });
26988
27031
  };
26989
27032
  document.onmouseup = function () {
26990
27033
  document.onmousemove = domMousemove;
@@ -27148,10 +27191,10 @@ var msgQueue = [];
27148
27191
  if (remember && storage) {
27149
27192
  _this12.savePosStorage();
27150
27193
  }
27151
- if ($listeners.zoom) {
27152
- _this12.$emit('zoom', params);
27153
- } else if (events.zoom) {
27154
- events.zoom.call(_this12, params);
27194
+ if ($listeners.resize) {
27195
+ _this12.$emit('resize', params);
27196
+ } else if (events.resize) {
27197
+ events.resize.call(_this12, params);
27155
27198
  }
27156
27199
  };
27157
27200
  document.onmouseup = function () {
@@ -33948,6 +33991,9 @@ var Keyboard = VxeTableKeyboardModule;
33948
33991
 
33949
33992
 
33950
33993
 
33994
+
33995
+
33996
+
33951
33997
 
33952
33998
 
33953
33999
 
@@ -34081,20 +34127,20 @@ function validErrorRuleValue(rule, val) {
34081
34127
  treeConfig = this.treeConfig,
34082
34128
  treeOpts = this.treeOpts;
34083
34129
  var childrenField = treeOpts.children || treeOpts.childrenField;
34084
- var vaildDatas;
34130
+ var validDatas;
34085
34131
  if (rows === true) {
34086
- vaildDatas = afterFullData;
34132
+ validDatas = afterFullData;
34087
34133
  } else if (rows) {
34088
34134
  if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(rows)) {
34089
34135
  cb = rows;
34090
34136
  } else {
34091
- vaildDatas = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isArray(rows) ? rows : [rows];
34137
+ validDatas = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isArray(rows) ? rows : [rows];
34092
34138
  }
34093
34139
  }
34094
- if (!vaildDatas) {
34095
- vaildDatas = this.getInsertRecords().concat(this.getUpdateRecords());
34140
+ if (!validDatas) {
34141
+ validDatas = this.getInsertRecords().concat(this.getUpdateRecords());
34096
34142
  }
34097
- var rowValids = [];
34143
+ var rowValidErrs = [];
34098
34144
  this.lastCallTime = Date.now();
34099
34145
  this.validRuleErr = false; // 如果为快速校验,当存在某列校验不通过时将终止执行
34100
34146
  this.clearValidate();
@@ -34136,17 +34182,17 @@ function validErrorRuleValue(rule, val) {
34136
34182
  }));
34137
34183
  }
34138
34184
  });
34139
- rowValids.push(Promise.all(colVailds));
34185
+ rowValidErrs.push(Promise.all(colVailds));
34140
34186
  }
34141
34187
  };
34142
34188
  if (treeConfig) {
34143
- external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eachTree(vaildDatas, handleVaild, {
34189
+ external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eachTree(validDatas, handleVaild, {
34144
34190
  children: childrenField
34145
34191
  });
34146
34192
  } else {
34147
- vaildDatas.forEach(handleVaild);
34193
+ validDatas.forEach(handleVaild);
34148
34194
  }
34149
- return Promise.all(rowValids).then(function () {
34195
+ return Promise.all(rowValidErrs).then(function () {
34150
34196
  var ruleProps = Object.keys(validRest);
34151
34197
  _this2.validErrorMaps = _this2.handleErrMsgMode(validErrMaps);
34152
34198
  return _this2.$nextTick().then(function () {
@@ -34191,9 +34237,9 @@ function validErrorRuleValue(rule, val) {
34191
34237
  var column = firstErrParams.column;
34192
34238
  var rowIndex = afterFullData.indexOf(row);
34193
34239
  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);
34240
+ var targetRow = rowIndex > 0 ? afterFullData[rowIndex - 1] : row;
34241
+ var targetColumn = columnIndex > 0 ? visibleColumn[columnIndex - 1] : column;
34242
+ _this2.scrollToRow(targetRow, targetColumn).then(posAndFinish);
34197
34243
  }
34198
34244
  });
34199
34245
  });
@@ -34348,9 +34394,9 @@ function validErrorRuleValue(rule, val) {
34348
34394
  validErrMaps = Object.assign({}, validErrorMaps);
34349
34395
  rowList.forEach(function (row) {
34350
34396
  colList.forEach(function (column) {
34351
- var vaildKey = "".concat(getRowid(_this4, row), ":").concat(column.id);
34352
- if (validErrMaps[vaildKey]) {
34353
- delete validErrMaps[vaildKey];
34397
+ var validKey = "".concat(getRowid(_this4, row), ":").concat(column.id);
34398
+ if (validErrMaps[validKey]) {
34399
+ delete validErrMaps[validKey];
34354
34400
  }
34355
34401
  });
34356
34402
  });
@@ -39458,6 +39504,7 @@ var Tooltip = VxeTooltip;
39458
39504
 
39459
39505
 
39460
39506
 
39507
+
39461
39508
  var ItemConfig = /*#__PURE__*/function () {
39462
39509
  function ItemConfig($xeform, item) {
39463
39510
  _classCallCheck(this, ItemConfig);
@@ -39486,6 +39533,7 @@ var ItemConfig = /*#__PURE__*/function () {
39486
39533
  titleClassName: item.titleClassName,
39487
39534
  titleStyle: item.titleStyle,
39488
39535
  itemRender: item.itemRender,
39536
+ rules: item.rules,
39489
39537
  // 渲染属性
39490
39538
  showError: false,
39491
39539
  errRule: null,
@@ -39653,6 +39701,7 @@ function renderTitle(h, _vm, item) {
39653
39701
 
39654
39702
 
39655
39703
 
39704
+
39656
39705
  /**
39657
39706
  * 配置式项
39658
39707
  */
@@ -39747,7 +39796,7 @@ var VxeFormConfigItem = {
39747
39796
  });
39748
39797
  });
39749
39798
  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 : '']
39799
+ 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
39800
  }, childVNs) : _e();
39752
39801
  }
39753
39802
  if (rules) {
@@ -39775,7 +39824,7 @@ var VxeFormConfigItem = {
39775
39824
  mouseleave: $xeform.handleTitleTipLeaveEvent
39776
39825
  } : {};
39777
39826
  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 : '', {
39827
+ 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
39828
  'is--title': title,
39780
39829
  'is--colon': titleColon,
39781
39830
  'is--vertical': itemVertical,
@@ -39846,6 +39895,9 @@ var VxeFormConfigItem = {
39846
39895
 
39847
39896
 
39848
39897
 
39898
+
39899
+
39900
+
39849
39901
 
39850
39902
 
39851
39903
 
@@ -40067,7 +40119,7 @@ function getResetValue(value, resetValue) {
40067
40119
  reset: this.resetEvent
40068
40120
  }
40069
40121
  }, [h('div', {
40070
- class: 'vxe-form--wrapper vxe-row'
40122
+ class: 'vxe-form--wrapper vxe-form--item-row'
40071
40123
  }, customLayout ? defaultSlot ? this.callSlot(defaultSlot, {}, h) : [] : formItems.map(function (item, index) {
40072
40124
  return h(form_config_item, {
40073
40125
  key: index,
@@ -40570,6 +40622,7 @@ var Form = VxeForm;
40570
40622
 
40571
40623
 
40572
40624
 
40625
+
40573
40626
  var form_item_props = {
40574
40627
  title: String,
40575
40628
  field: String,
@@ -40621,7 +40674,8 @@ var form_item_props = {
40621
40674
  visibleMethod: Function,
40622
40675
  folding: Boolean,
40623
40676
  collapseNode: Boolean,
40624
- itemRender: Object
40677
+ itemRender: Object,
40678
+ rules: Array
40625
40679
  };
40626
40680
  var form_item_watch = {};
40627
40681
  Object.keys(form_item_props).forEach(function (name) {
@@ -40814,12 +40868,21 @@ var FormItem = VxeFormItem;
40814
40868
  $xeformiteminfo: this
40815
40869
  };
40816
40870
  },
40817
- created: function created() {
40818
- var _this = this;
40819
- if (false) {}
40820
- },
40821
40871
  render: function render(h) {
40822
- return h('div', this.$slots.default);
40872
+ var $xeform = this.$xeform,
40873
+ className = this.className,
40874
+ field = this.field,
40875
+ itemConfig = this.itemConfig;
40876
+ var span = this.span || ($xeform ? $xeform.props.span : null);
40877
+ return $xeform && $xeform.customLayout ? h('div', {
40878
+ 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({
40879
+ $form: $xeform,
40880
+ data: $xeform ? $xeform.props.data : {},
40881
+ item: itemConfig,
40882
+ field: field,
40883
+ property: field
40884
+ }) : className : '']
40885
+ }, this.$slots.default) : h('div');
40823
40886
  }
40824
40887
  });
40825
40888
  ;// CONCATENATED MODULE: ./packages/form-gather/index.js
@@ -40955,7 +41018,9 @@ var Option = VxeOption;
40955
41018
  default: false
40956
41019
  },
40957
41020
  openIcon: String,
40958
- closeIcon: String
41021
+ closeIcon: String,
41022
+ openActiveIcon: String,
41023
+ closeActiveIcon: String
40959
41024
  },
40960
41025
  inject: {
40961
41026
  $xeform: {
@@ -42031,6 +42096,13 @@ var Pulldown = VxePulldown;
42031
42096
  }
42032
42097
  }
42033
42098
  },
42099
+ formDesign: {
42100
+ widget: {
42101
+ input: '输入框',
42102
+ textarea: '文本域',
42103
+ select: '下拉框'
42104
+ }
42105
+ },
42034
42106
  /**
42035
42107
  * 扩展插件
42036
42108
  */