vxe-table 3.7.0-beta.0 → 3.7.0-beta.10

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 (189) hide show
  1. package/README.md +6 -9
  2. package/helper/vetur/attributes.json +86 -22
  3. package/helper/vetur/tags.json +17 -1
  4. package/lib/button/src/button.js +9 -3
  5. package/lib/button/src/button.min.js +1 -1
  6. package/lib/edit/src/mixin.js +10 -10
  7. package/lib/edit/src/mixin.min.js +1 -1
  8. package/lib/export/src/mixin.js +24 -13
  9. package/lib/export/src/mixin.min.js +1 -1
  10. package/lib/filter/src/mixin.js +13 -7
  11. package/lib/filter/src/mixin.min.js +1 -1
  12. package/lib/form/src/form.js +27 -5
  13. package/lib/form/src/form.min.js +1 -1
  14. package/lib/grid/src/grid.js +7 -3
  15. package/lib/grid/src/grid.min.js +1 -1
  16. package/lib/icon/style/style.css +1 -1
  17. package/lib/icon/style/style.min.css +1 -1
  18. package/lib/index.css +1 -1
  19. package/lib/index.umd.js +544 -229
  20. package/lib/index.umd.min.js +1 -1
  21. package/lib/input/src/input.js +11 -1
  22. package/lib/input/src/input.min.js +1 -1
  23. package/lib/locale/lang/en-US.js +8 -0
  24. package/lib/locale/lang/en-US.min.js +1 -1
  25. package/lib/locale/lang/en-US.umd.js +8 -0
  26. package/lib/locale/lang/es-ES.js +8 -0
  27. package/lib/locale/lang/es-ES.min.js +1 -1
  28. package/lib/locale/lang/es-ES.umd.js +8 -0
  29. package/lib/locale/lang/ja-JP.d.ts +1 -1
  30. package/lib/locale/lang/ja-JP.js +8 -0
  31. package/lib/locale/lang/ja-JP.min.js +1 -1
  32. package/lib/locale/lang/ja-JP.umd.js +8 -0
  33. package/lib/locale/lang/pt-BR.d.ts +8 -0
  34. package/lib/locale/lang/pt-BR.js +330 -0
  35. package/lib/locale/lang/pt-BR.min.js +1 -0
  36. package/lib/locale/lang/pt-BR.umd.js +344 -0
  37. package/lib/locale/lang/zh-CN.d.ts +1 -1
  38. package/lib/locale/lang/zh-CN.js +8 -0
  39. package/lib/locale/lang/zh-CN.min.js +1 -1
  40. package/lib/locale/lang/zh-CN.umd.js +8 -0
  41. package/lib/locale/lang/zh-HK.d.ts +1 -1
  42. package/lib/locale/lang/zh-HK.min.js +1 -1
  43. package/lib/locale/lang/zh-HK.umd.js +8 -0
  44. package/lib/locale/lang/zh-MO.d.ts +1 -1
  45. package/lib/locale/lang/zh-MO.min.js +1 -1
  46. package/lib/locale/lang/zh-MO.umd.js +8 -0
  47. package/lib/locale/lang/zh-TC.d.ts +1 -1
  48. package/lib/locale/lang/zh-TC.js +8 -0
  49. package/lib/locale/lang/zh-TC.min.js +1 -1
  50. package/lib/locale/lang/zh-TC.umd.js +8 -0
  51. package/lib/locale/lang/zh-TW.d.ts +1 -1
  52. package/lib/locale/lang/zh-TW.min.js +1 -1
  53. package/lib/locale/lang/zh-TW.umd.js +8 -0
  54. package/lib/menu/src/mixin.js +3 -3
  55. package/lib/menu/src/mixin.min.js +1 -1
  56. package/lib/pulldown/src/pulldown.js +11 -2
  57. package/lib/pulldown/src/pulldown.min.js +1 -1
  58. package/lib/select/src/select.js +11 -2
  59. package/lib/select/src/select.min.js +1 -1
  60. package/lib/style.css +1 -1
  61. package/lib/style.min.css +1 -1
  62. package/lib/table/src/body.js +3 -2
  63. package/lib/table/src/body.min.js +1 -1
  64. package/lib/table/src/cell.js +9 -7
  65. package/lib/table/src/cell.min.js +1 -1
  66. package/lib/table/src/columnInfo.js +7 -7
  67. package/lib/table/src/columnInfo.min.js +1 -1
  68. package/lib/table/src/methods.js +171 -124
  69. package/lib/table/src/methods.min.js +1 -1
  70. package/lib/table/src/table.js +22 -29
  71. package/lib/table/src/table.min.js +1 -1
  72. package/lib/table/src/util.js +3 -1
  73. package/lib/table/src/util.min.js +1 -1
  74. package/lib/table/style/style.css +7 -2
  75. package/lib/table/style/style.min.css +1 -1
  76. package/lib/textarea/src/textarea.js +6 -1
  77. package/lib/textarea/src/textarea.min.js +1 -1
  78. package/lib/toolbar/src/toolbar.js +23 -7
  79. package/lib/toolbar/src/toolbar.min.js +1 -1
  80. package/lib/tools/log.js +1 -1
  81. package/lib/tools/log.min.js +1 -1
  82. package/lib/tooltip/src/tooltip.js +5 -1
  83. package/lib/tooltip/src/tooltip.min.js +1 -1
  84. package/lib/tooltip/style/style.css +0 -6
  85. package/lib/tooltip/style/style.min.css +1 -1
  86. package/lib/v-x-e-table/index.js +3 -1
  87. package/lib/v-x-e-table/index.min.js +1 -1
  88. package/lib/v-x-e-table/src/commands.js +60 -2
  89. package/lib/v-x-e-table/src/commands.min.js +1 -1
  90. package/lib/v-x-e-table/src/conf.js +7 -4
  91. package/lib/v-x-e-table/src/conf.min.js +1 -1
  92. package/lib/v-x-e-table/src/formats.js +60 -2
  93. package/lib/v-x-e-table/src/formats.min.js +1 -1
  94. package/lib/v-x-e-table/src/menus.js +60 -2
  95. package/lib/v-x-e-table/src/menus.min.js +1 -1
  96. package/lib/v-x-e-table/src/renderer.js +10 -0
  97. package/lib/v-x-e-table/src/renderer.min.js +1 -1
  98. package/lib/v-x-e-table/src/store.js +5 -2
  99. package/lib/v-x-e-table/src/store.min.js +1 -1
  100. package/lib/v-x-e-table/src/validators.js +15 -0
  101. package/lib/v-x-e-table/src/validators.min.js +1 -0
  102. package/lib/validator/src/mixin.js +36 -4
  103. package/lib/validator/src/mixin.min.js +1 -1
  104. package/package.json +2 -2
  105. package/packages/button/src/button.js +5 -4
  106. package/packages/edit/src/mixin.js +10 -9
  107. package/packages/export/src/mixin.js +22 -13
  108. package/packages/filter/src/mixin.js +5 -1
  109. package/packages/form/src/form.js +27 -6
  110. package/packages/grid/src/grid.js +7 -3
  111. package/packages/input/src/input.js +9 -1
  112. package/packages/locale/lang/en-US.js +8 -0
  113. package/packages/locale/lang/es-ES.js +8 -0
  114. package/packages/locale/lang/ja-JP.d.ts +1 -1
  115. package/packages/locale/lang/ja-JP.js +8 -0
  116. package/packages/locale/lang/pt-BR.d.ts +8 -0
  117. package/packages/locale/lang/pt-BR.js +323 -0
  118. package/packages/locale/lang/zh-CN.d.ts +1 -1
  119. package/packages/locale/lang/zh-CN.js +8 -0
  120. package/packages/locale/lang/zh-HK.d.ts +1 -1
  121. package/packages/locale/lang/zh-MO.d.ts +1 -1
  122. package/packages/locale/lang/zh-TC.d.ts +1 -1
  123. package/packages/locale/lang/zh-TC.js +8 -0
  124. package/packages/locale/lang/zh-TW.d.ts +1 -1
  125. package/packages/menu/src/mixin.js +3 -3
  126. package/packages/pulldown/src/pulldown.js +6 -3
  127. package/packages/select/src/select.js +7 -3
  128. package/packages/table/src/body.js +3 -2
  129. package/packages/table/src/cell.js +9 -5
  130. package/packages/table/src/columnInfo.js +7 -7
  131. package/packages/table/src/methods.js +142 -93
  132. package/packages/table/src/table.js +17 -7
  133. package/packages/table/src/util.js +3 -1
  134. package/packages/textarea/src/textarea.js +4 -1
  135. package/packages/toolbar/src/toolbar.js +22 -7
  136. package/packages/tooltip/src/tooltip.js +3 -2
  137. package/packages/v-x-e-table/index.js +2 -0
  138. package/packages/v-x-e-table/src/commands.js +50 -2
  139. package/packages/v-x-e-table/src/conf.js +7 -4
  140. package/packages/v-x-e-table/src/formats.js +50 -2
  141. package/packages/v-x-e-table/src/menus.js +50 -2
  142. package/packages/v-x-e-table/src/renderer.js +11 -1
  143. package/packages/v-x-e-table/src/store.js +4 -2
  144. package/packages/v-x-e-table/src/validators.js +7 -0
  145. package/packages/validator/src/mixin.js +35 -4
  146. package/styles/all.scss +30 -0
  147. package/styles/css-variable.scss +272 -0
  148. package/styles/cssvar.scss +2 -275
  149. package/styles/index.scss +2 -0
  150. package/styles/modules.scss +4 -1
  151. package/styles/table.scss +11 -4
  152. package/styles/tooltip.scss +0 -8
  153. package/styles/variable.scss +1 -4
  154. package/types/all.d.ts +2 -2
  155. package/types/colgroup.d.ts +3 -1
  156. package/types/column.d.ts +3 -0
  157. package/types/edit.d.ts +4 -2
  158. package/types/export.d.ts +3 -0
  159. package/types/filter.d.ts +3 -1
  160. package/types/footer.d.ts +3 -1
  161. package/types/form-item.d.ts +2 -0
  162. package/types/form.d.ts +16 -12
  163. package/types/grid.d.ts +3 -0
  164. package/types/header.d.ts +3 -1
  165. package/types/index.d.ts +1 -1
  166. package/types/input.d.ts +2 -0
  167. package/types/list.d.ts +1 -1
  168. package/types/menu.d.ts +2 -0
  169. package/types/modal.d.ts +7 -3
  170. package/types/pulldown.d.ts +2 -3
  171. package/types/table.d.ts +54 -30
  172. package/types/textarea.d.ts +1 -0
  173. package/types/toolbar.d.ts +2 -0
  174. package/types/tooltip.d.ts +1 -1
  175. package/types/v-x-e-table/commands.d.ts +23 -13
  176. package/types/v-x-e-table/formats.d.ts +21 -12
  177. package/types/v-x-e-table/index.d.ts +33 -26
  178. package/types/v-x-e-table/interceptor.d.ts +1 -1
  179. package/types/v-x-e-table/menus.d.ts +17 -6
  180. package/types/v-x-e-table/renderer.d.ts +5 -3
  181. package/types/v-x-e-table/setup.d.ts +10 -33
  182. package/types/v-x-e-table/validators.d.ts +30 -0
  183. package/types/validator.d.ts +15 -4
  184. /package/lib/icon/style/{iconfont.1688918886373.ttf → iconfont.1690849077922.ttf} +0 -0
  185. /package/lib/icon/style/{iconfont.1688918886373.woff → iconfont.1690849077922.woff} +0 -0
  186. /package/lib/icon/style/{iconfont.1688918886373.woff2 → iconfont.1690849077922.woff2} +0 -0
  187. /package/lib/{iconfont.1688918886373.ttf → iconfont.1690849077922.ttf} +0 -0
  188. /package/lib/{iconfont.1688918886373.woff → iconfont.1690849077922.woff} +0 -0
  189. /package/lib/{iconfont.1688918886373.woff2 → iconfont.1690849077922.woff2} +0 -0
package/lib/index.umd.js CHANGED
@@ -10677,6 +10677,7 @@ var iconPrefix = 'vxe-icon-';
10677
10677
  animat: true,
10678
10678
  delayHover: 250,
10679
10679
  autoResize: true,
10680
+ minHeight: 144,
10680
10681
  // keepSource: false,
10681
10682
  // showOverflow: null,
10682
10683
  // showHeaderOverflow: null,
@@ -10710,7 +10711,9 @@ var iconPrefix = 'vxe-icon-';
10710
10711
  },
10711
10712
  validConfig: {
10712
10713
  showMessage: true,
10713
- message: 'default'
10714
+ autoClear: true,
10715
+ message: 'inline',
10716
+ msgMode: 'single'
10714
10717
  },
10715
10718
  columnConfig: {
10716
10719
  maxFixedSize: 4
@@ -10737,9 +10740,9 @@ var iconPrefix = 'vxe-icon-';
10737
10740
  treeConfig: {
10738
10741
  rowField: 'id',
10739
10742
  parentField: 'parentId',
10740
- children: 'children',
10741
- hasChild: 'hasChild',
10742
- mapChildren: '_X_ROW_CHILD',
10743
+ childrenField: 'children',
10744
+ hasChildField: 'hasChild',
10745
+ mapChildrenField: '_X_ROW_CHILD',
10743
10746
  indent: 20,
10744
10747
  showIcon: true
10745
10748
  },
@@ -11042,7 +11045,7 @@ var es_array_concat = __webpack_require__(2222);
11042
11045
 
11043
11046
 
11044
11047
  function getLog(message, params) {
11045
- return "[vxe-table v".concat("3.7.0-beta.0", "] ").concat(conf.i18n(message, params));
11048
+ return "[vxe-table v".concat("3.7.0-beta.9", "] ").concat(conf.i18n(message, params));
11046
11049
  }
11047
11050
  function outLog(type) {
11048
11051
  return function (message, params) {
@@ -11437,6 +11440,7 @@ function getNativeOns(renderOpts, params) {
11437
11440
  var nativeOns = {};
11438
11441
  external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().objectEach(nativeEvents, function (func, key) {
11439
11442
  nativeOns[key] = function () {
11443
+ if (false) {}
11440
11444
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
11441
11445
  args[_key] = arguments[_key];
11442
11446
  }
@@ -11454,6 +11458,7 @@ function getOns(renderOpts, params, inputFunc, changeFunc) {
11454
11458
  var ons = {};
11455
11459
  external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().objectEach(events, function (func, key) {
11456
11460
  ons[key] = function () {
11461
+ if (false) {}
11457
11462
  for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
11458
11463
  args[_key2] = arguments[_key2];
11459
11464
  }
@@ -12056,8 +12061,166 @@ var renderer = {
12056
12061
  var es_array_includes = __webpack_require__(6699);
12057
12062
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.includes.js
12058
12063
  var es_string_includes = __webpack_require__(2023);
12059
- ;// CONCATENATED MODULE: ./packages/v-x-e-table/src/store.js
12064
+ ;// CONCATENATED MODULE: ./packages/v-x-e-table/src/commands.js
12065
+
12066
+
12067
+
12068
+
12069
+
12070
+
12071
+
12072
+
12073
+
12074
+
12075
+ var VXECommandsStore = /*#__PURE__*/function () {
12076
+ function VXECommandsStore() {
12077
+ _classCallCheck(this, VXECommandsStore);
12078
+ this.store = {};
12079
+ }
12080
+ _createClass(VXECommandsStore, [{
12081
+ key: "mixin",
12082
+ value: function mixin(options) {
12083
+ var _this = this;
12084
+ external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().each(options, function (item, key) {
12085
+ _this.add(key, item);
12086
+ });
12087
+ return VXECommandsStore;
12088
+ }
12089
+ }, {
12090
+ key: "get",
12091
+ value: function get(name) {
12092
+ return this.store[name];
12093
+ }
12094
+ }, {
12095
+ key: "add",
12096
+ value: function add(name, render) {
12097
+ var conf = this.store[name];
12098
+ // 兼容
12099
+ if (false) {}
12100
+
12101
+ // 检测是否覆盖
12102
+ if (false) { var confKeys; }
12103
+ this.store[name] = conf ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().merge(conf, render) : render;
12104
+ return VXECommandsStore;
12105
+ }
12106
+ }, {
12107
+ key: "delete",
12108
+ value: function _delete(name) {
12109
+ delete this.store[name];
12110
+ return VXECommandsStore;
12111
+ }
12112
+ }]);
12113
+ return VXECommandsStore;
12114
+ }();
12115
+ var commands = new VXECommandsStore();
12116
+ if (false) {}
12117
+ ;// CONCATENATED MODULE: ./packages/v-x-e-table/src/menus.js
12118
+
12119
+
12120
+
12121
+
12122
+
12123
+
12124
+
12125
+
12126
+
12127
+
12128
+ var VXEMenusStore = /*#__PURE__*/function () {
12129
+ function VXEMenusStore() {
12130
+ _classCallCheck(this, VXEMenusStore);
12131
+ this.store = {};
12132
+ }
12133
+ _createClass(VXEMenusStore, [{
12134
+ key: "mixin",
12135
+ value: function mixin(options) {
12136
+ var _this = this;
12137
+ external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().each(options, function (item, key) {
12138
+ _this.add(key, item);
12139
+ });
12140
+ return VXEMenusStore;
12141
+ }
12142
+ }, {
12143
+ key: "get",
12144
+ value: function get(name) {
12145
+ return this.store[name];
12146
+ }
12147
+ }, {
12148
+ key: "add",
12149
+ value: function add(name, render) {
12150
+ var conf = this.store[name];
12151
+ // 兼容
12152
+ if (false) {}
12060
12153
 
12154
+ // 检测是否覆盖
12155
+ if (false) { var confKeys; }
12156
+ this.store[name] = conf ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().merge(conf, render) : render;
12157
+ return VXEMenusStore;
12158
+ }
12159
+ }, {
12160
+ key: "delete",
12161
+ value: function _delete(name) {
12162
+ delete this.store[name];
12163
+ return VXEMenusStore;
12164
+ }
12165
+ }]);
12166
+ return VXEMenusStore;
12167
+ }();
12168
+ var menus = new VXEMenusStore();
12169
+ if (false) {}
12170
+ ;// CONCATENATED MODULE: ./packages/v-x-e-table/src/formats.js
12171
+
12172
+
12173
+
12174
+
12175
+
12176
+
12177
+
12178
+
12179
+
12180
+
12181
+ var VXEFormatsStore = /*#__PURE__*/function () {
12182
+ function VXEFormatsStore() {
12183
+ _classCallCheck(this, VXEFormatsStore);
12184
+ this.store = {};
12185
+ }
12186
+ _createClass(VXEFormatsStore, [{
12187
+ key: "mixin",
12188
+ value: function mixin(options) {
12189
+ var _this = this;
12190
+ external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().each(options, function (item, key) {
12191
+ _this.add(key, item);
12192
+ });
12193
+ return VXEFormatsStore;
12194
+ }
12195
+ }, {
12196
+ key: "get",
12197
+ value: function get(name) {
12198
+ return this.store[name];
12199
+ }
12200
+ }, {
12201
+ key: "add",
12202
+ value: function add(name, render) {
12203
+ var conf = this.store[name];
12204
+ // 兼容
12205
+ if (false) {}
12206
+
12207
+ // 检测是否覆盖
12208
+ if (false) { var confKeys; }
12209
+ this.store[name] = conf ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().merge(conf, render) : render;
12210
+ return VXEFormatsStore;
12211
+ }
12212
+ }, {
12213
+ key: "delete",
12214
+ value: function _delete(name) {
12215
+ delete this.store[name];
12216
+ return VXEFormatsStore;
12217
+ }
12218
+ }]);
12219
+ return VXEFormatsStore;
12220
+ }();
12221
+ var formats = new VXEFormatsStore();
12222
+ if (false) {}
12223
+ ;// CONCATENATED MODULE: ./packages/v-x-e-table/src/store.js
12061
12224
 
12062
12225
 
12063
12226
 
@@ -12078,8 +12241,11 @@ var Store = /*#__PURE__*/function () {
12078
12241
  }
12079
12242
  _createClass(Store, [{
12080
12243
  key: "mixin",
12081
- value: function mixin(map) {
12082
- Object.assign(this.store, map);
12244
+ value: function mixin(options) {
12245
+ var _this = this;
12246
+ external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().each(options, function (item, key) {
12247
+ _this.add(key, item);
12248
+ });
12083
12249
  return Store;
12084
12250
  }
12085
12251
  }, {
@@ -12106,20 +12272,10 @@ var Store = /*#__PURE__*/function () {
12106
12272
  return Store;
12107
12273
  }();
12108
12274
  /* harmony default export */ const store = (Store);
12109
- ;// CONCATENATED MODULE: ./packages/v-x-e-table/src/commands.js
12110
-
12111
-
12112
- var commands = new store();
12113
- if (false) {}
12114
- ;// CONCATENATED MODULE: ./packages/v-x-e-table/src/menus.js
12275
+ ;// CONCATENATED MODULE: ./packages/v-x-e-table/src/validators.js
12115
12276
 
12116
12277
 
12117
- var menus = new store();
12118
- if (false) {}
12119
- ;// CONCATENATED MODULE: ./packages/v-x-e-table/src/formats.js
12120
-
12121
-
12122
- var formats = new store();
12278
+ var validators = new store();
12123
12279
  if (false) {}
12124
12280
  ;// CONCATENATED MODULE: ./packages/v-x-e-table/src/setup.js
12125
12281
 
@@ -12146,6 +12302,7 @@ function setup(options) {
12146
12302
 
12147
12303
 
12148
12304
 
12305
+
12149
12306
  var installedPlugins = [];
12150
12307
  function use(Plugin, options) {
12151
12308
  /* eslint-disable @typescript-eslint/no-use-before-define */
@@ -12229,7 +12386,7 @@ function _t(key, args) {
12229
12386
  var v = 'v3';
12230
12387
  var VXETable = {
12231
12388
  v: v,
12232
- version: "3.7.0-beta.0",
12389
+ version: "3.7.0-beta.9",
12233
12390
  reg: reg,
12234
12391
  use: use,
12235
12392
  setup: setup,
@@ -12238,6 +12395,7 @@ var VXETable = {
12238
12395
  commands: commands,
12239
12396
  formats: formats,
12240
12397
  menus: menus,
12398
+ validators: validators,
12241
12399
  config: config,
12242
12400
  t: t,
12243
12401
  _t: _t
@@ -12367,7 +12525,7 @@ var ColumnInfo = /*#__PURE__*/function () {
12367
12525
  var proxyOpts = $xegrid ? $xegrid.proxyOpts : null;
12368
12526
  var formatter = _vm.formatter;
12369
12527
  var visible = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isBoolean(_vm.visible) ? _vm.visible : true;
12370
- if (false) { var _globalFunc, globalFunc, types; }
12528
+ if (false) { var _gFormatOpts, gFormatOpts, types; }
12371
12529
  Object.assign(this, {
12372
12530
  // 基本属性
12373
12531
  type: _vm.type,
@@ -12851,7 +13009,9 @@ function countTreeExpand(prevRow, params) {
12851
13009
  return count;
12852
13010
  }
12853
13011
  var $table = params.$table;
12854
- var rowChildren = prevRow[$table.treeOpts.children];
13012
+ var treeOpts = $table.treeOpts;
13013
+ var childrenField = treeOpts.children || treeOpts.childrenField;
13014
+ var rowChildren = prevRow[childrenField];
12855
13015
  if ($table.isTreeExpandByRow(prevRow)) {
12856
13016
  for (var index = 0; index < rowChildren.length; index++) {
12857
13017
  count += countTreeExpand(rowChildren[index], params);
@@ -13049,7 +13209,7 @@ function renderLine(h, _vm, $xetable, params) {
13049
13209
  if (slots && slots.line) {
13050
13210
  return $xetable.callSlot(slots.line, params, h);
13051
13211
  }
13052
- if (treeConfig && treeNode && treeOpts.line) {
13212
+ if (treeConfig && treeNode && (treeOpts.showLine || treeOpts.line)) {
13053
13213
  return [h('div', {
13054
13214
  "class": 'vxe-tree--line-wrapper'
13055
13215
  }, [h('div', {
@@ -13326,6 +13486,7 @@ function renderRows(h, _vm, $xetable, fixedType, tableData, tableColumn) {
13326
13486
  hasFixedColumn = $xetable.hasFixedColumn,
13327
13487
  fullAllDataRowIdData = $xetable.fullAllDataRowIdData,
13328
13488
  rowOpts = $xetable.rowOpts;
13489
+ var childrenField = treeOpts.children || treeOpts.childrenField;
13329
13490
  var rows = [];
13330
13491
  tableData.forEach(function (row, $rowIndex) {
13331
13492
  var trOn = {};
@@ -13377,7 +13538,7 @@ function renderRows(h, _vm, $xetable, fixedType, tableData, tableColumn) {
13377
13538
  isNewRow = $xetable.isInsertByRow(row);
13378
13539
  }
13379
13540
  if (treeConfig && !scrollYLoad && !treeOpts.transform && treeExpandeds.length) {
13380
- rowChildren = row[treeOpts.children];
13541
+ rowChildren = row[childrenField];
13381
13542
  isExpandTree = rowChildren && rowChildren.length && treeExpandeds.indexOf(row) > -1;
13382
13543
  }
13383
13544
  rows.push(h('tr', {
@@ -14813,16 +14974,16 @@ var Cell = {
14813
14974
  column = params.column,
14814
14975
  level = params.level;
14815
14976
  var slots = column.slots;
14816
- var children = treeOpts.children,
14817
- hasChild = treeOpts.hasChild,
14818
- indent = treeOpts.indent,
14977
+ var indent = treeOpts.indent,
14819
14978
  lazy = treeOpts.lazy,
14820
14979
  trigger = treeOpts.trigger,
14821
14980
  iconLoaded = treeOpts.iconLoaded,
14822
14981
  showIcon = treeOpts.showIcon,
14823
14982
  iconOpen = treeOpts.iconOpen,
14824
14983
  iconClose = treeOpts.iconClose;
14825
- var rowChilds = row[children];
14984
+ var childrenField = treeOpts.children || treeOpts.childrenField;
14985
+ var hasChildField = treeOpts.hasChild || treeOpts.hasChildField;
14986
+ var rowChilds = row[childrenField];
14826
14987
  var hasLazyChilds = false;
14827
14988
  var isAceived = false;
14828
14989
  var isLazyLoaded = false;
@@ -14834,7 +14995,7 @@ var Cell = {
14834
14995
  isAceived = $table.findRowIndexOf(treeExpandeds, row) > -1;
14835
14996
  if (lazy) {
14836
14997
  isLazyLoaded = $table.findRowIndexOf(treeLazyLoadeds, row) > -1;
14837
- hasLazyChilds = row[hasChild];
14998
+ hasLazyChilds = row[hasChildField];
14838
14999
  }
14839
15000
  }
14840
15001
  if (!trigger || trigger === 'default') {
@@ -15023,7 +15184,7 @@ var Cell = {
15023
15184
  isHidden = params.isHidden;
15024
15185
  var treeConfig = $table.treeConfig,
15025
15186
  treeIndeterminates = $table.treeIndeterminates,
15026
- selection = $table.selection;
15187
+ selectCheckboxRows = $table.selectCheckboxRows;
15027
15188
  var _$table$checkboxOpts = $table.checkboxOpts,
15028
15189
  labelField = _$table$checkboxOpts.labelField,
15029
15190
  checkMethod = _$table$checkboxOpts.checkMethod,
@@ -15039,7 +15200,7 @@ var Cell = {
15039
15200
  var isDisabled = !!checkMethod;
15040
15201
  var on;
15041
15202
  if (!isHidden) {
15042
- isChecked = $table.findRowIndexOf(selection, row) > -1;
15203
+ isChecked = $table.findRowIndexOf(selectCheckboxRows, row) > -1;
15043
15204
  on = {
15044
15205
  click: function click(evnt) {
15045
15206
  if (!isDisabled && isVisible) {
@@ -15276,6 +15437,7 @@ var Cell = {
15276
15437
  },
15277
15438
  on: {
15278
15439
  click: function click(evnt) {
15440
+ evnt.stopPropagation();
15279
15441
  $table.triggerSortEvent(evnt, column, 'asc');
15280
15442
  }
15281
15443
  }
@@ -15288,6 +15450,7 @@ var Cell = {
15288
15450
  },
15289
15451
  on: {
15290
15452
  click: function click(evnt) {
15453
+ evnt.stopPropagation();
15291
15454
  $table.triggerSortEvent(evnt, column, 'desc');
15292
15455
  }
15293
15456
  }
@@ -15854,6 +16017,7 @@ var Methods = {
15854
16017
  oldScrollYLoad = this.scrollYLoad,
15855
16018
  sXOpts = this.sXOpts,
15856
16019
  sYOpts = this.sYOpts;
16020
+ var childrenField = treeOpts.children || treeOpts.childrenField;
15857
16021
  var treeData = [];
15858
16022
  var fullData = datas ? datas.slice(0) : [];
15859
16023
  if (treeConfig) {
@@ -15863,8 +16027,8 @@ var Methods = {
15863
16027
  treeData = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toArrayTree(fullData, {
15864
16028
  key: treeOpts.rowField,
15865
16029
  parentKey: treeOpts.parentField,
15866
- children: treeOpts.children,
15867
- mapChildren: treeOpts.mapChildren
16030
+ children: childrenField,
16031
+ mapChildren: treeOpts.mapChildrenField
15868
16032
  });
15869
16033
  fullData = treeData.slice(0);
15870
16034
  } else {
@@ -15890,7 +16054,7 @@ var Methods = {
15890
16054
  this.tableSynchData = datas;
15891
16055
  // 克隆原数据,用于显示编辑状态,与编辑值做对比
15892
16056
  if (keepSource) {
15893
- this.tableSourceData = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().clone(fullData, true);
16057
+ this.cacheSourceMap(fullData);
15894
16058
  }
15895
16059
  if (false) {}
15896
16060
  if (this.clearCellAreas && this.mouseConfig) {
@@ -16072,6 +16236,8 @@ var Methods = {
16072
16236
  tableFullTreeData = this.tableFullTreeData;
16073
16237
  var fullDataRowIdData = this.fullDataRowIdData,
16074
16238
  fullAllDataRowIdData = this.fullAllDataRowIdData;
16239
+ var childrenField = treeOpts.children || treeOpts.childrenField;
16240
+ var hasChildField = treeOpts.hasChild || treeOpts.hasChildField;
16075
16241
  var rowkey = getRowkey(this);
16076
16242
  var isLazy = treeConfig && treeOpts.lazy;
16077
16243
  var handleCache = function handleCache(row, index, items, path, parent, nodes) {
@@ -16082,8 +16248,8 @@ var Methods = {
16082
16248
  rowid = getRowUniqueId();
16083
16249
  external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().set(row, rowkey, rowid);
16084
16250
  }
16085
- if (isLazy && row[treeOpts.hasChild] && external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isUndefined(row[treeOpts.children])) {
16086
- row[treeOpts.children] = null;
16251
+ if (isLazy && row[hasChildField] && external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isUndefined(row[childrenField])) {
16252
+ row[childrenField] = null;
16087
16253
  }
16088
16254
  var rest = {
16089
16255
  row: row,
@@ -16115,8 +16281,35 @@ var Methods = {
16115
16281
  tableFullData.forEach(handleCache);
16116
16282
  }
16117
16283
  },
16118
- loadTreeChildren: function loadTreeChildren(row, childRecords) {
16284
+ cacheSourceMap: function cacheSourceMap(fullData) {
16119
16285
  var _this11 = this;
16286
+ var treeConfig = this.treeConfig,
16287
+ treeOpts = this.treeOpts,
16288
+ sourceDataRowIdData = this.sourceDataRowIdData;
16289
+ var sourceData = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().clone(fullData, true);
16290
+ var rowkey = getRowkey(this);
16291
+ sourceDataRowIdData = this.sourceDataRowIdData = {};
16292
+ var handleSourceRow = function handleSourceRow(row) {
16293
+ var rowid = getRowid(_this11, row);
16294
+ if (eqEmptyValue(rowid)) {
16295
+ rowid = getRowUniqueId();
16296
+ external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().set(row, rowkey, rowid);
16297
+ }
16298
+ sourceDataRowIdData[rowid] = {
16299
+ row: row,
16300
+ rowid: rowid
16301
+ };
16302
+ };
16303
+ // 源数据缓存
16304
+ if (treeConfig && !treeOpts.transform) {
16305
+ external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eachTree(sourceData, handleSourceRow, treeOpts);
16306
+ } else {
16307
+ sourceData.forEach(handleSourceRow);
16308
+ }
16309
+ this.tableSourceData = sourceData;
16310
+ },
16311
+ loadTreeChildren: function loadTreeChildren(row, childRecords) {
16312
+ var _this12 = this;
16120
16313
  var keepSource = this.keepSource,
16121
16314
  tableSourceData = this.tableSourceData,
16122
16315
  treeOpts = this.treeOpts,
@@ -16125,22 +16318,22 @@ var Methods = {
16125
16318
  fullAllDataRowMap = this.fullAllDataRowMap,
16126
16319
  fullAllDataRowIdData = this.fullAllDataRowIdData;
16127
16320
  var transform = treeOpts.transform,
16128
- children = treeOpts.children,
16129
- mapChildren = treeOpts.mapChildren;
16321
+ mapChildrenField = treeOpts.mapChildrenField;
16322
+ var childrenField = treeOpts.children || treeOpts.childrenField;
16130
16323
  var rest = fullAllDataRowIdData[getRowid(this, row)];
16131
16324
  var parentLevel = rest ? rest.level : 0;
16132
16325
  return this.createData(childRecords).then(function (rows) {
16133
16326
  if (keepSource) {
16134
- var rowid = getRowid(_this11, row);
16327
+ var rowid = getRowid(_this12, row);
16135
16328
  var matchObj = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().findTree(tableSourceData, function (item) {
16136
- return rowid === getRowid(_this11, item);
16329
+ return rowid === getRowid(_this12, item);
16137
16330
  }, treeOpts);
16138
16331
  if (matchObj) {
16139
- matchObj.item[children] = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().clone(rows, true);
16332
+ matchObj.item[childrenField] = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().clone(rows, true);
16140
16333
  }
16141
16334
  }
16142
16335
  external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eachTree(rows, function (childRow, index, items, path, parent, nodes) {
16143
- var rowid = getRowid(_this11, childRow);
16336
+ var rowid = getRowid(_this12, childRow);
16144
16337
  var rest = {
16145
16338
  row: childRow,
16146
16339
  rowid: rowid,
@@ -16157,11 +16350,11 @@ var Methods = {
16157
16350
  fullAllDataRowIdData[rowid] = rest;
16158
16351
  fullAllDataRowMap.set(childRow, rest);
16159
16352
  }, treeOpts);
16160
- row[children] = rows;
16353
+ row[childrenField] = rows;
16161
16354
  if (transform) {
16162
- row[mapChildren] = rows;
16355
+ row[mapChildrenField] = rows;
16163
16356
  }
16164
- _this11.updateAfterDataIndex();
16357
+ _this12.updateAfterDataIndex();
16165
16358
  return rows;
16166
16359
  });
16167
16360
  },
@@ -16170,7 +16363,7 @@ var Methods = {
16170
16363
  * 牺牲数据组装的耗时,用来换取使用过程中的流畅
16171
16364
  */
16172
16365
  cacheColumnMap: function cacheColumnMap() {
16173
- var _this12 = this;
16366
+ var _this13 = this;
16174
16367
  var tableFullColumn = this.tableFullColumn,
16175
16368
  collectColumn = this.collectColumn,
16176
16369
  fullColumnMap = this.fullColumnMap,
@@ -16379,18 +16572,19 @@ var Methods = {
16379
16572
  * @param {Row} records 行数据
16380
16573
  */
16381
16574
  defineField: function defineField(records) {
16382
- var _this13 = this;
16575
+ var _this14 = this;
16383
16576
  var radioOpts = this.radioOpts,
16384
16577
  checkboxOpts = this.checkboxOpts,
16385
16578
  treeConfig = this.treeConfig,
16386
16579
  treeOpts = this.treeOpts,
16387
16580
  expandOpts = this.expandOpts;
16581
+ var childrenField = treeOpts.children || treeOpts.childrenField;
16388
16582
  var rowkey = getRowkey(this);
16389
16583
  if (!external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isArray(records)) {
16390
16584
  records = [records || {}];
16391
16585
  }
16392
16586
  return records.map(function (record) {
16393
- _this13.tableFullColumn.forEach(function (column) {
16587
+ _this14.tableFullColumn.forEach(function (column) {
16394
16588
  var field = column.field,
16395
16589
  editRender = column.editRender;
16396
16590
  if (field && !external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().has(record, field)) {
@@ -16414,8 +16608,8 @@ var Methods = {
16414
16608
  external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().set(record, key, null);
16415
16609
  }
16416
16610
  });
16417
- if (treeConfig && treeOpts.lazy && external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isUndefined(record[treeOpts.children])) {
16418
- record[treeOpts.children] = null;
16611
+ if (treeConfig && treeOpts.lazy && external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isUndefined(record[childrenField])) {
16612
+ record[childrenField] = null;
16419
16613
  }
16420
16614
  // 必须有行数据的唯一主键,可以自行设置;也可以默认生成一个随机数
16421
16615
  if (eqEmptyValue(external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().get(record, rowkey))) {
@@ -16430,9 +16624,9 @@ var Methods = {
16430
16624
  * @param {Array} records 新数据
16431
16625
  */
16432
16626
  createData: function createData(records) {
16433
- var _this14 = this;
16627
+ var _this15 = this;
16434
16628
  return this.$nextTick().then(function () {
16435
- return _this14.defineField(records);
16629
+ return _this15.defineField(records);
16436
16630
  });
16437
16631
  },
16438
16632
  /**
@@ -16457,7 +16651,7 @@ var Methods = {
16457
16651
  * 如果还额外传了 field 则还原指定的单元格数据
16458
16652
  */
16459
16653
  revertData: function revertData(rows, field) {
16460
- var _this15 = this;
16654
+ var _this16 = this;
16461
16655
  var keepSource = this.keepSource,
16462
16656
  tableSourceData = this.tableSourceData,
16463
16657
  treeConfig = this.treeConfig;
@@ -16475,8 +16669,8 @@ var Methods = {
16475
16669
  }
16476
16670
  if (targetRows.length) {
16477
16671
  targetRows.forEach(function (row) {
16478
- if (!_this15.isInsertByRow(row)) {
16479
- var rowIndex = _this15.getRowIndex(row);
16672
+ if (!_this16.isInsertByRow(row)) {
16673
+ var rowIndex = _this16.getRowIndex(row);
16480
16674
  if (treeConfig && rowIndex === -1) {
16481
16675
  errLog('vxe.error.noTree', ['revertData']);
16482
16676
  }
@@ -16550,39 +16744,24 @@ var Methods = {
16550
16744
  * @param {String} field 字段名
16551
16745
  */
16552
16746
  isUpdateByRow: function isUpdateByRow(row, field) {
16553
- var _this16 = this;
16554
16747
  var tableFullColumn = this.tableFullColumn,
16555
16748
  keepSource = this.keepSource,
16556
- treeConfig = this.treeConfig,
16557
- treeOpts = this.treeOpts,
16558
- tableSourceData = this.tableSourceData,
16749
+ sourceDataRowIdData = this.sourceDataRowIdData,
16559
16750
  fullDataRowIdData = this.fullDataRowIdData;
16560
16751
  if (keepSource) {
16561
- var oRow, property;
16562
16752
  var rowid = getRowid(this, row);
16563
16753
  // 新增的数据不需要检测
16564
16754
  if (!fullDataRowIdData[rowid]) {
16565
16755
  return false;
16566
16756
  }
16567
- if (treeConfig) {
16568
- var children = treeOpts.children;
16569
- var matchObj = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().findTree(tableSourceData, function (item) {
16570
- return rowid === getRowid(_this16, item);
16571
- }, treeOpts);
16572
- row = Object.assign({}, row, _defineProperty({}, children, null));
16573
- if (matchObj) {
16574
- oRow = Object.assign({}, matchObj.item, _defineProperty({}, children, null));
16575
- }
16576
- } else {
16577
- var oRowIndex = fullDataRowIdData[rowid].index;
16578
- oRow = tableSourceData[oRowIndex];
16579
- }
16580
- if (oRow) {
16757
+ var oldRest = sourceDataRowIdData[rowid];
16758
+ if (oldRest) {
16759
+ var oRow = oldRest.row;
16581
16760
  if (arguments.length > 1) {
16582
16761
  return !eqCellValue(oRow, row, field);
16583
16762
  }
16584
16763
  for (var index = 0, len = tableFullColumn.length; index < len; index++) {
16585
- property = tableFullColumn[index].field;
16764
+ var property = tableFullColumn[index].field;
16586
16765
  if (property && !eqCellValue(oRow, row, property)) {
16587
16766
  return true;
16588
16767
  }
@@ -16647,9 +16826,9 @@ var Methods = {
16647
16826
  tableFullTreeData = this.tableFullTreeData,
16648
16827
  afterTreeFullData = this.afterTreeFullData;
16649
16828
  var transform = treeOpts.transform,
16650
- children = treeOpts.children,
16651
- mapChildren = treeOpts.mapChildren;
16829
+ mapChildrenField = treeOpts.mapChildrenField;
16652
16830
  var checkField = checkboxOpts.checkField;
16831
+ var childrenField = treeOpts.children || treeOpts.childrenField;
16653
16832
  var currTableData = isFull ? transform ? tableFullTreeData : tableFullData : transform ? afterTreeFullData : afterFullData;
16654
16833
  var rowList = [];
16655
16834
  if (checkField) {
@@ -16657,7 +16836,7 @@ var Methods = {
16657
16836
  rowList = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().filterTree(currTableData, function (row) {
16658
16837
  return external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().get(row, checkField);
16659
16838
  }, {
16660
- children: transform ? mapChildren : children
16839
+ children: transform ? mapChildrenField : childrenField
16661
16840
  });
16662
16841
  } else {
16663
16842
  rowList = currTableData.filter(function (row) {
@@ -16665,16 +16844,16 @@ var Methods = {
16665
16844
  });
16666
16845
  }
16667
16846
  } else {
16668
- var selection = this.selection;
16847
+ var selectCheckboxRows = this.selectCheckboxRows;
16669
16848
  if (treeConfig) {
16670
16849
  rowList = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().filterTree(currTableData, function (row) {
16671
- return _this17.findRowIndexOf(selection, row) > -1;
16850
+ return _this17.findRowIndexOf(selectCheckboxRows, row) > -1;
16672
16851
  }, {
16673
- children: transform ? mapChildren : children
16852
+ children: transform ? mapChildrenField : childrenField
16674
16853
  });
16675
16854
  } else {
16676
16855
  rowList = currTableData.filter(function (row) {
16677
- return _this17.findRowIndexOf(selection, row) > -1;
16856
+ return _this17.findRowIndexOf(selectCheckboxRows, row) > -1;
16678
16857
  });
16679
16858
  }
16680
16859
  }
@@ -16699,7 +16878,7 @@ var Methods = {
16699
16878
  fullData.push(row);
16700
16879
  }
16701
16880
  }, {
16702
- children: treeOpts.mapChildren
16881
+ children: treeOpts.mapChildrenField
16703
16882
  });
16704
16883
  this.afterFullData = fullData;
16705
16884
  this.updateScrollYStatus(fullData);
@@ -16924,6 +17103,7 @@ var Methods = {
16924
17103
  fullAllDataRowIdData = this.fullAllDataRowIdData,
16925
17104
  afterTreeFullData = this.afterTreeFullData,
16926
17105
  treeOpts = this.treeOpts;
17106
+ var childrenField = treeOpts.children || treeOpts.childrenField;
16927
17107
  if (treeConfig) {
16928
17108
  external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eachTree(afterTreeFullData, function (row, index, items, path) {
16929
17109
  var rowid = getRowid(_this19, row);
@@ -16950,7 +17130,7 @@ var Methods = {
16950
17130
  fullDataRowIdData[rowid] = rest;
16951
17131
  }
16952
17132
  }, {
16953
- children: treeOpts.transform ? treeOpts.mapChildren : treeOpts.children
17133
+ children: treeOpts.transform ? treeOpts.mapChildrenField : childrenField
16954
17134
  });
16955
17135
  } else {
16956
17136
  afterFullData.forEach(function (row, index) {
@@ -17115,7 +17295,7 @@ var Methods = {
17115
17295
  */
17116
17296
  showColumn: function showColumn(fieldOrColumn) {
17117
17297
  var column = handleFieldOrColumn(this, fieldOrColumn);
17118
- if (column & !column.visible) {
17298
+ if (column && column.visible) {
17119
17299
  column.visible = true;
17120
17300
  return this.handleCustom();
17121
17301
  }
@@ -17752,6 +17932,7 @@ var Methods = {
17752
17932
  },
17753
17933
  updateHeight: function updateHeight() {
17754
17934
  this.customHeight = calcHeight(this, 'height');
17935
+ this.customMinHeight = calcHeight(this, 'minHeight');
17755
17936
  this.customMaxHeight = calcHeight(this, 'maxHeight');
17756
17937
  },
17757
17938
  updateStyle: function updateStyle() {
@@ -17761,6 +17942,7 @@ var Methods = {
17761
17942
  fullColumnIdData = this.fullColumnIdData,
17762
17943
  tableColumn = this.tableColumn,
17763
17944
  customHeight = this.customHeight,
17945
+ customMinHeight = this.customMinHeight,
17764
17946
  customMaxHeight = this.customMaxHeight,
17765
17947
  border = this.border,
17766
17948
  headerHeight = this.headerHeight,
@@ -17869,15 +18051,22 @@ var Methods = {
17869
18051
  } else if (layout === 'body') {
17870
18052
  var emptyBlockElem = elemStore["".concat(name, "-").concat(layout, "-emptyBlock")];
17871
18053
  if (methods_isNodeElement(wrapperElem)) {
18054
+ var bodyMinHeight = fixedType ? customMinHeight - headerHeight - footerHeight - (showFooter ? 0 : scrollbarHeight) : customMinHeight - headerHeight - footerHeight;
18055
+ var bodyMaxHeight = 0;
17872
18056
  if (customMaxHeight) {
17873
- wrapperElem.style.maxHeight = "".concat(fixedType ? customMaxHeight - headerHeight - (showFooter ? 0 : scrollbarHeight) : customMaxHeight - headerHeight - footerHeight, "px");
17874
- } else {
17875
- if (customHeight > 0) {
17876
- wrapperElem.style.height = "".concat(fixedType ? (customHeight > 0 ? customHeight - headerHeight - footerHeight : tableHeight) - (showFooter ? 0 : scrollbarHeight) : customHeight - headerHeight - footerHeight, "px");
17877
- } else {
17878
- wrapperElem.style.height = '';
18057
+ bodyMaxHeight = Math.max(bodyMinHeight, fixedType ? customMaxHeight - headerHeight - (showFooter ? 0 : scrollbarHeight) : customMaxHeight - headerHeight - footerHeight);
18058
+ wrapperElem.style.maxHeight = "".concat(bodyMaxHeight, "px");
18059
+ }
18060
+ if (customHeight > 0) {
18061
+ var bodyHeight = fixedType ? (customHeight > 0 ? customHeight - headerHeight - footerHeight : tableHeight) - (showFooter ? 0 : scrollbarHeight) : customHeight - headerHeight - footerHeight;
18062
+ if (bodyMaxHeight) {
18063
+ bodyHeight = Math.min(bodyMaxHeight, bodyHeight);
17879
18064
  }
18065
+ wrapperElem.style.height = "".concat(Math.max(bodyMinHeight, bodyHeight), "px");
18066
+ } else {
18067
+ wrapperElem.style.height = '';
17880
18068
  }
18069
+ wrapperElem.style.minHeight = "".concat(bodyMinHeight, "px");
17881
18070
  }
17882
18071
 
17883
18072
  // 如果是固定列
@@ -18759,12 +18948,12 @@ var Methods = {
18759
18948
  return this.handleCheckedCheckboxRow(rows, value, true);
18760
18949
  },
18761
18950
  isCheckedByCheckboxRow: function isCheckedByCheckboxRow(row) {
18762
- var selection = this.selection;
18951
+ var selectCheckboxRows = this.selectCheckboxRows;
18763
18952
  var checkField = this.checkboxOpts.checkField;
18764
18953
  if (checkField) {
18765
18954
  return external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().get(row, checkField);
18766
18955
  }
18767
- return this.findRowIndexOf(selection, row) > -1;
18956
+ return this.findRowIndexOf(selectCheckboxRows, row) > -1;
18768
18957
  },
18769
18958
  isIndeterminateByCheckboxRow: function isIndeterminateByCheckboxRow(row) {
18770
18959
  var treeIndeterminates = this.treeIndeterminates;
@@ -18777,7 +18966,7 @@ var Methods = {
18777
18966
  handleSelectRow: function handleSelectRow(_ref6, value, isForce) {
18778
18967
  var _this33 = this;
18779
18968
  var row = _ref6.row;
18780
- var selection = this.selection,
18969
+ var selectCheckboxRows = this.selectCheckboxRows,
18781
18970
  afterFullData = this.afterFullData,
18782
18971
  treeConfig = this.treeConfig,
18783
18972
  treeOpts = this.treeOpts,
@@ -18849,7 +19038,7 @@ var Methods = {
18849
19038
  if (this.findRowIndexOf(treeIndeterminates, row) === -1) {
18850
19039
  treeIndeterminates.push(row);
18851
19040
  }
18852
- external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().remove(selection, function (item) {
19041
+ external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().remove(selectCheckboxRows, function (item) {
18853
19042
  return _this33.eqRow(item, row);
18854
19043
  });
18855
19044
  } else {
@@ -18859,9 +19048,9 @@ var Methods = {
18859
19048
  row: item
18860
19049
  })) {
18861
19050
  if (value) {
18862
- selection.push(item);
19051
+ selectCheckboxRows.push(item);
18863
19052
  } else {
18864
- external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().remove(selection, function (select) {
19053
+ external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().remove(selectCheckboxRows, function (select) {
18865
19054
  return _this33.eqRow(select, item);
18866
19055
  });
18867
19056
  }
@@ -18890,7 +19079,7 @@ var Methods = {
18890
19079
  _parentStatus = -1;
18891
19080
  } else {
18892
19081
  var _selectItems = _matchObj.items.filter(function (item) {
18893
- return _this33.findRowIndexOf(selection, item) > -1;
19082
+ return _this33.findRowIndexOf(selectCheckboxRows, item) > -1;
18894
19083
  });
18895
19084
  _parentStatus = _selectItems.filter(function (item) {
18896
19085
  return _this33.findRowIndexOf(_vItems, item) > -1;
@@ -18905,11 +19094,11 @@ var Methods = {
18905
19094
  row: row
18906
19095
  })) {
18907
19096
  if (value) {
18908
- if (this.findRowIndexOf(selection, row) === -1) {
18909
- selection.push(row);
19097
+ if (this.findRowIndexOf(selectCheckboxRows, row) === -1) {
19098
+ selectCheckboxRows.push(row);
18910
19099
  }
18911
19100
  } else {
18912
- external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().remove(selection, function (item) {
19101
+ external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().remove(selectCheckboxRows, function (item) {
18913
19102
  return _this33.eqRow(item, row);
18914
19103
  });
18915
19104
  }
@@ -18920,11 +19109,11 @@ var Methods = {
18920
19109
  this.checkSelectionStatus();
18921
19110
  },
18922
19111
  handleToggleCheckRowEvent: function handleToggleCheckRowEvent(evnt, params) {
18923
- var selection = this.selection,
19112
+ var selectCheckboxRows = this.selectCheckboxRows,
18924
19113
  checkboxOpts = this.checkboxOpts;
18925
19114
  var checkField = checkboxOpts.checkField;
18926
19115
  var row = params.row;
18927
- var value = checkField ? !external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().get(row, checkField) : this.findRowIndexOf(selection, row) === -1;
19116
+ var value = checkField ? !external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().get(row, checkField) : this.findRowIndexOf(selectCheckboxRows, row) === -1;
18928
19117
  if (evnt) {
18929
19118
  this.triggerCheckRowEvent(evnt, params, value);
18930
19119
  } else {
@@ -18949,10 +19138,10 @@ var Methods = {
18949
19138
  * 多选,切换某一行的选中状态
18950
19139
  */
18951
19140
  toggleCheckboxRow: function toggleCheckboxRow(row) {
18952
- var selection = this.selection,
19141
+ var selectCheckboxRows = this.selectCheckboxRows,
18953
19142
  checkboxOpts = this.checkboxOpts;
18954
19143
  var checkField = checkboxOpts.checkField;
18955
- var value = checkField ? !external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().get(row, checkField) : this.findRowIndexOf(selection, row) === -1;
19144
+ var value = checkField ? !external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().get(row, checkField) : this.findRowIndexOf(selectCheckboxRows, row) === -1;
18956
19145
  this.handleSelectRow({
18957
19146
  row: row
18958
19147
  }, value, true);
@@ -18963,7 +19152,7 @@ var Methods = {
18963
19152
  var afterFullData = this.afterFullData,
18964
19153
  treeConfig = this.treeConfig,
18965
19154
  treeOpts = this.treeOpts,
18966
- selection = this.selection,
19155
+ selectCheckboxRows = this.selectCheckboxRows,
18967
19156
  checkboxReserveRowMap = this.checkboxReserveRowMap,
18968
19157
  checkboxOpts = this.checkboxOpts;
18969
19158
  var checkField = checkboxOpts.checkField,
@@ -18971,7 +19160,7 @@ var Methods = {
18971
19160
  checkStrictly = checkboxOpts.checkStrictly,
18972
19161
  checkMethod = checkboxOpts.checkMethod;
18973
19162
  var selectRows = [];
18974
- var beforeSelection = treeConfig ? [] : selection.filter(function (row) {
19163
+ var beforeSelection = treeConfig ? [] : selectCheckboxRows.filter(function (row) {
18975
19164
  return _this34.findRowIndexOf(afterFullData, row) === -1;
18976
19165
  });
18977
19166
  if (checkStrictly) {
@@ -19026,7 +19215,7 @@ var Methods = {
19026
19215
  external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eachTree(afterFullData, function (row) {
19027
19216
  if (checkMethod({
19028
19217
  row: row
19029
- }) ? 0 : _this34.findRowIndexOf(selection, row) > -1) {
19218
+ }) ? 0 : _this34.findRowIndexOf(selectCheckboxRows, row) > -1) {
19030
19219
  selectRows.push(row);
19031
19220
  }
19032
19221
  }, treeOpts);
@@ -19041,7 +19230,7 @@ var Methods = {
19041
19230
  */
19042
19231
  if (!isForce && checkMethod) {
19043
19232
  selectRows = afterFullData.filter(function (row) {
19044
- return _this34.findRowIndexOf(selection, row) > -1 || checkMethod({
19233
+ return _this34.findRowIndexOf(selectCheckboxRows, row) > -1 || checkMethod({
19045
19234
  row: row
19046
19235
  });
19047
19236
  });
@@ -19058,7 +19247,7 @@ var Methods = {
19058
19247
  selectRows = afterFullData.filter(function (row) {
19059
19248
  return checkMethod({
19060
19249
  row: row
19061
- }) ? 0 : _this34.findRowIndexOf(selection, row) > -1;
19250
+ }) ? 0 : _this34.findRowIndexOf(selectCheckboxRows, row) > -1;
19062
19251
  });
19063
19252
  }
19064
19253
  }
@@ -19075,7 +19264,7 @@ var Methods = {
19075
19264
  });
19076
19265
  }
19077
19266
  }
19078
- this.selection = checkField ? [] : beforeSelection.concat(selectRows);
19267
+ this.selectCheckboxRows = checkField ? [] : beforeSelection.concat(selectRows);
19079
19268
  }
19080
19269
  this.treeIndeterminates = [];
19081
19270
  this.checkSelectionStatus();
@@ -19091,7 +19280,7 @@ var Methods = {
19091
19280
  checkSelectionStatus: function checkSelectionStatus() {
19092
19281
  var _this35 = this;
19093
19282
  var afterFullData = this.afterFullData,
19094
- selection = this.selection,
19283
+ selectCheckboxRows = this.selectCheckboxRows,
19095
19284
  treeIndeterminates = this.treeIndeterminates,
19096
19285
  checkboxOpts = this.checkboxOpts,
19097
19286
  treeConfig = this.treeConfig;
@@ -19151,22 +19340,22 @@ var Methods = {
19151
19340
  disableRows.push(row);
19152
19341
  return true;
19153
19342
  }
19154
- if (_this35.findRowIndexOf(selection, row) > -1) {
19343
+ if (_this35.findRowIndexOf(selectCheckboxRows, row) > -1) {
19155
19344
  checkRows.push(row);
19156
19345
  return true;
19157
19346
  }
19158
19347
  return false;
19159
19348
  } : function (row) {
19160
- return _this35.findRowIndexOf(selection, row) > -1;
19349
+ return _this35.findRowIndexOf(selectCheckboxRows, row) > -1;
19161
19350
  });
19162
19351
  isAllSelected = isAllResolve && afterFullData.length !== disableRows.length;
19163
19352
  if (treeConfig) {
19164
19353
  isIndeterminate = !isAllSelected && afterFullData.some(function (row) {
19165
- return _this35.findRowIndexOf(treeIndeterminates, row) > -1 || _this35.findRowIndexOf(selection, row) > -1;
19354
+ return _this35.findRowIndexOf(treeIndeterminates, row) > -1 || _this35.findRowIndexOf(selectCheckboxRows, row) > -1;
19166
19355
  });
19167
19356
  } else {
19168
19357
  isIndeterminate = !isAllSelected && afterFullData.some(function (row) {
19169
- return _this35.findRowIndexOf(selection, row) > -1;
19358
+ return _this35.findRowIndexOf(selectCheckboxRows, row) > -1;
19170
19359
  });
19171
19360
  }
19172
19361
  }
@@ -19186,7 +19375,7 @@ var Methods = {
19186
19375
  radioReserveRow = this.radioReserveRow,
19187
19376
  radioOpts = this.radioOpts,
19188
19377
  checkboxOpts = this.checkboxOpts,
19189
- selection = this.selection,
19378
+ selectCheckboxRows = this.selectCheckboxRows,
19190
19379
  rowExpandeds = this.rowExpandeds,
19191
19380
  treeExpandeds = this.treeExpandeds,
19192
19381
  expandOpts = this.expandOpts;
@@ -19202,7 +19391,7 @@ var Methods = {
19202
19391
  }
19203
19392
  }
19204
19393
  // 复选框
19205
- this.selection = getRecoverRow(this, selection); // 刷新多选行状态
19394
+ this.selectCheckboxRows = getRecoverRow(this, selectCheckboxRows); // 刷新多选行状态
19206
19395
  // 还原保留选中状态
19207
19396
  if (checkboxOpts.reserve) {
19208
19397
  this.handleCheckedCheckboxRow(handleReserveRow(this, this.checkboxReserveRowMap), true, true);
@@ -19372,7 +19561,7 @@ var Methods = {
19372
19561
  }
19373
19562
  this.isAllSelected = false;
19374
19563
  this.isIndeterminate = false;
19375
- this.selection = [];
19564
+ this.selectCheckboxRows = [];
19376
19565
  this.treeIndeterminates = [];
19377
19566
  return this.$nextTick();
19378
19567
  },
@@ -19793,12 +19982,18 @@ var Methods = {
19793
19982
  });
19794
19983
  }
19795
19984
  var params = {
19985
+ $table: this,
19986
+ $event: evnt,
19796
19987
  column: column,
19797
19988
  field: field,
19798
19989
  property: field,
19799
19990
  order: column.order,
19800
- sortList: this.getSortColumns()
19991
+ sortList: this.getSortColumns(),
19992
+ sortTime: column.sortTime
19801
19993
  };
19994
+ if (this.mouseConfig && this.mouseOpts.area && this.handleSortEvent) {
19995
+ return this.handleSortEvent(evnt, params);
19996
+ }
19802
19997
  this.emitEvent('sort-change', params, evnt);
19803
19998
  }
19804
19999
  },
@@ -19848,7 +20043,10 @@ var Methods = {
19848
20043
  if (!remote || firstSortColumn && firstSortColumn.remoteSort) {
19849
20044
  this.handleTableData(true);
19850
20045
  }
19851
- return this.$nextTick().then(this.updateStyle);
20046
+ return this.$nextTick().then(function () {
20047
+ _this41.updateCellAreas();
20048
+ return _this41.updateStyle();
20049
+ });
19852
20050
  }
19853
20051
  return this.$nextTick();
19854
20052
  },
@@ -20051,7 +20249,19 @@ var Methods = {
20051
20249
  * @param {Boolean} expanded 是否展开
20052
20250
  */
20053
20251
  setAllRowExpand: function setAllRowExpand(expanded) {
20054
- return this.setRowExpand(this.expandOpts.lazy ? this.tableData : this.tableFullData, expanded);
20252
+ var treeConfig = this.treeConfig,
20253
+ treeOpts = this.treeOpts,
20254
+ tableFullData = this.tableFullData,
20255
+ tableFullTreeData = this.tableFullTreeData;
20256
+ var expandedRows = [];
20257
+ if (treeConfig) {
20258
+ external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eachTree(tableFullTreeData, function (row) {
20259
+ expandedRows.push(row);
20260
+ }, treeOpts);
20261
+ } else {
20262
+ expandedRows = tableFullData;
20263
+ }
20264
+ return this.setRowExpand(expandedRows, expanded);
20055
20265
  },
20056
20266
  handleAsyncRowExpand: function handleAsyncRowExpand(row) {
20057
20267
  var _this44 = this;
@@ -20243,9 +20453,9 @@ var Methods = {
20243
20453
  var treeOpts = this.treeOpts,
20244
20454
  treeLazyLoadeds = this.treeLazyLoadeds;
20245
20455
  var transform = treeOpts.transform,
20246
- lazy = treeOpts.lazy,
20247
- hasChild = treeOpts.hasChild;
20248
- if (lazy && row[hasChild] && treeLazyLoadeds.indexOf(row) === -1) {
20456
+ lazy = treeOpts.lazy;
20457
+ var hasChildField = treeOpts.hasChild || treeOpts.hasChildField;
20458
+ if (lazy && row[hasChildField] && treeLazyLoadeds.indexOf(row) === -1) {
20249
20459
  this.clearTreeExpandLoaded(row).then(function () {
20250
20460
  return _this47.handleAsyncTreeExpandChilds(row);
20251
20461
  }).then(function () {
@@ -20383,11 +20593,11 @@ var Methods = {
20383
20593
  setAllTreeExpand: function setAllTreeExpand(expanded) {
20384
20594
  var tableFullData = this.tableFullData,
20385
20595
  treeOpts = this.treeOpts;
20386
- var lazy = treeOpts.lazy,
20387
- children = treeOpts.children;
20596
+ var lazy = treeOpts.lazy;
20597
+ var childrenField = treeOpts.children || treeOpts.childrenField;
20388
20598
  var expandeds = [];
20389
20599
  external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eachTree(tableFullData, function (row) {
20390
- var rowChildren = row[children];
20600
+ var rowChildren = row[childrenField];
20391
20601
  if (lazy || rowChildren && rowChildren.length) {
20392
20602
  expandeds.push(row);
20393
20603
  }
@@ -20410,10 +20620,10 @@ var Methods = {
20410
20620
  treeNodeColumn = this.treeNodeColumn;
20411
20621
  var reserve = treeOpts.reserve,
20412
20622
  lazy = treeOpts.lazy,
20413
- hasChild = treeOpts.hasChild,
20414
- children = treeOpts.children,
20415
20623
  accordion = treeOpts.accordion,
20416
20624
  toggleMethod = treeOpts.toggleMethod;
20625
+ var childrenField = treeOpts.children || treeOpts.childrenField;
20626
+ var hasChildField = treeOpts.hasChild || treeOpts.hasChildField;
20417
20627
  var result = [];
20418
20628
  var columnIndex = this.getColumnIndex(treeNodeColumn);
20419
20629
  var $columnIndex = this.getVMColumnIndex(treeNodeColumn);
@@ -20442,12 +20652,12 @@ var Methods = {
20442
20652
  validRows.forEach(function (row) {
20443
20653
  if (treeExpandeds.indexOf(row) === -1) {
20444
20654
  var rest = fullAllDataRowMap.get(row);
20445
- var isLoad = lazy && row[hasChild] && !rest.treeLoaded && treeLazyLoadeds.indexOf(row) === -1;
20655
+ var isLoad = lazy && row[hasChildField] && !rest.treeLoaded && treeLazyLoadeds.indexOf(row) === -1;
20446
20656
  // 是否使用懒加载
20447
20657
  if (isLoad) {
20448
20658
  result.push(_this49.handleAsyncTreeExpandChilds(row));
20449
20659
  } else {
20450
- if (row[children] && row[children].length) {
20660
+ if (row[childrenField] && row[childrenField].length) {
20451
20661
  treeExpandeds.push(row);
20452
20662
  }
20453
20663
  }
@@ -20932,16 +21142,16 @@ var Methods = {
20932
21142
  * 如果组件值 v-model 发生 change 时,调用改函数用于更新某一列编辑状态
20933
21143
  * 如果单元格配置了校验规则,则会进行校验
20934
21144
  */
20935
- updateStatus: function updateStatus(scope, cellValue) {
21145
+ updateStatus: function updateStatus(slotParams, cellValue) {
20936
21146
  var _this57 = this;
20937
21147
  var customVal = !external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isUndefined(cellValue);
20938
21148
  return this.$nextTick().then(function () {
20939
21149
  var $refs = _this57.$refs,
20940
21150
  editRules = _this57.editRules,
20941
21151
  validStore = _this57.validStore;
20942
- if (scope && $refs.tableBody && editRules) {
20943
- var row = scope.row,
20944
- column = scope.column;
21152
+ if (slotParams && $refs.tableBody && editRules) {
21153
+ var row = slotParams.row,
21154
+ column = slotParams.column;
20945
21155
  var type = 'change';
20946
21156
  if (_this57.hasCellRules(type, row, column)) {
20947
21157
  var cell = _this57.getCell(row, column);
@@ -21132,11 +21342,11 @@ var Methods = {
21132
21342
  columnIndex: this.getColumnIndex(column)
21133
21343
  };
21134
21344
  if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isString(formatter)) {
21135
- var globalFunc = formats.get(formatter);
21136
- cellLabel = globalFunc ? globalFunc(formatParams) : '';
21345
+ var gFormatOpts = formats.get(formatter);
21346
+ cellLabel = gFormatOpts && gFormatOpts.cellFormatMethod ? gFormatOpts.cellFormatMethod(formatParams) : '';
21137
21347
  } else if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isArray(formatter)) {
21138
- var _globalFunc = formats.get(formatter[0]);
21139
- cellLabel = _globalFunc ? _globalFunc.apply(void 0, [formatParams].concat(_toConsumableArray(formatter.slice(1)))) : '';
21348
+ var _gFormatOpts = formats.get(formatter[0]);
21349
+ cellLabel = _gFormatOpts && _gFormatOpts.cellFormatMethod ? _gFormatOpts.cellFormatMethod.apply(_gFormatOpts, [formatParams].concat(_toConsumableArray(formatter.slice(1)))) : '';
21140
21350
  } else {
21141
21351
  cellLabel = formatter(formatParams);
21142
21352
  }
@@ -21264,6 +21474,7 @@ var Loading = Object.assign(loading, {
21264
21474
 
21265
21475
 
21266
21476
 
21477
+
21267
21478
 
21268
21479
 
21269
21480
  /**
@@ -21354,6 +21565,13 @@ function handleUupdateResize(_vm) {
21354
21565
  data: Array,
21355
21566
  // 表格的高度
21356
21567
  height: [Number, String],
21568
+ // 表格的最小高度
21569
+ minHeight: {
21570
+ type: [Number, String],
21571
+ "default": function _default() {
21572
+ return conf.table.minHeight;
21573
+ }
21574
+ },
21357
21575
  // 表格的最大高度
21358
21576
  maxHeight: [Number, String],
21359
21577
  // 已废弃,被 column-config.resizable 替换
@@ -21675,7 +21893,7 @@ function handleUupdateResize(_vm) {
21675
21893
  // 复选框属性,有选中且非全选状态
21676
21894
  isIndeterminate: false,
21677
21895
  // 复选框属性,已选中的行
21678
- selection: [],
21896
+ selectCheckboxRows: [],
21679
21897
  // 当前行
21680
21898
  currentRow: null,
21681
21899
  // 单选框属性,选中列
@@ -22273,6 +22491,7 @@ function handleUupdateResize(_vm) {
22273
22491
  this.preventEvent(null, 'destroyed');
22274
22492
  },
22275
22493
  render: function render(h) {
22494
+ var _ref;
22276
22495
  var _e = this._e,
22277
22496
  $scopedSlots = this.$scopedSlots,
22278
22497
  tId = this.tId,
@@ -22311,33 +22530,12 @@ function handleUupdateResize(_vm) {
22311
22530
  hasTip = this.hasTip,
22312
22531
  columnOpts = this.columnOpts,
22313
22532
  rowOpts = this.rowOpts,
22314
- loadingOpts = this.loadingOpts;
22533
+ loadingOpts = this.loadingOpts,
22534
+ editRules = this.editRules;
22315
22535
  var leftList = columnStore.leftList,
22316
22536
  rightList = columnStore.rightList;
22317
22537
  return h('div', {
22318
- "class": ['vxe-table', 'vxe-table--render-default', "tid_".concat(tId), vSize ? "size--".concat(vSize) : '', "border--".concat(tableBorder), {
22319
- 'vxe-editable': !!editConfig,
22320
- 'cell--highlight': highlightCell,
22321
- 'cell--selected': mouseConfig && mouseOpts.selected,
22322
- 'cell--area': mouseConfig && mouseOpts.area,
22323
- 'row--highlight': rowOpts.isHover || highlightHoverRow,
22324
- 'column--highlight': columnOpts.isHover || highlightHoverColumn,
22325
- 'is--header': showHeader,
22326
- 'is--footer': showFooter,
22327
- 'is--group': isGroup,
22328
- 'is--tree-line': treeConfig && treeOpts.line,
22329
- 'is--fixed-left': leftList.length,
22330
- 'is--fixed-right': rightList.length,
22331
- 'is--animat': !!this.animat,
22332
- 'is--round': this.round,
22333
- 'is--stripe': !treeConfig && stripe,
22334
- 'is--loading': loading,
22335
- 'is--empty': !loading && !tableData.length,
22336
- 'is--scroll-y': overflowY,
22337
- 'is--scroll-x': overflowX,
22338
- 'is--virtual-x': scrollXLoad,
22339
- 'is--virtual-y': scrollYLoad
22340
- }],
22538
+ "class": ['vxe-table', 'vxe-table--render-default', "tid_".concat(tId), vSize ? "size--".concat(vSize) : '', "border--".concat(tableBorder), (_ref = {}, _defineProperty(_ref, "vaild-msg--".concat(validOpts.msgMode), !!editRules), _defineProperty(_ref, 'vxe-editable', !!editConfig), _defineProperty(_ref, 'cell--highlight', highlightCell), _defineProperty(_ref, 'cell--selected', mouseConfig && mouseOpts.selected), _defineProperty(_ref, 'cell--area', mouseConfig && mouseOpts.area), _defineProperty(_ref, 'row--highlight', rowOpts.isHover || highlightHoverRow), _defineProperty(_ref, 'column--highlight', columnOpts.isHover || highlightHoverColumn), _defineProperty(_ref, 'is--header', showHeader), _defineProperty(_ref, 'is--footer', showFooter), _defineProperty(_ref, 'is--group', isGroup), _defineProperty(_ref, 'is--tree-line', treeConfig && (treeOpts.showLine || treeOpts.line)), _defineProperty(_ref, 'is--fixed-left', leftList.length), _defineProperty(_ref, 'is--fixed-right', rightList.length), _defineProperty(_ref, 'is--animat', !!this.animat), _defineProperty(_ref, 'is--round', this.round), _defineProperty(_ref, 'is--stripe', !treeConfig && stripe), _defineProperty(_ref, 'is--loading', loading), _defineProperty(_ref, 'is--empty', !loading && !tableData.length), _defineProperty(_ref, 'is--scroll-y', overflowY), _defineProperty(_ref, 'is--scroll-x', overflowX), _defineProperty(_ref, 'is--virtual-x', scrollXLoad), _defineProperty(_ref, 'is--virtual-y', scrollYLoad), _ref)],
22341
22539
  on: {
22342
22540
  keydown: this.keydownEvent
22343
22541
  }
@@ -22956,12 +23154,9 @@ var Table = Object.assign(table, {
22956
23154
  }
22957
23155
  });
22958
23156
  var filterList = this.getCheckedFilters();
22959
- // 如果是服务端筛选,则跳过本地筛选处理
22960
- if (!filterOpts.remote) {
22961
- this.handleTableData(true);
22962
- this.checkSelectionStatus();
22963
- }
22964
- this.emitEvent('filter-change', {
23157
+ var params = {
23158
+ $table: this,
23159
+ $event: evnt,
22965
23160
  column: column,
22966
23161
  field: field,
22967
23162
  property: field,
@@ -22969,7 +23164,16 @@ var Table = Object.assign(table, {
22969
23164
  datas: datas,
22970
23165
  filters: filterList,
22971
23166
  filterList: filterList
22972
- }, evnt);
23167
+ };
23168
+ // 如果是服务端筛选,则跳过本地筛选处理
23169
+ if (!filterOpts.remote) {
23170
+ this.handleTableData(true);
23171
+ this.checkSelectionStatus();
23172
+ }
23173
+ if (this.mouseConfig && this.mouseOpts.area && this.handleFilterEvent) {
23174
+ this.handleFilterEvent(evnt, params);
23175
+ }
23176
+ this.emitEvent('filter-change', params, evnt);
22973
23177
  this.closeFilter();
22974
23178
  this.updateFooter().then(function () {
22975
23179
  var scrollXLoad = _this2.scrollXLoad,
@@ -23473,15 +23677,15 @@ var Filter = {
23473
23677
  ctxMenuLinkEvent: function ctxMenuLinkEvent(evnt, menu) {
23474
23678
  // 如果一级菜单有配置 code 则允许点击,否则不能点击
23475
23679
  if (!menu.disabled && (menu.code || !menu.children || !menu.children.length)) {
23476
- var ctxMenuMethod = v_x_e_table.menus.get(menu.code);
23680
+ var gMenuOpts = v_x_e_table.menus.get(menu.code);
23477
23681
  var params = Object.assign({
23478
23682
  menu: menu,
23479
23683
  $grid: this.$xegrid,
23480
23684
  $table: this,
23481
23685
  $event: evnt
23482
23686
  }, this.ctxMenuStore.args);
23483
- if (ctxMenuMethod) {
23484
- ctxMenuMethod.call(this, params, evnt);
23687
+ if (gMenuOpts && gMenuOpts.menuMethod) {
23688
+ gMenuOpts.menuMethod(params, evnt);
23485
23689
  }
23486
23690
  // 在 v4 中废弃事件 context-menu-click
23487
23691
  if (this.$listeners['context-menu-click']) {
@@ -23549,8 +23753,8 @@ function insertTreeRow(_vm, newRecords, isAppend) {
23549
23753
  treeOpts = _vm.treeOpts;
23550
23754
  var rowField = treeOpts.rowField,
23551
23755
  parentField = treeOpts.parentField,
23552
- children = treeOpts.children,
23553
- mapChildren = treeOpts.mapChildren;
23756
+ mapChildrenField = treeOpts.mapChildrenField;
23757
+ var childrenField = treeOpts.children || treeOpts.childrenField;
23554
23758
  var funcName = isAppend ? 'push' : 'unshift';
23555
23759
  newRecords.forEach(function (item) {
23556
23760
  var parentRowId = item[parentField];
@@ -23558,15 +23762,15 @@ function insertTreeRow(_vm, newRecords, isAppend) {
23558
23762
  var matchObj = parentRowId ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().findTree(tableFullTreeData, function (item) {
23559
23763
  return parentRowId === item[rowField];
23560
23764
  }, {
23561
- children: mapChildren
23765
+ children: mapChildrenField
23562
23766
  }) : null;
23563
23767
  if (matchObj) {
23564
23768
  var parentRow = matchObj.item;
23565
23769
  var parentRest = fullAllDataRowIdData[getRowid(_vm, parentRow)];
23566
23770
  var parentLevel = parentRest ? parentRest.level : 0;
23567
- var parentChilds = parentRow[children];
23771
+ var parentChilds = parentRow[childrenField];
23568
23772
  if (!external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isArray(parentChilds)) {
23569
- parentChilds = parentRow[children] = [];
23773
+ parentChilds = parentRow[childrenField] = [];
23570
23774
  }
23571
23775
  parentChilds[funcName](item);
23572
23776
  var rest = {
@@ -23633,7 +23837,7 @@ function insertTreeRow(_vm, newRecords, isAppend) {
23633
23837
  treeOpts = this.treeOpts;
23634
23838
  var transform = treeOpts.transform,
23635
23839
  rowField = treeOpts.rowField,
23636
- mapChildren = treeOpts.mapChildren;
23840
+ mapChildrenField = treeOpts.mapChildrenField;
23637
23841
  if (!external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isArray(records)) {
23638
23842
  records = [records];
23639
23843
  }
@@ -23678,7 +23882,7 @@ function insertTreeRow(_vm, newRecords, isAppend) {
23678
23882
  var matchObj = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().findTree(tableFullTreeData, function (item) {
23679
23883
  return row[rowField] === item[rowField];
23680
23884
  }, {
23681
- children: mapChildren
23885
+ children: mapChildrenField
23682
23886
  });
23683
23887
  if (matchObj) {
23684
23888
  var parentRow = matchObj.parent;
@@ -23784,7 +23988,7 @@ function insertTreeRow(_vm, newRecords, isAppend) {
23784
23988
  mergeList = this.mergeList,
23785
23989
  editStore = this.editStore,
23786
23990
  checkboxOpts = this.checkboxOpts,
23787
- selection = this.selection,
23991
+ selectCheckboxRows = this.selectCheckboxRows,
23788
23992
  isInsertByRow = this.isInsertByRow,
23789
23993
  treeOpts = this.treeOpts;
23790
23994
  var transform = treeOpts.transform;
@@ -23808,9 +24012,9 @@ function insertTreeRow(_vm, newRecords, isAppend) {
23808
24012
  // 如果绑定了多选属性,则更新状态
23809
24013
  if (!checkField) {
23810
24014
  rows.forEach(function (row) {
23811
- var sIndex = _this2.findRowIndexOf(selection, row);
24015
+ var sIndex = _this2.findRowIndexOf(selectCheckboxRows, row);
23812
24016
  if (sIndex > -1) {
23813
- selection.splice(sIndex, 1);
24017
+ selectCheckboxRows.splice(sIndex, 1);
23814
24018
  }
23815
24019
  });
23816
24020
  }
@@ -26196,7 +26400,12 @@ function renderExtraSuffixIcon(h, _vm) {
26196
26400
  },
26197
26401
  readonly: Boolean,
26198
26402
  disabled: Boolean,
26199
- placeholder: String,
26403
+ placeholder: {
26404
+ type: String,
26405
+ "default": function _default() {
26406
+ return external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eqNull(conf.input.placeholder) ? conf.i18n('vxe.base.pleaseInput') : conf.input.placeholder;
26407
+ }
26408
+ },
26200
26409
  maxlength: [String, Number],
26201
26410
  autocomplete: {
26202
26411
  type: String,
@@ -26888,6 +27097,11 @@ function renderExtraSuffixIcon(h, _vm) {
26888
27097
  this.isActivated = false;
26889
27098
  return this.$nextTick();
26890
27099
  },
27100
+ select: function select() {
27101
+ this.$refs.input.select();
27102
+ this.isActivated = false;
27103
+ return this.$nextTick();
27104
+ },
26891
27105
  triggerEvent: function triggerEvent(evnt) {
26892
27106
  var $refs = this.$refs,
26893
27107
  inputValue = this.inputValue;
@@ -28396,7 +28610,12 @@ function renderOpts(h, _vm) {
28396
28610
  props: {
28397
28611
  value: null,
28398
28612
  clearable: Boolean,
28399
- placeholder: String,
28613
+ placeholder: {
28614
+ type: String,
28615
+ "default": function _default() {
28616
+ return external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eqNull(conf.select.placeholder) ? conf.i18n('vxe.base.pleaseSelect') : conf.select.placeholder;
28617
+ }
28618
+ },
28400
28619
  loading: Boolean,
28401
28620
  disabled: Boolean,
28402
28621
  multiple: Boolean,
@@ -28414,6 +28633,7 @@ function renderOpts(h, _vm) {
28414
28633
  optionGroupProps: Object,
28415
28634
  optionConfig: Object,
28416
28635
  className: [String, Function],
28636
+ popupClassName: [String, Function],
28417
28637
  max: [String, Number],
28418
28638
  size: {
28419
28639
  type: String,
@@ -28601,6 +28821,7 @@ function renderOpts(h, _vm) {
28601
28821
  $scopedSlots = this.$scopedSlots,
28602
28822
  vSize = this.vSize,
28603
28823
  className = this.className,
28824
+ popupClassName = this.popupClassName,
28604
28825
  inited = this.inited,
28605
28826
  isActivated = this.isActivated,
28606
28827
  loading = this.loading,
@@ -28641,7 +28862,9 @@ function renderOpts(h, _vm) {
28641
28862
  } : {}
28642
28863
  }), h('div', {
28643
28864
  ref: 'panel',
28644
- "class": ['vxe-table--ignore-clear vxe-select--panel', (_ref2 = {}, _defineProperty(_ref2, "size--".concat(vSize), vSize), _defineProperty(_ref2, 'is--transfer', this.transfer), _defineProperty(_ref2, 'animat--leave', !loading && this.animatVisible), _defineProperty(_ref2, 'animat--enter', !loading && visiblePanel), _ref2)],
28865
+ "class": ['vxe-table--ignore-clear vxe-select--panel', popupClassName ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(popupClassName) ? popupClassName({
28866
+ $select: this
28867
+ }) : popupClassName : '', (_ref2 = {}, _defineProperty(_ref2, "size--".concat(vSize), vSize), _defineProperty(_ref2, 'is--transfer', this.transfer), _defineProperty(_ref2, 'animat--leave', !loading && this.animatVisible), _defineProperty(_ref2, 'animat--enter', !loading && visiblePanel), _ref2)],
28645
28868
  attrs: {
28646
28869
  placement: this.panelPlacement
28647
28870
  },
@@ -30082,7 +30305,8 @@ function getExportBlobByContent(content, options) {
30082
30305
  }
30083
30306
  function hasTreeChildren($xetable, row) {
30084
30307
  var treeOpts = $xetable.treeOpts;
30085
- return row[treeOpts.children] && row[treeOpts.children].length > 0;
30308
+ var childrenField = treeOpts.children || treeOpts.childrenField;
30309
+ return row[childrenField] && row[childrenField].length > 0;
30086
30310
  }
30087
30311
  function getSeq($xetable, row, $rowIndex, column, $columnIndex) {
30088
30312
  var seqOpts = $xetable.seqOpts;
@@ -30120,7 +30344,8 @@ function getLabelData($xetable, opts, columns, datas) {
30120
30344
  var treeConfig = $xetable.treeConfig,
30121
30345
  treeOpts = $xetable.treeOpts,
30122
30346
  radioOpts = $xetable.radioOpts,
30123
- checkboxOpts = $xetable.checkboxOpts;
30347
+ checkboxOpts = $xetable.checkboxOpts,
30348
+ columnOpts = $xetable.columnOpts;
30124
30349
  if (!htmlCellElem) {
30125
30350
  htmlCellElem = document.createElement('div');
30126
30351
  }
@@ -30142,15 +30367,18 @@ function getLabelData($xetable, opts, columns, datas) {
30142
30367
  columns.forEach(function (column, $columnIndex) {
30143
30368
  var cellValue = '';
30144
30369
  var renderOpts = column.editRender || column.cellRender;
30145
- var exportLabelMethod = column.exportMethod;
30146
- if (!exportLabelMethod && renderOpts && renderOpts.name) {
30370
+ var bodyExportMethod = column.exportMethod;
30371
+ if (!bodyExportMethod && renderOpts && renderOpts.name) {
30147
30372
  var compConf = v_x_e_table.renderer.get(renderOpts.name);
30148
30373
  if (compConf) {
30149
- exportLabelMethod = compConf.exportMethod || compConf.cellExportMethod;
30374
+ bodyExportMethod = compConf.exportMethod || compConf.cellExportMethod;
30150
30375
  }
30151
30376
  }
30152
- if (exportLabelMethod) {
30153
- cellValue = exportLabelMethod({
30377
+ if (!bodyExportMethod) {
30378
+ bodyExportMethod = columnOpts.exportMethod;
30379
+ }
30380
+ if (bodyExportMethod) {
30381
+ cellValue = bodyExportMethod({
30154
30382
  $table: $xetable,
30155
30383
  row: row,
30156
30384
  column: column,
@@ -30282,23 +30510,29 @@ function getBooleanValue(cellValue) {
30282
30510
  return cellValue === 'TRUE' || cellValue === 'true' || cellValue === true;
30283
30511
  }
30284
30512
  function getHeaderTitle($xetable, opts, column) {
30285
- var headerExportMethod = column.headerExportMethod;
30286
- return headerExportMethod ? headerExportMethod({
30513
+ var columnOpts = $xetable.columnOpts;
30514
+ var headExportMethod = column.headerExportMethod || columnOpts.headerExportMethod;
30515
+ return headExportMethod ? headExportMethod({
30287
30516
  column: column,
30517
+ options: opts,
30288
30518
  $table: $xetable
30289
30519
  }) : (opts.original ? column.property : column.getTitle()) || '';
30290
30520
  }
30291
30521
  function getFooterCellValue($xetable, opts, items, column) {
30522
+ var columnOpts = $xetable.columnOpts;
30292
30523
  var renderOpts = column.editRender || column.cellRender;
30293
- var exportLabelMethod = column.footerExportMethod;
30294
- if (!exportLabelMethod && renderOpts && renderOpts.name) {
30524
+ var footLabelMethod = column.footerExportMethod;
30525
+ if (!footLabelMethod && renderOpts && renderOpts.name) {
30295
30526
  var compConf = v_x_e_table.renderer.get(renderOpts.name);
30296
30527
  if (compConf) {
30297
- exportLabelMethod = compConf.footerExportMethod || compConf.footerCellExportMethod;
30528
+ footLabelMethod = compConf.footerExportMethod || compConf.footerCellExportMethod;
30298
30529
  }
30299
30530
  }
30531
+ if (!footLabelMethod) {
30532
+ footLabelMethod = columnOpts.footerExportMethod;
30533
+ }
30300
30534
  var _columnIndex = $xetable.getVTColumnIndex(column);
30301
- var cellValue = exportLabelMethod ? exportLabelMethod({
30535
+ var cellValue = footLabelMethod ? footLabelMethod({
30302
30536
  $table: $xetable,
30303
30537
  items: items,
30304
30538
  itemIndex: _columnIndex,
@@ -32143,6 +32377,8 @@ var Keyboard = {
32143
32377
 
32144
32378
 
32145
32379
 
32380
+
32381
+
32146
32382
 
32147
32383
 
32148
32384
 
@@ -32213,12 +32449,14 @@ function validErrorRuleValue(rule, val) {
32213
32449
  * 完整校验,和 validate 的区别就是会给有效数据中的每一行进行校验
32214
32450
  */
32215
32451
  _fullValidate: function _fullValidate(rows, cb) {
32452
+ if (false) {}
32216
32453
  return this.beginValidate(rows, cb, true);
32217
32454
  },
32218
32455
  /**
32219
32456
  * 快速校验,如果存在记录不通过的记录,则返回不再继续校验(异步校验除外)
32220
32457
  */
32221
32458
  _validate: function _validate(rows, cb) {
32459
+ if (false) {}
32222
32460
  return this.beginValidate(rows, cb);
32223
32461
  },
32224
32462
  /**
@@ -32410,10 +32648,11 @@ function validErrorRuleValue(rule, val) {
32410
32648
  rules.forEach(function (rule) {
32411
32649
  var type = rule.type,
32412
32650
  trigger = rule.trigger,
32413
- required = rule.required;
32651
+ required = rule.required,
32652
+ validator = rule.validator;
32414
32653
  if (validType === 'all' || !trigger || validType === trigger) {
32415
- if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(rule.validator)) {
32416
- var customValid = rule.validator({
32654
+ if (validator) {
32655
+ var validParams = {
32417
32656
  cellValue: cellValue,
32418
32657
  rule: rule,
32419
32658
  rules: rules,
@@ -32423,7 +32662,22 @@ function validErrorRuleValue(rule, val) {
32423
32662
  columnIndex: _this3.getColumnIndex(column),
32424
32663
  field: column.property,
32425
32664
  $table: _this3
32426
- });
32665
+ };
32666
+ var customValid;
32667
+ if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isString(validator)) {
32668
+ var gvItem = v_x_e_table.validators.get(validator);
32669
+ if (gvItem) {
32670
+ if (gvItem.cellValidatorMethod) {
32671
+ customValid = gvItem.cellValidatorMethod(validParams);
32672
+ } else {
32673
+ if (false) {}
32674
+ }
32675
+ } else {
32676
+ if (false) {}
32677
+ }
32678
+ } else {
32679
+ customValid = validator(validParams);
32680
+ }
32427
32681
  if (customValid) {
32428
32682
  if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isError(customValid)) {
32429
32683
  _this3.validRuleErr = true;
@@ -33990,14 +34244,16 @@ Object.keys(packages_table.methods).forEach(function (name) {
33990
34244
  }
33991
34245
  default:
33992
34246
  {
33993
- var btnMethod = v_x_e_table.commands.get(code);
33994
- if (btnMethod) {
33995
- btnMethod.apply(void 0, [{
34247
+ var gCommandOpts = v_x_e_table.commands.get(code);
34248
+ if (gCommandOpts.commandMethod) {
34249
+ gCommandOpts.commandMethod.apply(gCommandOpts, [{
33996
34250
  code: code,
33997
34251
  button: button,
33998
34252
  $grid: this,
33999
34253
  $table: $xetable
34000
34254
  }].concat(args));
34255
+ } else {
34256
+ if (false) {}
34001
34257
  }
34002
34258
  }
34003
34259
  }
@@ -34703,7 +34959,8 @@ function renderCustoms(h, _vm) {
34703
34959
  created: function created() {
34704
34960
  var _this = this;
34705
34961
  var refresh = this.refresh,
34706
- refreshOpts = this.refreshOpts;
34962
+ refreshOpts = this.refreshOpts,
34963
+ customOpts = this.customOpts;
34707
34964
  this.$nextTick(function () {
34708
34965
  var $xetable = _this.fintTable();
34709
34966
  var queryMethod = refreshOpts.queryMethod || refreshOpts.query;
@@ -35031,7 +35288,7 @@ function renderCustoms(h, _vm) {
35031
35288
  if ($xegrid) {
35032
35289
  $xegrid.triggerToolbarBtnEvent(item, evnt);
35033
35290
  } else {
35034
- var commandMethod = v_x_e_table.commands.get(code);
35291
+ var gCommandOpts = v_x_e_table.commands.get(code);
35035
35292
  var params = {
35036
35293
  code: code,
35037
35294
  button: item,
@@ -35039,8 +35296,12 @@ function renderCustoms(h, _vm) {
35039
35296
  $grid: $xegrid,
35040
35297
  $event: evnt
35041
35298
  };
35042
- if (commandMethod) {
35043
- commandMethod.call(this, params, evnt);
35299
+ if (gCommandOpts) {
35300
+ if (gCommandOpts.commandMethod) {
35301
+ gCommandOpts.commandMethod(params);
35302
+ } else {
35303
+ if (false) {}
35304
+ }
35044
35305
  }
35045
35306
  this.$emit('button-click', params);
35046
35307
  }
@@ -35054,7 +35315,7 @@ function renderCustoms(h, _vm) {
35054
35315
  if ($xegrid) {
35055
35316
  $xegrid.triggerToolbarTolEvent(item, evnt);
35056
35317
  } else {
35057
- var commandMethod = v_x_e_table.commands.get(code);
35318
+ var gCommandOpts = v_x_e_table.commands.get(code);
35058
35319
  var params = {
35059
35320
  code: code,
35060
35321
  tool: item,
@@ -35062,8 +35323,12 @@ function renderCustoms(h, _vm) {
35062
35323
  $table: $xetable,
35063
35324
  $event: evnt
35064
35325
  };
35065
- if (commandMethod) {
35066
- commandMethod.call(this, params, evnt);
35326
+ if (gCommandOpts) {
35327
+ if (gCommandOpts.commandMethod) {
35328
+ gCommandOpts.commandMethod(params);
35329
+ } else {
35330
+ if (false) {}
35331
+ }
35067
35332
  }
35068
35333
  this.$emit('tool-click', params);
35069
35334
  }
@@ -35941,7 +36206,12 @@ var autoTxtElem;
35941
36206
  name: String,
35942
36207
  readonly: Boolean,
35943
36208
  disabled: Boolean,
35944
- placeholder: String,
36209
+ placeholder: {
36210
+ type: String,
36211
+ "default": function _default() {
36212
+ return external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eqNull(conf.textarea.placeholder) ? conf.i18n('vxe.base.pleaseInput') : conf.textarea.placeholder;
36213
+ }
36214
+ },
35945
36215
  maxlength: [String, Number],
35946
36216
  rows: {
35947
36217
  type: [String, Number],
@@ -36230,7 +36500,8 @@ var Textarea = Object.assign(src_textarea, {
36230
36500
  disabled: Boolean,
36231
36501
  loading: Boolean,
36232
36502
  destroyOnClose: Boolean,
36233
- className: String,
36503
+ className: [String, Function],
36504
+ popupClassName: [String, Function],
36234
36505
  transfer: {
36235
36506
  type: Boolean,
36236
36507
  "default": function _default() {
@@ -36280,6 +36551,7 @@ var Textarea = Object.assign(src_textarea, {
36280
36551
  var $scopedSlots = this.$scopedSlots,
36281
36552
  $listeners = this.$listeners,
36282
36553
  className = this.className,
36554
+ popupClassName = this.popupClassName,
36283
36555
  inited = this.inited,
36284
36556
  type = this.type,
36285
36557
  destroyOnClose = this.destroyOnClose,
@@ -36295,7 +36567,9 @@ var Textarea = Object.assign(src_textarea, {
36295
36567
  panelPlacement = this.panelPlacement;
36296
36568
  var downsSlot = $scopedSlots.dropdowns;
36297
36569
  return downsSlot ? h('div', {
36298
- "class": ['vxe-button--dropdown', className, (_ref = {}, _defineProperty(_ref, "size--".concat(vSize), vSize), _defineProperty(_ref, 'is--active', showPanel), _ref)]
36570
+ "class": ['vxe-button--dropdown', className ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(className) ? className({
36571
+ $button: this
36572
+ }) : className : '', (_ref = {}, _defineProperty(_ref, "size--".concat(vSize), vSize), _defineProperty(_ref, 'is--active', showPanel), _ref)]
36299
36573
  }, [h('button', {
36300
36574
  ref: 'xBtn',
36301
36575
  "class": ['vxe-button', "type--".concat(btnType), (_ref2 = {}, _defineProperty(_ref2, "size--".concat(vSize), vSize), _defineProperty(_ref2, "theme--".concat(status), status), _defineProperty(_ref2, 'is--round', this.round), _defineProperty(_ref2, 'is--circle', this.circle), _defineProperty(_ref2, 'is--disabled', disabled || loading), _defineProperty(_ref2, 'is--loading', loading), _ref2)],
@@ -36318,7 +36592,9 @@ var Textarea = Object.assign(src_textarea, {
36318
36592
  "class": "vxe-button--dropdown-arrow ".concat(conf.icon.BUTTON_DROPDOWN)
36319
36593
  })])), h('div', {
36320
36594
  ref: 'panel',
36321
- "class": ['vxe-button--dropdown-panel', (_ref3 = {}, _defineProperty(_ref3, "size--".concat(vSize), vSize), _defineProperty(_ref3, 'animat--leave', animatVisible), _defineProperty(_ref3, 'animat--enter', showPanel), _ref3)],
36595
+ "class": ['vxe-button--dropdown-panel', popupClassName ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(popupClassName) ? popupClassName({
36596
+ $button: this
36597
+ }) : popupClassName : '', (_ref3 = {}, _defineProperty(_ref3, "size--".concat(vSize), vSize), _defineProperty(_ref3, 'animat--leave', animatVisible), _defineProperty(_ref3, 'animat--enter', showPanel), _ref3)],
36322
36598
  attrs: {
36323
36599
  placement: panelPlacement
36324
36600
  },
@@ -36820,6 +37096,7 @@ function renderContent(h, _vm) {
36820
37096
  },
36821
37097
  useHTML: Boolean,
36822
37098
  zIndex: [String, Number],
37099
+ popupClassName: [String, Function],
36823
37100
  isArrow: {
36824
37101
  type: Boolean,
36825
37102
  "default": true
@@ -36929,6 +37206,7 @@ function renderContent(h, _vm) {
36929
37206
  var _ref;
36930
37207
  var $scopedSlots = this.$scopedSlots,
36931
37208
  vSize = this.vSize,
37209
+ popupClassName = this.popupClassName,
36932
37210
  theme = this.theme,
36933
37211
  tipActive = this.tipActive,
36934
37212
  isArrow = this.isArrow,
@@ -36943,7 +37221,9 @@ function renderContent(h, _vm) {
36943
37221
  };
36944
37222
  }
36945
37223
  return h('div', {
36946
- "class": ['vxe-table--tooltip-wrapper', "theme--".concat(theme), (_ref = {}, _defineProperty(_ref, "size--".concat(vSize), vSize), _defineProperty(_ref, "placement--".concat(tipStore.placement), tipStore.placement), _defineProperty(_ref, 'is--enterable', enterable), _defineProperty(_ref, 'is--visible', visible), _defineProperty(_ref, 'is--arrow', isArrow), _defineProperty(_ref, 'is--actived', tipActive), _ref)],
37224
+ "class": ['vxe-table--tooltip-wrapper', "theme--".concat(theme), popupClassName ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(popupClassName) ? popupClassName({
37225
+ $tooltip: this
37226
+ }) : popupClassName : '', (_ref = {}, _defineProperty(_ref, "size--".concat(vSize), vSize), _defineProperty(_ref, "placement--".concat(tipStore.placement), tipStore.placement), _defineProperty(_ref, 'is--enterable', enterable), _defineProperty(_ref, 'is--visible', visible), _defineProperty(_ref, 'is--arrow', isArrow), _defineProperty(_ref, 'is--actived', tipActive), _ref)],
36947
37227
  style: tipStore.style,
36948
37228
  ref: 'tipWrapper',
36949
37229
  on: on
@@ -37923,7 +38203,9 @@ function getResetValue(value, resetValue) {
37923
38203
  validateField: function validateField(fieldOrItem, callback) {
37924
38204
  var _this7 = this;
37925
38205
  var fields = [];
37926
- if (!external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isArray(fieldOrItem)) {
38206
+ if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isArray(fieldOrItem)) {
38207
+ fields = fieldOrItem;
38208
+ } else {
37927
38209
  fields = [fieldOrItem];
37928
38210
  }
37929
38211
  return this.beginValidate(fields.map(function (field) {
@@ -38021,10 +38303,11 @@ function getResetValue(value, resetValue) {
38021
38303
  rules.forEach(function (rule) {
38022
38304
  var type = rule.type,
38023
38305
  trigger = rule.trigger,
38024
- required = rule.required;
38306
+ required = rule.required,
38307
+ validator = rule.validator;
38025
38308
  if (validType === 'all' || !trigger || validType === rule.trigger) {
38026
- if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(rule.validator)) {
38027
- var customValid = rule.validator({
38309
+ if (validator) {
38310
+ var validParams = {
38028
38311
  itemValue: itemValue,
38029
38312
  rule: rule,
38030
38313
  rules: rules,
@@ -38032,7 +38315,22 @@ function getResetValue(value, resetValue) {
38032
38315
  field: property,
38033
38316
  property: property,
38034
38317
  $form: _this9
38035
- });
38318
+ };
38319
+ var customValid;
38320
+ if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isString(validator)) {
38321
+ var gvItem = v_x_e_table.validators.get(validator);
38322
+ if (gvItem) {
38323
+ if (gvItem.itemValidatorMethod) {
38324
+ customValid = gvItem.itemValidatorMethod(validParams);
38325
+ } else {
38326
+ if (false) {}
38327
+ }
38328
+ } else {
38329
+ if (false) {}
38330
+ }
38331
+ } else {
38332
+ customValid = validator(validParams);
38333
+ }
38036
38334
  if (customValid) {
38037
38335
  if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isError(customValid)) {
38038
38336
  errorRules.push(new form_Rule({
@@ -39066,6 +39364,7 @@ var List = Object.assign(list, {
39066
39364
 
39067
39365
 
39068
39366
 
39367
+
39069
39368
  /* harmony default export */ const pulldown = ({
39070
39369
  name: 'VxePulldown',
39071
39370
  mixins: [size],
@@ -39079,6 +39378,8 @@ var List = Object.assign(list, {
39079
39378
  return conf.size;
39080
39379
  }
39081
39380
  },
39381
+ className: [String, Function],
39382
+ popupClassName: [String, Function],
39082
39383
  destroyOnClose: Boolean,
39083
39384
  transfer: Boolean
39084
39385
  },
@@ -39123,6 +39424,8 @@ var List = Object.assign(list, {
39123
39424
  var _ref, _ref2;
39124
39425
  var $scopedSlots = this.$scopedSlots,
39125
39426
  inited = this.inited,
39427
+ className = this.className,
39428
+ popupClassName = this.popupClassName,
39126
39429
  vSize = this.vSize,
39127
39430
  destroyOnClose = this.destroyOnClose,
39128
39431
  transfer = this.transfer,
@@ -39135,7 +39438,9 @@ var List = Object.assign(list, {
39135
39438
  var defaultSlot = $scopedSlots["default"];
39136
39439
  var downSlot = $scopedSlots.dropdown;
39137
39440
  return h('div', {
39138
- "class": ['vxe-pulldown', (_ref = {}, _defineProperty(_ref, "size--".concat(vSize), vSize), _defineProperty(_ref, 'is--visivle', visiblePanel), _defineProperty(_ref, 'is--disabled', disabled), _defineProperty(_ref, 'is--active', isActivated), _ref)]
39441
+ "class": ['vxe-pulldown', className ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(className) ? className({
39442
+ $pulldown: this
39443
+ }) : className : '', (_ref = {}, _defineProperty(_ref, "size--".concat(vSize), vSize), _defineProperty(_ref, 'is--visivle', visiblePanel), _defineProperty(_ref, 'is--disabled', disabled), _defineProperty(_ref, 'is--active', isActivated), _ref)]
39139
39444
  }, [h('div', {
39140
39445
  ref: 'content',
39141
39446
  "class": 'vxe-pulldown--content'
@@ -39143,7 +39448,9 @@ var List = Object.assign(list, {
39143
39448
  $pulldown: this
39144
39449
  }, h) : []), h('div', {
39145
39450
  ref: 'panel',
39146
- "class": ['vxe-table--ignore-clear vxe-pulldown--panel', (_ref2 = {}, _defineProperty(_ref2, "size--".concat(vSize), vSize), _defineProperty(_ref2, 'is--transfer', transfer), _defineProperty(_ref2, 'animat--leave', animatVisible), _defineProperty(_ref2, 'animat--enter', visiblePanel), _ref2)],
39451
+ "class": ['vxe-table--ignore-clear vxe-pulldown--panel', popupClassName ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(popupClassName) ? popupClassName({
39452
+ $pulldown: this
39453
+ }) : popupClassName : '', (_ref2 = {}, _defineProperty(_ref2, "size--".concat(vSize), vSize), _defineProperty(_ref2, 'is--transfer', transfer), _defineProperty(_ref2, 'animat--leave', animatVisible), _defineProperty(_ref2, 'animat--enter', visiblePanel), _ref2)],
39147
39454
  attrs: {
39148
39455
  placement: panelPlacement
39149
39456
  },
@@ -39358,6 +39665,10 @@ var Pulldown = Object.assign(pulldown, {
39358
39665
  ;// CONCATENATED MODULE: ./packages/locale/lang/zh-CN.js
39359
39666
  /* harmony default export */ const zh_CN = ({
39360
39667
  vxe: {
39668
+ base: {
39669
+ pleaseInput: '请输入',
39670
+ pleaseSelect: '请选择'
39671
+ },
39361
39672
  loading: {
39362
39673
  text: '加载中...'
39363
39674
  },
@@ -39377,6 +39688,10 @@ var Pulldown = Object.assign(pulldown, {
39377
39688
  errProp: '不支持的参数 "{0}",可能为 "{1}"',
39378
39689
  colRepet: 'column.{0}="{1}" 重复了,这可能会导致某些功能无法使用',
39379
39690
  notFunc: '方法 "{0}" 不存在',
39691
+ errFunc: '参数 "{0}" 不是一个方法',
39692
+ notValidators: '全局校验 "{0}" 不存在',
39693
+ notFormats: '全局格式化 "{0}" 不存在',
39694
+ notCommands: '全局指令 "{0}" 不存在',
39380
39695
  notSlot: '插槽 "{0}" 不存在',
39381
39696
  noTree: '树结构不支持 "{0}"',
39382
39697
  notProp: '不支持的参数 "{0}"',