vxe-table 3.9.0-rc.9 → 3.9.0

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 (222) hide show
  1. package/README.md +1 -1
  2. package/es/grid/src/grid.js +120 -66
  3. package/es/grid/style.css +0 -1
  4. package/es/grid/style.min.css +1 -1
  5. package/es/index.esm.js +22 -3
  6. package/es/locale/lang/en-US.js +2 -1
  7. package/es/locale/lang/es-ES.js +2 -1
  8. package/es/locale/lang/hu-HU.js +2 -1
  9. package/es/locale/lang/ja-JP.js +2 -1
  10. package/es/locale/lang/ko-KR.js +2 -1
  11. package/es/locale/lang/pt-BR.js +2 -1
  12. package/es/locale/lang/ru-RU.js +2 -1
  13. package/es/locale/lang/uk-UA.js +2 -1
  14. package/es/locale/lang/vi-VN.js +2 -1
  15. package/es/locale/lang/zh-CHT.js +2 -1
  16. package/es/locale/lang/zh-CN.js +2 -1
  17. package/es/style.css +1 -1
  18. package/es/style.min.css +1 -1
  19. package/es/table/module/custom/panel.js +183 -173
  20. package/es/table/module/edit/mixin.js +33 -24
  21. package/es/table/module/export/export-panel.js +32 -4
  22. package/es/table/module/export/import-panel.js +25 -6
  23. package/es/table/module/export/mixin.js +11 -11
  24. package/es/table/module/menu/mixin.js +2 -2
  25. package/es/table/module/validator/mixin.js +4 -4
  26. package/es/table/render/index.js +17 -11
  27. package/es/table/src/body.js +1 -0
  28. package/es/table/src/columnInfo.js +3 -3
  29. package/es/table/src/methods.js +54 -42
  30. package/es/table/src/props.js +65 -15
  31. package/es/table/src/table.js +91 -57
  32. package/es/table/src/util.js +3 -2
  33. package/es/table/style.css +37 -48
  34. package/es/table/style.min.css +1 -1
  35. package/es/toolbar/src/toolbar.js +21 -7
  36. package/es/toolbar/style.css +0 -1
  37. package/es/toolbar/style.min.css +1 -1
  38. package/es/ui/index.js +5 -3
  39. package/es/ui/src/log.js +1 -1
  40. package/es/vxe-grid/style.css +0 -1
  41. package/es/vxe-grid/style.min.css +1 -1
  42. package/es/vxe-table/style.css +37 -48
  43. package/es/vxe-table/style.min.css +1 -1
  44. package/es/vxe-toolbar/style.css +0 -1
  45. package/es/vxe-toolbar/style.min.css +1 -1
  46. package/lib/colgroup/index.js +3 -3
  47. package/lib/colgroup/index.min.js +1 -1
  48. package/lib/column/index.js +3 -3
  49. package/lib/column/index.min.js +1 -1
  50. package/lib/components.js +9 -11
  51. package/lib/components.min.js +1 -1
  52. package/lib/grid/index.js +3 -3
  53. package/lib/grid/index.min.js +1 -1
  54. package/lib/grid/src/grid.js +581 -491
  55. package/lib/grid/src/grid.min.js +1 -1
  56. package/lib/grid/style/style.css +0 -1
  57. package/lib/grid/style/style.min.css +1 -1
  58. package/lib/index.common.js +3 -4
  59. package/lib/index.umd.js +9174 -17260
  60. package/lib/index.umd.min.js +1 -1
  61. package/lib/locale/lang/en-US.js +2 -1
  62. package/lib/locale/lang/en-US.min.js +1 -1
  63. package/lib/locale/lang/en-US.umd.js +2 -1
  64. package/lib/locale/lang/es-ES.js +2 -1
  65. package/lib/locale/lang/es-ES.min.js +1 -1
  66. package/lib/locale/lang/es-ES.umd.js +2 -1
  67. package/lib/locale/lang/hu-HU.js +2 -1
  68. package/lib/locale/lang/hu-HU.min.js +1 -1
  69. package/lib/locale/lang/hu-HU.umd.js +2 -1
  70. package/lib/locale/lang/ja-JP.js +2 -1
  71. package/lib/locale/lang/ja-JP.min.js +1 -1
  72. package/lib/locale/lang/ja-JP.umd.js +2 -1
  73. package/lib/locale/lang/ko-KR.js +2 -1
  74. package/lib/locale/lang/ko-KR.min.js +1 -1
  75. package/lib/locale/lang/ko-KR.umd.js +2 -1
  76. package/lib/locale/lang/pt-BR.js +2 -1
  77. package/lib/locale/lang/pt-BR.min.js +1 -1
  78. package/lib/locale/lang/pt-BR.umd.js +2 -1
  79. package/lib/locale/lang/ru-RU.js +2 -1
  80. package/lib/locale/lang/ru-RU.min.js +1 -1
  81. package/lib/locale/lang/ru-RU.umd.js +2 -1
  82. package/lib/locale/lang/uk-UA.js +2 -1
  83. package/lib/locale/lang/uk-UA.min.js +1 -1
  84. package/lib/locale/lang/uk-UA.umd.js +2 -1
  85. package/lib/locale/lang/vi-VN.js +2 -1
  86. package/lib/locale/lang/vi-VN.min.js +1 -1
  87. package/lib/locale/lang/zh-CHT.js +2 -1
  88. package/lib/locale/lang/zh-CHT.min.js +1 -1
  89. package/lib/locale/lang/zh-CHT.umd.js +2 -1
  90. package/lib/locale/lang/zh-CN.js +2 -1
  91. package/lib/locale/lang/zh-CN.min.js +1 -1
  92. package/lib/locale/lang/zh-CN.umd.js +2 -1
  93. package/lib/style.css +1 -1
  94. package/lib/style.min.css +1 -1
  95. package/lib/table/index.js +4 -4
  96. package/lib/table/index.min.js +1 -1
  97. package/lib/table/module/custom/mixin.js +53 -44
  98. package/lib/table/module/custom/mixin.min.js +1 -1
  99. package/lib/table/module/custom/panel.js +310 -239
  100. package/lib/table/module/custom/panel.min.js +1 -1
  101. package/lib/table/module/edit/mixin.js +436 -371
  102. package/lib/table/module/edit/mixin.min.js +1 -1
  103. package/lib/table/module/export/export-panel.js +136 -106
  104. package/lib/table/module/export/export-panel.min.js +1 -1
  105. package/lib/table/module/export/import-panel.js +75 -54
  106. package/lib/table/module/export/import-panel.min.js +1 -1
  107. package/lib/table/module/export/mixin.js +592 -597
  108. package/lib/table/module/export/mixin.min.js +1 -1
  109. package/lib/table/module/export/util.js +6 -4
  110. package/lib/table/module/export/util.min.js +1 -1
  111. package/lib/table/module/filter/mixin.js +147 -118
  112. package/lib/table/module/filter/mixin.min.js +1 -1
  113. package/lib/table/module/filter/panel.js +86 -65
  114. package/lib/table/module/filter/panel.min.js +1 -1
  115. package/lib/table/module/keyboard/mixin.js +163 -151
  116. package/lib/table/module/keyboard/mixin.min.js +1 -1
  117. package/lib/table/module/menu/mixin.js +125 -114
  118. package/lib/table/module/menu/mixin.min.js +1 -1
  119. package/lib/table/module/menu/panel.js +36 -34
  120. package/lib/table/module/menu/panel.min.js +1 -1
  121. package/lib/table/module/validator/mixin.js +225 -214
  122. package/lib/table/module/validator/mixin.min.js +1 -1
  123. package/lib/table/render/index.js +401 -297
  124. package/lib/table/render/index.min.js +1 -1
  125. package/lib/table/src/body.js +411 -349
  126. package/lib/table/src/body.min.js +1 -1
  127. package/lib/table/src/cell.js +470 -344
  128. package/lib/table/src/cell.min.js +1 -1
  129. package/lib/table/src/column.js +10 -10
  130. package/lib/table/src/column.min.js +1 -1
  131. package/lib/table/src/columnInfo.js +46 -55
  132. package/lib/table/src/columnInfo.min.js +1 -1
  133. package/lib/table/src/footer.js +157 -132
  134. package/lib/table/src/footer.min.js +1 -1
  135. package/lib/table/src/group.js +1 -1
  136. package/lib/table/src/group.min.js +1 -1
  137. package/lib/table/src/header.js +170 -153
  138. package/lib/table/src/header.min.js +1 -1
  139. package/lib/table/src/methods.js +2758 -2478
  140. package/lib/table/src/methods.min.js +1 -1
  141. package/lib/table/src/props.js +33 -74
  142. package/lib/table/src/props.min.js +1 -1
  143. package/lib/table/src/table.js +465 -424
  144. package/lib/table/src/table.min.js +1 -1
  145. package/lib/table/src/util.js +143 -131
  146. package/lib/table/src/util.min.js +1 -1
  147. package/lib/table/style/style.css +37 -48
  148. package/lib/table/style/style.min.css +1 -1
  149. package/lib/toolbar/index.js +3 -3
  150. package/lib/toolbar/index.min.js +1 -1
  151. package/lib/toolbar/src/toolbar.js +332 -284
  152. package/lib/toolbar/src/toolbar.min.js +1 -1
  153. package/lib/toolbar/style/style.css +0 -1
  154. package/lib/toolbar/style/style.min.css +1 -1
  155. package/lib/ui/index.js +50 -41
  156. package/lib/ui/index.min.js +1 -1
  157. package/lib/ui/src/comp.js +2 -3
  158. package/lib/ui/src/comp.min.js +1 -1
  159. package/lib/ui/src/dom.js +29 -28
  160. package/lib/ui/src/dom.min.js +1 -1
  161. package/lib/ui/src/log.js +6 -4
  162. package/lib/ui/src/log.min.js +1 -1
  163. package/lib/ui/src/utils.js +7 -7
  164. package/lib/v-x-e-table/index.js +3 -4
  165. package/lib/v-x-e-table/index.min.js +1 -1
  166. package/lib/vxe-colgroup/index.js +3 -4
  167. package/lib/vxe-colgroup/index.min.js +1 -1
  168. package/lib/vxe-column/index.js +3 -4
  169. package/lib/vxe-column/index.min.js +1 -1
  170. package/lib/vxe-grid/index.js +3 -4
  171. package/lib/vxe-grid/index.min.js +1 -1
  172. package/lib/vxe-grid/style/style.css +0 -1
  173. package/lib/vxe-grid/style/style.min.css +1 -1
  174. package/lib/vxe-table/index.js +3 -4
  175. package/lib/vxe-table/index.min.js +1 -1
  176. package/lib/vxe-table/style/style.css +37 -48
  177. package/lib/vxe-table/style/style.min.css +1 -1
  178. package/lib/vxe-toolbar/index.js +3 -4
  179. package/lib/vxe-toolbar/index.min.js +1 -1
  180. package/lib/vxe-toolbar/style/style.css +0 -1
  181. package/lib/vxe-toolbar/style/style.min.css +1 -1
  182. package/lib/vxe-ui/index.js +3 -4
  183. package/lib/vxe-ui/index.min.js +1 -1
  184. package/lib/vxe-v-x-e-table/index.js +3 -4
  185. package/lib/vxe-v-x-e-table/index.min.js +1 -1
  186. package/package.json +5 -4
  187. package/packages/grid/src/grid.ts +127 -65
  188. package/packages/locale/lang/en-US.ts +2 -1
  189. package/packages/locale/lang/es-ES.ts +2 -1
  190. package/packages/locale/lang/hu-HU.ts +2 -1
  191. package/packages/locale/lang/ja-JP.ts +2 -1
  192. package/packages/locale/lang/ko-KR.ts +2 -1
  193. package/packages/locale/lang/pt-BR.ts +2 -1
  194. package/packages/locale/lang/ru-RU.ts +2 -1
  195. package/packages/locale/lang/uk-UA.ts +2 -1
  196. package/packages/locale/lang/vi-VN.ts +2 -1
  197. package/packages/locale/lang/zh-CHT.ts +2 -1
  198. package/packages/locale/lang/zh-CN.ts +2 -1
  199. package/packages/table/module/custom/panel.ts +186 -175
  200. package/packages/table/module/edit/mixin.ts +32 -23
  201. package/packages/table/module/export/export-panel.ts +36 -4
  202. package/packages/table/module/export/import-panel.ts +29 -6
  203. package/packages/table/module/export/mixin.ts +11 -11
  204. package/packages/table/module/menu/mixin.ts +2 -2
  205. package/packages/table/module/validator/mixin.ts +4 -4
  206. package/packages/table/render/index.ts +20 -11
  207. package/packages/table/src/body.ts +1 -0
  208. package/packages/table/src/columnInfo.ts +3 -3
  209. package/packages/table/src/methods.ts +53 -42
  210. package/packages/table/src/props.ts +68 -15
  211. package/packages/table/src/table.ts +99 -54
  212. package/packages/table/src/util.ts +3 -2
  213. package/packages/toolbar/src/toolbar.ts +21 -7
  214. package/packages/ui/index.ts +3 -1
  215. package/styles/components/table.scss +82 -17
  216. package/types/all.d.ts +1 -0
  217. /package/es/{iconfont.1726453742001.ttf → iconfont.1728348263835.ttf} +0 -0
  218. /package/es/{iconfont.1726453742001.woff → iconfont.1728348263835.woff} +0 -0
  219. /package/es/{iconfont.1726453742001.woff2 → iconfont.1728348263835.woff2} +0 -0
  220. /package/lib/{iconfont.1726453742001.ttf → iconfont.1728348263835.ttf} +0 -0
  221. /package/lib/{iconfont.1726453742001.woff → iconfont.1728348263835.woff} +0 -0
  222. /package/lib/{iconfont.1726453742001.woff2 → iconfont.1728348263835.woff2} +0 -0
@@ -27,16 +27,14 @@ var _mixin5 = _interopRequireDefault(require("../module/keyboard/mixin"));
27
27
  var _mixin6 = _interopRequireDefault(require("../module/validator/mixin"));
28
28
  var _mixin7 = _interopRequireDefault(require("../module/custom/mixin"));
29
29
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
30
- function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
31
- function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
32
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
33
- function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
34
- var getConfig = _ui.VxeUI.getConfig,
35
- getI18n = _ui.VxeUI.getI18n,
36
- renderer = _ui.VxeUI.renderer,
37
- globalResize = _ui.VxeUI.globalResize,
38
- globalEvents = _ui.VxeUI.globalEvents,
39
- globalMixins = _ui.VxeUI.globalMixins;
30
+ const {
31
+ getConfig,
32
+ getI18n,
33
+ renderer,
34
+ globalResize,
35
+ globalEvents,
36
+ globalMixins
37
+ } = _ui.VxeUI;
40
38
  /**
41
39
  * 渲染浮固定列
42
40
  * 分别渲染左边固定列和右边固定列
@@ -46,61 +44,65 @@ var getConfig = _ui.VxeUI.getConfig,
46
44
  * @param {String} fixedType 固定列类型
47
45
  */
48
46
  function renderFixed(h, $xetable, fixedType) {
49
- var _e = $xetable._e,
50
- tableData = $xetable.tableData,
51
- tableColumn = $xetable.tableColumn,
52
- tableGroupColumn = $xetable.tableGroupColumn,
53
- vSize = $xetable.vSize,
54
- showHeader = $xetable.showHeader,
55
- showFooter = $xetable.showFooter,
56
- columnStore = $xetable.columnStore,
57
- footerTableData = $xetable.footerTableData;
58
- var fixedColumn = columnStore["".concat(fixedType, "List")];
47
+ const {
48
+ _e,
49
+ tableData,
50
+ tableColumn,
51
+ tableGroupColumn,
52
+ vSize,
53
+ showHeader,
54
+ showFooter,
55
+ columnStore,
56
+ footerTableData
57
+ } = $xetable;
58
+ const fixedColumn = columnStore[`${fixedType}List`];
59
59
  return h('div', {
60
- class: "vxe-table--fixed-".concat(fixedType, "-wrapper"),
61
- ref: "".concat(fixedType, "Container")
60
+ class: `vxe-table--fixed-${fixedType}-wrapper`,
61
+ ref: `${fixedType}Container`
62
62
  }, [showHeader ? h(_header.default, {
63
63
  props: {
64
- fixedType: fixedType,
65
- tableData: tableData,
66
- tableColumn: tableColumn,
67
- tableGroupColumn: tableGroupColumn,
64
+ fixedType,
65
+ tableData,
66
+ tableColumn,
67
+ tableGroupColumn,
68
68
  size: vSize,
69
- fixedColumn: fixedColumn
69
+ fixedColumn
70
70
  },
71
- ref: "".concat(fixedType, "Header")
71
+ ref: `${fixedType}Header`
72
72
  }) : _e(), h(_body.default, {
73
73
  props: {
74
- fixedType: fixedType,
75
- tableData: tableData,
76
- tableColumn: tableColumn,
77
- fixedColumn: fixedColumn,
74
+ fixedType,
75
+ tableData,
76
+ tableColumn,
77
+ fixedColumn,
78
78
  size: vSize
79
79
  },
80
- ref: "".concat(fixedType, "Body")
80
+ ref: `${fixedType}Body`
81
81
  }), showFooter ? h(_footer.default, {
82
82
  props: {
83
- footerTableData: footerTableData,
84
- tableColumn: tableColumn,
85
- fixedColumn: fixedColumn,
86
- fixedType: fixedType,
83
+ footerTableData,
84
+ tableColumn,
85
+ fixedColumn,
86
+ fixedType,
87
87
  size: vSize
88
88
  },
89
- ref: "".concat(fixedType, "Footer")
89
+ ref: `${fixedType}Footer`
90
90
  }) : _e()]);
91
91
  }
92
92
  function renderEmptyContenet(h, _vm) {
93
- var $scopedSlots = _vm.$scopedSlots,
94
- emptyOpts = _vm.emptyOpts;
95
- var emptyContent = '';
96
- var params = {
93
+ const {
94
+ $scopedSlots,
95
+ emptyOpts
96
+ } = _vm;
97
+ let emptyContent = '';
98
+ const params = {
97
99
  $table: _vm
98
100
  };
99
101
  if ($scopedSlots.empty) {
100
102
  emptyContent = $scopedSlots.empty.call(_vm, params, h);
101
103
  } else {
102
- var compConf = emptyOpts.name ? renderer.get(emptyOpts.name) : null;
103
- var renderTableEmptyView = compConf ? compConf.renderTableEmptyView || compConf.renderEmpty : null;
104
+ const compConf = emptyOpts.name ? renderer.get(emptyOpts.name) : null;
105
+ const renderTableEmptyView = compConf ? compConf.renderTableEmptyView || compConf.renderEmpty : null;
104
106
  if (renderTableEmptyView) {
105
107
  emptyContent = (0, _vn.getSlotVNs)(renderTableEmptyView.call(_vm, h, emptyOpts, params));
106
108
  } else {
@@ -110,7 +112,9 @@ function renderEmptyContenet(h, _vm) {
110
112
  return emptyContent;
111
113
  }
112
114
  function handleUupdateResize(_vm) {
113
- var $el = _vm.$el;
115
+ const {
116
+ $el
117
+ } = _vm;
114
118
  if ($el && $el.clientWidth && $el.clientHeight) {
115
119
  _vm.recalculate();
116
120
  }
@@ -119,7 +123,7 @@ var _default = exports.default = {
119
123
  name: 'VxeTable',
120
124
  mixins: [globalMixins.sizeMixin, _mixin.default, _mixin2.default, _mixin3.default, _mixin4.default, _mixin5.default, _mixin6.default, _mixin7.default],
121
125
  props: _props.default,
122
- provide: function provide() {
126
+ provide() {
123
127
  return {
124
128
  $xetable: this,
125
129
  $xeTable: this,
@@ -127,6 +131,9 @@ var _default = exports.default = {
127
131
  };
128
132
  },
129
133
  inject: {
134
+ $xeTabs: {
135
+ default: null
136
+ },
130
137
  $xeGrid: {
131
138
  default: null
132
139
  },
@@ -134,9 +141,9 @@ var _default = exports.default = {
134
141
  default: null
135
142
  }
136
143
  },
137
- data: function data() {
144
+ data() {
138
145
  return {
139
- tId: "".concat(_xeUtils.default.uniqueId()),
146
+ tId: `${_xeUtils.default.uniqueId()}`,
140
147
  isCalcColumn: false,
141
148
  // 低性能的静态列
142
149
  staticColumns: [],
@@ -353,40 +360,42 @@ var _default = exports.default = {
353
360
  _isLoading: false
354
361
  };
355
362
  },
356
- computed: {
357
- tableId: function tableId() {
358
- var id = this.id;
363
+ computed: Object.assign(Object.assign({}, {}), {
364
+ tableId() {
365
+ const {
366
+ id
367
+ } = this;
359
368
  if (id) {
360
369
  if (_xeUtils.default.isFunction(id)) {
361
- return "".concat(id({
370
+ return `${id({
362
371
  $table: this
363
- }) || '');
372
+ }) || ''}`;
364
373
  }
365
- return "".concat(id);
374
+ return `${id}`;
366
375
  }
367
376
  return '';
368
377
  },
369
- validOpts: function validOpts() {
378
+ validOpts() {
370
379
  return this.computeValidOpts;
371
380
  },
372
- computeValidOpts: function computeValidOpts() {
381
+ computeValidOpts() {
373
382
  return Object.assign({
374
383
  message: 'default'
375
- }, getConfig().table.validConfig, this.validConfig);
384
+ }, _xeUtils.default.clone(getConfig().table.validConfig, true), this.validConfig);
376
385
  },
377
- sXOpts: function sXOpts() {
386
+ sXOpts() {
378
387
  return this.computeSXOpts;
379
388
  },
380
- computeSXOpts: function computeSXOpts() {
381
- return Object.assign({}, getConfig().table.scrollX, this.scrollX);
389
+ computeSXOpts() {
390
+ return Object.assign({}, _xeUtils.default.clone(getConfig().table.scrollX, true), this.scrollX);
382
391
  },
383
- sYOpts: function sYOpts() {
392
+ sYOpts() {
384
393
  return this.computeSYOpts;
385
394
  },
386
- computeSYOpts: function computeSYOpts() {
387
- return Object.assign({}, getConfig().table.scrollY, this.scrollY);
395
+ computeSYOpts() {
396
+ return Object.assign({}, _xeUtils.default.clone(getConfig().table.scrollY, true), this.scrollY);
388
397
  },
389
- rowHeightMaps: function rowHeightMaps() {
398
+ rowHeightMaps() {
390
399
  return {
391
400
  default: 48,
392
401
  medium: 44,
@@ -394,225 +403,227 @@ var _default = exports.default = {
394
403
  mini: 36
395
404
  };
396
405
  },
397
- columnOpts: function columnOpts() {
406
+ columnOpts() {
398
407
  return this.computeColumnOpts;
399
408
  },
400
- computeColumnOpts: function computeColumnOpts() {
401
- return Object.assign({}, getConfig().table.columnConfig, this.columnConfig);
409
+ computeColumnOpts() {
410
+ return Object.assign({}, _xeUtils.default.clone(getConfig().table.columnConfig, true), this.columnConfig);
402
411
  },
403
- rowOpts: function rowOpts() {
412
+ rowOpts() {
404
413
  return this.computeRowOpts;
405
414
  },
406
- computeRowOpts: function computeRowOpts() {
407
- return Object.assign({}, getConfig().table.rowConfig, this.rowConfig);
415
+ computeRowOpts() {
416
+ return Object.assign({}, _xeUtils.default.clone(getConfig().table.rowConfig, true), this.rowConfig);
408
417
  },
409
- resizeOpts: function resizeOpts() {
418
+ resizeOpts() {
410
419
  return this.computeResizeOpts;
411
420
  },
412
- computeResizeOpts: function computeResizeOpts() {
413
- return Object.assign({}, getConfig().table.resizeConfig, this.resizeConfig);
421
+ computeResizeOpts() {
422
+ return Object.assign({}, _xeUtils.default.clone(getConfig().table.resizeConfig, true), this.resizeConfig);
414
423
  },
415
- resizableOpts: function resizableOpts() {
424
+ resizableOpts() {
416
425
  return this.computeResizableOpts;
417
426
  },
418
- computeResizableOpts: function computeResizableOpts() {
419
- return Object.assign({}, getConfig().table.resizableConfig, this.resizableConfig);
427
+ computeResizableOpts() {
428
+ return Object.assign({}, _xeUtils.default.clone(getConfig().table.resizableConfig, true), this.resizableConfig);
420
429
  },
421
- seqOpts: function seqOpts() {
430
+ seqOpts() {
422
431
  return this.computeSeqOpts;
423
432
  },
424
- computeSeqOpts: function computeSeqOpts() {
433
+ computeSeqOpts() {
425
434
  return Object.assign({
426
435
  startIndex: 0
427
- }, getConfig().table.seqConfig, this.seqConfig);
436
+ }, _xeUtils.default.clone(getConfig().table.seqConfig, true), this.seqConfig);
428
437
  },
429
- radioOpts: function radioOpts() {
438
+ radioOpts() {
430
439
  return this.computeRadioOpts;
431
440
  },
432
- computeRadioOpts: function computeRadioOpts() {
433
- return Object.assign({}, getConfig().table.radioConfig, this.radioConfig);
441
+ computeRadioOpts() {
442
+ return Object.assign({}, _xeUtils.default.clone(getConfig().table.radioConfig, true), this.radioConfig);
434
443
  },
435
- checkboxOpts: function checkboxOpts() {
444
+ checkboxOpts() {
436
445
  return this.computeCheckboxOpts;
437
446
  },
438
- computeCheckboxOpts: function computeCheckboxOpts() {
439
- return Object.assign({}, getConfig().table.checkboxConfig, this.checkboxConfig);
447
+ computeCheckboxOpts() {
448
+ return Object.assign({}, _xeUtils.default.clone(getConfig().table.checkboxConfig, true), this.checkboxConfig);
440
449
  },
441
- tooltipOpts: function tooltipOpts() {
450
+ tooltipOpts() {
442
451
  return this.computeTooltipOpts;
443
452
  },
444
- computeTooltipOpts: function computeTooltipOpts() {
445
- return Object.assign({}, getConfig().tooltip, getConfig().table.tooltipConfig, this.tooltipConfig);
453
+ computeTooltipOpts() {
454
+ return Object.assign({}, _xeUtils.default.clone(getConfig().tooltip, true), _xeUtils.default.clone(getConfig().table.tooltipConfig, true), this.tooltipConfig);
446
455
  },
447
- tipConfig: function tipConfig() {
456
+ tipConfig() {
448
457
  return Object.assign({}, this.tooltipOpts);
449
458
  },
450
- validTipOpts: function validTipOpts() {
459
+ validTipOpts() {
451
460
  return Object.assign({
452
461
  isArrow: false
453
462
  }, this.tooltipOpts);
454
463
  },
455
- editOpts: function editOpts() {
464
+ editOpts() {
456
465
  return this.computeEditOpts;
457
466
  },
458
- computeEditOpts: function computeEditOpts() {
459
- return Object.assign({}, getConfig().table.editConfig, this.editConfig);
467
+ computeEditOpts() {
468
+ return Object.assign({}, _xeUtils.default.clone(getConfig().table.editConfig, true), this.editConfig);
460
469
  },
461
- sortOpts: function sortOpts() {
470
+ sortOpts() {
462
471
  return this.computeSortOpts;
463
472
  },
464
- computeSortOpts: function computeSortOpts() {
473
+ computeSortOpts() {
465
474
  return Object.assign({
466
475
  orders: ['asc', 'desc', null]
467
- }, getConfig().table.sortConfig, this.sortConfig);
476
+ }, _xeUtils.default.clone(getConfig().table.sortConfig, true), this.sortConfig);
468
477
  },
469
- filterOpts: function filterOpts() {
478
+ filterOpts() {
470
479
  return this.computeFilterOpts;
471
480
  },
472
- computeFilterOpts: function computeFilterOpts() {
473
- return Object.assign({}, getConfig().table.filterConfig, this.filterConfig);
481
+ computeFilterOpts() {
482
+ return Object.assign({}, _xeUtils.default.clone(getConfig().table.filterConfig, true), this.filterConfig);
474
483
  },
475
- mouseOpts: function mouseOpts() {
484
+ mouseOpts() {
476
485
  return this.computeMouseOpts;
477
486
  },
478
- computeMouseOpts: function computeMouseOpts() {
479
- return Object.assign({}, getConfig().table.mouseConfig, this.mouseConfig);
487
+ computeMouseOpts() {
488
+ return Object.assign({}, _xeUtils.default.clone(getConfig().table.mouseConfig, true), this.mouseConfig);
480
489
  },
481
- areaOpts: function areaOpts() {
490
+ areaOpts() {
482
491
  return this.computeAreaOpts;
483
492
  },
484
- computeAreaOpts: function computeAreaOpts() {
485
- return Object.assign({}, getConfig().table.areaConfig, this.areaConfig);
493
+ computeAreaOpts() {
494
+ return Object.assign({}, _xeUtils.default.clone(getConfig().table.areaConfig, true), this.areaConfig);
486
495
  },
487
- keyboardOpts: function keyboardOpts() {
496
+ keyboardOpts() {
488
497
  return this.computeKeyboardOpts;
489
498
  },
490
- computeKeyboardOpts: function computeKeyboardOpts() {
491
- return Object.assign({}, getConfig().table.keyboardConfig, this.keyboardConfig);
499
+ computeKeyboardOpts() {
500
+ return Object.assign({}, _xeUtils.default.clone(getConfig().table.keyboardConfig, true), this.keyboardConfig);
492
501
  },
493
- clipOpts: function clipOpts() {
502
+ clipOpts() {
494
503
  return this.computeClipOpts;
495
504
  },
496
- computeClipOpts: function computeClipOpts() {
497
- return Object.assign({}, getConfig().table.clipConfig, this.clipConfig);
505
+ computeClipOpts() {
506
+ return Object.assign({}, _xeUtils.default.clone(getConfig().table.clipConfig, true), this.clipConfig);
498
507
  },
499
- fnrOpts: function fnrOpts() {
508
+ fnrOpts() {
500
509
  return this.computeFNROpts;
501
510
  },
502
- computeFNROpts: function computeFNROpts() {
503
- return Object.assign({}, getConfig().table.fnrConfig, this.fnrConfig);
504
- },
505
- hasTip: function hasTip() {
506
- return true;
507
- // return VXETable._tooltip
511
+ computeFNROpts() {
512
+ return Object.assign({}, _xeUtils.default.clone(getConfig().table.fnrConfig, true), this.fnrConfig);
508
513
  },
509
- headerCtxMenu: function headerCtxMenu() {
510
- var headerOpts = this.ctxMenuOpts.header;
514
+ headerCtxMenu() {
515
+ const headerOpts = this.ctxMenuOpts.header;
511
516
  return headerOpts && headerOpts.options ? headerOpts.options : [];
512
517
  },
513
- bodyCtxMenu: function bodyCtxMenu() {
514
- var bodyOpts = this.ctxMenuOpts.body;
518
+ bodyCtxMenu() {
519
+ const bodyOpts = this.ctxMenuOpts.body;
515
520
  return bodyOpts && bodyOpts.options ? bodyOpts.options : [];
516
521
  },
517
- footerCtxMenu: function footerCtxMenu() {
518
- var footerOpts = this.ctxMenuOpts.footer;
522
+ footerCtxMenu() {
523
+ const footerOpts = this.ctxMenuOpts.footer;
519
524
  return footerOpts && footerOpts.options ? footerOpts.options : [];
520
525
  },
521
- isCtxMenu: function isCtxMenu() {
526
+ isCtxMenu() {
522
527
  return !!((this.contextMenu || this.menuConfig) && (0, _utils.isEnableConf)(this.ctxMenuOpts) && (this.headerCtxMenu.length || this.bodyCtxMenu.length || this.footerCtxMenu.length));
523
528
  },
524
- ctxMenuList: function ctxMenuList() {
525
- var rest = [];
526
- this.ctxMenuStore.list.forEach(function (list) {
527
- list.forEach(function (item) {
529
+ ctxMenuList() {
530
+ const rest = [];
531
+ this.ctxMenuStore.list.forEach(list => {
532
+ list.forEach(item => {
528
533
  rest.push(item);
529
534
  });
530
535
  });
531
536
  return rest;
532
537
  },
533
- ctxMenuOpts: function ctxMenuOpts() {
538
+ ctxMenuOpts() {
534
539
  return this.computeMenuOpts;
535
540
  },
536
- computeMenuOpts: function computeMenuOpts() {
537
- return Object.assign({}, getConfig().table.menuConfig, this.contextMenu, this.menuConfig);
541
+ computeMenuOpts() {
542
+ return Object.assign({}, _xeUtils.default.clone(getConfig().table.menuConfig, true), this.contextMenu, this.menuConfig);
538
543
  },
539
- exportOpts: function exportOpts() {
544
+ exportOpts() {
540
545
  return this.computeExportOpts;
541
546
  },
542
- computeExportOpts: function computeExportOpts() {
543
- return Object.assign({}, getConfig().table.exportConfig, this.exportConfig);
547
+ computeExportOpts() {
548
+ return Object.assign({}, _xeUtils.default.clone(getConfig().table.exportConfig, true), this.exportConfig);
544
549
  },
545
- importOpts: function importOpts() {
550
+ importOpts() {
546
551
  return this.computeImportOpts;
547
552
  },
548
- computeImportOpts: function computeImportOpts() {
549
- return Object.assign({}, getConfig().table.importConfig, this.importConfig);
553
+ computeImportOpts() {
554
+ return Object.assign({}, _xeUtils.default.clone(getConfig().table.importConfig, true), this.importConfig);
550
555
  },
551
- printOpts: function printOpts() {
556
+ printOpts() {
552
557
  return this.computePrintOpts;
553
558
  },
554
- computePrintOpts: function computePrintOpts() {
555
- return Object.assign({}, getConfig().table.printConfig, this.printConfig);
559
+ computePrintOpts() {
560
+ return Object.assign({}, _xeUtils.default.clone(getConfig().table.printConfig, true), this.printConfig);
556
561
  },
557
- expandOpts: function expandOpts() {
562
+ expandOpts() {
558
563
  return this.computeExpandOpts;
559
564
  },
560
- computeExpandOpts: function computeExpandOpts() {
561
- return Object.assign({}, getConfig().table.expandConfig, this.expandConfig);
565
+ computeExpandOpts() {
566
+ return Object.assign({}, _xeUtils.default.clone(getConfig().table.expandConfig, true), this.expandConfig);
562
567
  },
563
- treeOpts: function treeOpts() {
568
+ treeOpts() {
564
569
  return this.computeTreeOpts;
565
570
  },
566
- computeTreeOpts: function computeTreeOpts() {
567
- return Object.assign({}, getConfig().table.treeConfig, this.treeConfig);
571
+ computeTreeOpts() {
572
+ return Object.assign({}, _xeUtils.default.clone(getConfig().table.treeConfig, true), this.treeConfig);
568
573
  },
569
- emptyOpts: function emptyOpts() {
574
+ emptyOpts() {
570
575
  return this.computeEmptyOpts;
571
576
  },
572
- computeEmptyOpts: function computeEmptyOpts() {
573
- return Object.assign({}, getConfig().table.emptyRender, this.emptyRender);
577
+ computeEmptyOpts() {
578
+ return Object.assign({}, _xeUtils.default.clone(getConfig().table.emptyRender, true), this.emptyRender);
574
579
  },
575
- loadingOpts: function loadingOpts() {
580
+ loadingOpts() {
576
581
  return this.computeLoadingOpts;
577
582
  },
578
- computeLoadingOpts: function computeLoadingOpts() {
579
- return Object.assign({}, getConfig().table.loadingConfig, this.loadingConfig);
583
+ computeLoadingOpts() {
584
+ return Object.assign({}, _xeUtils.default.clone(getConfig().table.loadingConfig, true), this.loadingConfig);
580
585
  },
581
- cellOffsetWidth: function cellOffsetWidth() {
586
+ cellOffsetWidth() {
582
587
  return this.border ? Math.max(2, Math.ceil(this.scrollbarWidth / this.tableColumn.length)) : 1;
583
588
  },
584
- customOpts: function customOpts() {
589
+ customOpts() {
585
590
  return this.computeCustomOpts;
586
591
  },
587
- computeCustomOpts: function computeCustomOpts() {
588
- return Object.assign({}, getConfig().table.customConfig, this.customConfig);
589
- },
590
- autoWidthColumnList: function autoWidthColumnList() {
591
- var tableColumn = this.tableColumn,
592
- visibleColumn = this.visibleColumn;
593
- return tableColumn.length || visibleColumn.length ? visibleColumn.filter(function (column) {
594
- return column.width === 'auto' || column.minWidth === 'auto';
595
- }) : [];
596
- },
597
- fixedColumnSize: function fixedColumnSize() {
598
- var collectColumn = this.collectColumn;
599
- var fixedSize = 0;
600
- collectColumn.forEach(function (column) {
592
+ computeCustomOpts() {
593
+ return Object.assign({}, _xeUtils.default.clone(getConfig().table.customConfig, true), this.customConfig);
594
+ },
595
+ autoWidthColumnList() {
596
+ const {
597
+ tableColumn,
598
+ visibleColumn
599
+ } = this;
600
+ return tableColumn.length || visibleColumn.length ? visibleColumn.filter(column => column.width === 'auto' || column.minWidth === 'auto') : [];
601
+ },
602
+ fixedColumnSize() {
603
+ const {
604
+ collectColumn
605
+ } = this;
606
+ let fixedSize = 0;
607
+ collectColumn.forEach(column => {
601
608
  if (column.renderFixed) {
602
609
  fixedSize++;
603
610
  }
604
611
  });
605
612
  return fixedSize;
606
613
  },
607
- isMaxFixedColumn: function isMaxFixedColumn() {
608
- var maxFixedSize = this.columnOpts.maxFixedSize;
614
+ isMaxFixedColumn() {
615
+ const {
616
+ maxFixedSize
617
+ } = this.columnOpts;
609
618
  if (maxFixedSize) {
610
619
  return this.fixedColumnSize >= maxFixedSize;
611
620
  }
612
621
  return false;
613
622
  },
614
- tableBorder: function tableBorder() {
615
- var border = this.border;
623
+ tableBorder() {
624
+ const {
625
+ border
626
+ } = this;
616
627
  if (border === true) {
617
628
  return 'full';
618
629
  }
@@ -624,13 +635,17 @@ var _default = exports.default = {
624
635
  /**
625
636
  * 判断列全选的复选框是否禁用
626
637
  */
627
- isAllCheckboxDisabled: function isAllCheckboxDisabled() {
628
- var tableFullData = this.tableFullData,
629
- tableData = this.tableData,
630
- treeConfig = this.treeConfig,
631
- checkboxOpts = this.checkboxOpts;
632
- var strict = checkboxOpts.strict,
633
- checkMethod = checkboxOpts.checkMethod;
638
+ isAllCheckboxDisabled() {
639
+ const {
640
+ tableFullData,
641
+ tableData,
642
+ treeConfig,
643
+ checkboxOpts
644
+ } = this;
645
+ const {
646
+ strict,
647
+ checkMethod
648
+ } = checkboxOpts;
634
649
  if (strict) {
635
650
  if (tableData.length || tableFullData.length) {
636
651
  if (checkMethod) {
@@ -638,176 +653,156 @@ var _default = exports.default = {
638
653
  // 暂时不支持树形结构
639
654
  }
640
655
  // 如果所有行都被禁用
641
- return tableFullData.every(function (row) {
642
- return !checkMethod({
643
- row: row
644
- });
645
- });
656
+ return tableFullData.every(row => !checkMethod({
657
+ row
658
+ }));
646
659
  }
647
660
  return false;
648
661
  }
649
662
  return true;
650
663
  }
651
664
  return false;
665
+ },
666
+ tabsResizeFlag() {
667
+ const $xeTable = this;
668
+ const $xeTabs = $xeTable.$xeTabs;
669
+ return $xeTabs ? $xeTabs.reactData.resizeFlag : null;
652
670
  }
653
- },
671
+ }),
654
672
  watch: {
655
- data: function data(value) {
656
- var _this = this;
657
- var inited = this.inited,
658
- initStatus = this.initStatus;
659
- this.loadTableData(value).then(function () {
660
- _this.inited = true;
661
- _this.initStatus = true;
673
+ data(value) {
674
+ const {
675
+ inited,
676
+ initStatus
677
+ } = this;
678
+ this.loadTableData(value).then(() => {
679
+ this.inited = true;
680
+ this.initStatus = true;
662
681
  if (!initStatus) {
663
- _this.handleLoadDefaults();
682
+ this.handleLoadDefaults();
664
683
  }
665
684
  if (!inited) {
666
- _this.handleInitDefaults();
685
+ this.handleInitDefaults();
667
686
  }
668
687
  // const checkboxColumn = this.tableFullColumn.find(column => column.type === 'checkbox')
669
688
  // if (checkboxColumn && this.tableFullData.length > 300 && !this.checkboxOpts.checkField) {
670
689
  // warnLog('vxe.error.checkProp', ['checkbox-config.checkField'])
671
690
  // }
672
- if ((_this.scrollXLoad || _this.scrollYLoad) && _this.expandColumn) {
691
+ if ((this.scrollXLoad || this.scrollYLoad) && this.expandColumn) {
673
692
  (0, _log.warnLog)('vxe.error.scrollErrProp', ['column.type=expand']);
674
693
  }
675
- _this.recalculate();
694
+ this.recalculate();
676
695
  });
677
696
  },
678
- staticColumns: function staticColumns(value) {
697
+ staticColumns(value) {
679
698
  this.handleColumn(value);
680
699
  },
681
- tableColumn: function tableColumn() {
700
+ tableColumn() {
682
701
  this.analyColumnWidth();
683
702
  },
684
- upDataFlag: function upDataFlag() {
685
- var _this2 = this;
686
- this.$nextTick().then(function () {
687
- return _this2.updateData();
688
- });
703
+ upDataFlag() {
704
+ this.$nextTick().then(() => this.updateData());
689
705
  },
690
- reColumnFlag: function reColumnFlag() {
691
- var _this3 = this;
692
- this.$nextTick().then(function () {
693
- return _this3.refreshColumn();
694
- });
706
+ reColumnFlag() {
707
+ this.$nextTick().then(() => this.refreshColumn());
695
708
  },
696
- showHeader: function showHeader() {
697
- var _this4 = this;
698
- this.$nextTick(function () {
699
- _this4.recalculate(true).then(function () {
700
- return _this4.refreshScroll();
701
- });
709
+ showHeader() {
710
+ this.$nextTick(() => {
711
+ this.recalculate(true).then(() => this.refreshScroll());
702
712
  });
703
713
  },
704
- showFooter: function showFooter() {
705
- var _this5 = this;
706
- this.$nextTick(function () {
707
- _this5.recalculate(true).then(function () {
708
- return _this5.refreshScroll();
709
- });
714
+ showFooter() {
715
+ this.$nextTick(() => {
716
+ this.recalculate(true).then(() => this.refreshScroll());
710
717
  });
711
718
  },
712
- height: function height() {
713
- var _this6 = this;
714
- this.$nextTick(function () {
715
- return _this6.recalculate(true);
716
- });
719
+ height() {
720
+ this.$nextTick(() => this.recalculate(true));
717
721
  },
718
- maxHeight: function maxHeight() {
719
- var _this7 = this;
720
- this.$nextTick(function () {
721
- return _this7.recalculate(true);
722
- });
722
+ maxHeight() {
723
+ this.$nextTick(() => this.recalculate(true));
723
724
  },
724
- syncResize: function syncResize(value) {
725
- var _this8 = this;
725
+ syncResize(value) {
726
726
  if (value) {
727
727
  handleUupdateResize(this);
728
- this.$nextTick(function () {
729
- handleUupdateResize(_this8);
730
- setTimeout(function () {
731
- return handleUupdateResize(_this8);
732
- });
728
+ this.$nextTick(() => {
729
+ handleUupdateResize(this);
730
+ setTimeout(() => handleUupdateResize(this));
733
731
  });
734
732
  }
735
733
  },
736
- mergeCells: function mergeCells(value) {
737
- var _this9 = this;
734
+ tabsResizeFlag() {
735
+ this.handleGlobalResizeEvent();
736
+ },
737
+ mergeCells(value) {
738
738
  this.clearMergeCells();
739
- this.$nextTick(function () {
740
- return _this9.setMergeCells(value);
741
- });
739
+ this.$nextTick(() => this.setMergeCells(value));
742
740
  },
743
- mergeFooterItems: function mergeFooterItems(value) {
744
- var _this10 = this;
741
+ mergeFooterItems(value) {
745
742
  this.clearMergeFooterItems();
746
- this.$nextTick(function () {
747
- return _this10.setMergeFooterItems(value);
748
- });
743
+ this.$nextTick(() => this.setMergeFooterItems(value));
749
744
  }
750
745
  },
751
- created: function created() {
752
- var _this11 = this;
753
- var _Object$assign = Object.assign(this, {
754
- tZindex: 0,
755
- elemStore: {},
756
- // 存放横向 X 虚拟滚动相关的信息
757
- scrollXStore: {},
758
- // 存放纵向 Y 虚拟滚动相关信息
759
- scrollYStore: {},
760
- // 表格宽度
761
- tableWidth: 0,
762
- // 表格高度
763
- tableHeight: 0,
764
- // 表头高度
765
- headerHeight: 0,
766
- // 表尾高度
767
- footerHeight: 0,
768
- // 当前 hover 行
769
- // hoverRow: null,
770
- // 最后滚动位置
771
- lastScrollLeft: 0,
772
- lastScrollTop: 0,
773
- // 单选框属性,已选中保留的行
774
- radioReserveRow: null,
775
- // 复选框属性,已选中保留的行
776
- checkboxReserveRowMap: {},
777
- // 行数据,已展开保留的行
778
- rowExpandedReserveRowMap: {},
779
- // 树结构数据,已展开保留的行
780
- treeExpandedReserveRowMap: {},
781
- // 完整数据、条件处理后
782
- tableFullData: [],
783
- afterFullData: [],
784
- // 列表条件处理后数据集合
785
- afterFullRowMaps: {},
786
- // 收集的列配置(带分组)
787
- collectColumn: [],
788
- // 完整所有列(不带分组)
789
- tableFullColumn: [],
790
- // 渲染所有列
791
- visibleColumn: [],
792
- // 缓存数据集
793
- fullAllDataRowMap: new Map(),
794
- fullAllDataRowIdData: {},
795
- fullDataRowMap: new Map(),
796
- fullDataRowIdData: {},
797
- fullColumnMap: new Map(),
798
- fullColumnIdData: {},
799
- fullColumnFieldData: {}
800
- }),
801
- scrollXStore = _Object$assign.scrollXStore,
802
- sYOpts = _Object$assign.sYOpts,
803
- scrollYStore = _Object$assign.scrollYStore,
804
- data = _Object$assign.data,
805
- editOpts = _Object$assign.editOpts,
806
- treeOpts = _Object$assign.treeOpts,
807
- treeConfig = _Object$assign.treeConfig,
808
- showOverflow = _Object$assign.showOverflow,
809
- rowOpts = _Object$assign.rowOpts;
810
- if (process.env.VUE_APP_VXE_TABLE_ENV === 'development') {
746
+ created() {
747
+ const {
748
+ scrollXStore,
749
+ sYOpts,
750
+ scrollYStore,
751
+ data,
752
+ editOpts,
753
+ treeOpts,
754
+ treeConfig,
755
+ showOverflow,
756
+ rowOpts
757
+ } = Object.assign(this, {
758
+ tZindex: 0,
759
+ elemStore: {},
760
+ // 存放横向 X 虚拟滚动相关的信息
761
+ scrollXStore: {},
762
+ // 存放纵向 Y 虚拟滚动相关信息
763
+ scrollYStore: {},
764
+ // 表格宽度
765
+ tableWidth: 0,
766
+ // 表格高度
767
+ tableHeight: 0,
768
+ // 表头高度
769
+ headerHeight: 0,
770
+ // 表尾高度
771
+ footerHeight: 0,
772
+ // 当前 hover 行
773
+ // hoverRow: null,
774
+ // 最后滚动位置
775
+ lastScrollLeft: 0,
776
+ lastScrollTop: 0,
777
+ // 单选框属性,已选中保留的行
778
+ radioReserveRow: null,
779
+ // 复选框属性,已选中保留的行
780
+ checkboxReserveRowMap: {},
781
+ // 行数据,已展开保留的行
782
+ rowExpandedReserveRowMap: {},
783
+ // 树结构数据,已展开保留的行
784
+ treeExpandedReserveRowMap: {},
785
+ // 完整数据、条件处理后
786
+ tableFullData: [],
787
+ afterFullData: [],
788
+ // 列表条件处理后数据集合
789
+ afterFullRowMaps: {},
790
+ // 收集的列配置(带分组)
791
+ collectColumn: [],
792
+ // 完整所有列(不带分组)
793
+ tableFullColumn: [],
794
+ // 渲染所有列
795
+ visibleColumn: [],
796
+ // 缓存数据集
797
+ fullAllDataRowMap: new Map(),
798
+ fullAllDataRowIdData: {},
799
+ fullDataRowMap: new Map(),
800
+ fullDataRowIdData: {},
801
+ fullColumnMap: new Map(),
802
+ fullColumnIdData: {},
803
+ fullColumnFieldData: {}
804
+ });
805
+ if (process.env.NODE_ENV === 'development') {
811
806
  if (this.rowId) {
812
807
  (0, _log.warnLog)('vxe.error.delProp', ['row-id', 'row-config.keyField']);
813
808
  }
@@ -848,23 +843,21 @@ var _default = exports.default = {
848
843
  // warnLog('vxe.error.delProp', ['highlight-hover-column', 'column-config.isHover'])
849
844
  // }
850
845
  // 检查导入导出类型,如果自定义导入导出方法,则不校验类型
851
- var exportConfig = this.exportConfig,
852
- exportOpts = this.exportOpts,
853
- importConfig = this.importConfig,
854
- importOpts = this.importOpts;
846
+ const {
847
+ exportConfig,
848
+ exportOpts,
849
+ importConfig,
850
+ importOpts
851
+ } = this;
855
852
  if (importConfig && importOpts.types && !importOpts.importMethod && !_xeUtils.default.includeArrays(_xeUtils.default.keys(importOpts._typeMaps), importOpts.types)) {
856
- (0, _log.warnLog)('vxe.error.errProp', ["export-config.types=".concat(importOpts.types.join(',')), importOpts.types.filter(function (type) {
857
- return _xeUtils.default.includes(_xeUtils.default.keys(importOpts._typeMaps), type);
858
- }).join(',') || _xeUtils.default.keys(importOpts._typeMaps).join(',')]);
853
+ (0, _log.warnLog)('vxe.error.errProp', [`export-config.types=${importOpts.types.join(',')}`, importOpts.types.filter(type => _xeUtils.default.includes(_xeUtils.default.keys(importOpts._typeMaps), type)).join(',') || _xeUtils.default.keys(importOpts._typeMaps).join(',')]);
859
854
  }
860
855
  if (exportConfig && exportOpts.types && !exportOpts.exportMethod && !_xeUtils.default.includeArrays(_xeUtils.default.keys(exportOpts._typeMaps), exportOpts.types)) {
861
- (0, _log.warnLog)('vxe.error.errProp', ["export-config.types=".concat(exportOpts.types.join(',')), exportOpts.types.filter(function (type) {
862
- return _xeUtils.default.includes(_xeUtils.default.keys(exportOpts._typeMaps), type);
863
- }).join(',') || _xeUtils.default.keys(exportOpts._typeMaps).join(',')]);
856
+ (0, _log.warnLog)('vxe.error.errProp', [`export-config.types=${exportOpts.types.join(',')}`, exportOpts.types.filter(type => _xeUtils.default.includes(_xeUtils.default.keys(exportOpts._typeMaps), type)).join(',') || _xeUtils.default.keys(exportOpts._typeMaps).join(',')]);
864
857
  }
865
858
  }
866
- if (process.env.VUE_APP_VXE_TABLE_ENV === 'development') {
867
- var customOpts = this.customOpts;
859
+ if (process.env.NODE_ENV === 'development') {
860
+ const customOpts = this.customOpts;
868
861
  if (!this.id && this.customConfig && (customOpts.storage === true || customOpts.storage && customOpts.storage.resizable || customOpts.storage && customOpts.storage.visible)) {
869
862
  (0, _log.errLog)('vxe.error.reqProp', ['id']);
870
863
  }
@@ -903,37 +896,37 @@ var _default = exports.default = {
903
896
  }
904
897
  }
905
898
  // v4 中只支持对象类型
906
- if (process.env.VUE_APP_VXE_TABLE_ENV === 'development') {
899
+ if (process.env.NODE_ENV === 'development') {
907
900
  // 在 v3.0 中废弃 context-menu
908
901
  if (this.contextMenu) {
909
902
  (0, _log.warnLog)('vxe.error.delProp', ['context-menu', 'menu-config']);
910
903
  if (!_xeUtils.default.isObject(this.contextMenu)) {
911
- (0, _log.warnLog)('vxe.error.errProp', ["table.context-menu=".concat(this.contextMenu), 'table.context-menu={}']);
904
+ (0, _log.warnLog)('vxe.error.errProp', [`table.context-menu=${this.contextMenu}`, 'table.context-menu={}']);
912
905
  }
913
906
  }
914
907
  if (this.menuConfig && !_xeUtils.default.isObject(this.menuConfig)) {
915
- (0, _log.warnLog)('vxe.error.errProp', ["table.menu-config=".concat(this.menuConfig), 'table.menu-config={}']);
908
+ (0, _log.warnLog)('vxe.error.errProp', [`table.menu-config=${this.menuConfig}`, 'table.menu-config={}']);
916
909
  }
917
910
  if (this.exportConfig && !_xeUtils.default.isObject(this.exportConfig)) {
918
- (0, _log.warnLog)('vxe.error.errProp', ["table.export-config=".concat(this.exportConfig), 'table.export-config={}']);
911
+ (0, _log.warnLog)('vxe.error.errProp', [`table.export-config=${this.exportConfig}`, 'table.export-config={}']);
919
912
  }
920
913
  if (this.importConfig && !_xeUtils.default.isObject(this.importConfig)) {
921
- (0, _log.warnLog)('vxe.error.errProp', ["table.import-config=".concat(this.importConfig), 'table.import-config={}']);
914
+ (0, _log.warnLog)('vxe.error.errProp', [`table.import-config=${this.importConfig}`, 'table.import-config={}']);
922
915
  }
923
916
  if (this.printConfig && !_xeUtils.default.isObject(this.printConfig)) {
924
- (0, _log.warnLog)('vxe.error.errProp', ["table.print-config=".concat(this.printConfig), 'table.print-config={}']);
917
+ (0, _log.warnLog)('vxe.error.errProp', [`table.print-config=${this.printConfig}`, 'table.print-config={}']);
925
918
  }
926
919
  if (this.treeConfig && !_xeUtils.default.isObject(this.treeConfig)) {
927
- (0, _log.warnLog)('vxe.error.errProp', ["table.tree-config=".concat(this.treeConfig), 'table.tree-config={}']);
920
+ (0, _log.warnLog)('vxe.error.errProp', [`table.tree-config=${this.treeConfig}`, 'table.tree-config={}']);
928
921
  }
929
922
  if (this.customConfig && !_xeUtils.default.isObject(this.customConfig)) {
930
- (0, _log.warnLog)('vxe.error.errProp', ["table.custom-config=".concat(this.customConfig), 'table.custom-config={}']);
923
+ (0, _log.warnLog)('vxe.error.errProp', [`table.custom-config=${this.customConfig}`, 'table.custom-config={}']);
931
924
  }
932
925
  if (this.editConfig && !_xeUtils.default.isObject(this.editConfig)) {
933
- (0, _log.warnLog)('vxe.error.errProp', ["table.edit-config=".concat(this.editConfig), 'table.edit-config={}']);
926
+ (0, _log.warnLog)('vxe.error.errProp', [`table.edit-config=${this.editConfig}`, 'table.edit-config={}']);
934
927
  }
935
928
  if (this.emptyRender && !_xeUtils.default.isObject(this.emptyRender)) {
936
- (0, _log.warnLog)('vxe.error.errProp', ["table.empty-render=".concat(this.emptyRender), 'table.empty-render={}']);
929
+ (0, _log.warnLog)('vxe.error.errProp', [`table.empty-render=${this.emptyRender}`, 'table.empty-render={}']);
937
930
  }
938
931
  if (this.editConfig && this.editOpts.activeMethod) {
939
932
  (0, _log.warnLog)('vxe.error.delProp', ['table.edit-config.activeMethod', 'table.edit-config.beforeEditMethod']);
@@ -946,7 +939,7 @@ var _default = exports.default = {
946
939
  }
947
940
  }
948
941
  // 检查是否有安装需要的模块
949
- if (process.env.VUE_APP_VXE_TABLE_ENV === 'development') {
942
+ if (process.env.NODE_ENV === 'development') {
950
943
  if (this.editConfig && !this._insert) {
951
944
  (0, _log.errLog)('vxe.error.reqModule', ['Edit']);
952
945
  }
@@ -971,14 +964,14 @@ var _default = exports.default = {
971
964
  endIndex: 1,
972
965
  visibleSize: 0
973
966
  });
974
- this.loadTableData(data).then(function () {
967
+ this.loadTableData(data).then(() => {
975
968
  if (data && data.length) {
976
- _this11.inited = true;
977
- _this11.initStatus = true;
978
- _this11.handleLoadDefaults();
979
- _this11.handleInitDefaults();
969
+ this.inited = true;
970
+ this.initStatus = true;
971
+ this.handleLoadDefaults();
972
+ this.handleInitDefaults();
980
973
  }
981
- _this11.updateStyle();
974
+ this.updateStyle();
982
975
  });
983
976
  globalEvents.on(this, 'paste', this.handleGlobalPasteEvent);
984
977
  globalEvents.on(this, 'copy', this.handleGlobalCopyEvent);
@@ -991,10 +984,13 @@ var _default = exports.default = {
991
984
  globalEvents.on(this, 'contextmenu', this.handleGlobalContextmenuEvent);
992
985
  this.preventEvent(null, 'created');
993
986
  },
994
- mounted: function mounted() {
995
- var _this12 = this;
996
- if (process.env.VUE_APP_VXE_TABLE_ENV === 'development') {
997
- var $listeners = this.$listeners;
987
+ mounted() {
988
+ const $xeTable = this;
989
+ const props = $xeTable;
990
+ if (process.env.NODE_ENV === 'development') {
991
+ const {
992
+ $listeners
993
+ } = this;
998
994
  if (!this.menuConfig && ($listeners['menu-click'] || $listeners['cell-menu'] || $listeners['header-cell-menu'] || $listeners['footer-cell-menu'])) {
999
995
  (0, _log.warnLog)('vxe.error.reqProp', ['menu-config']);
1000
996
  }
@@ -1002,20 +998,35 @@ var _default = exports.default = {
1002
998
  (0, _log.warnLog)('vxe.error.reqProp', ['tooltip-config']);
1003
999
  }
1004
1000
  }
1001
+ if (process.env.NODE_ENV === 'development') {
1002
+ // 使用已安装的组件,如果未安装则不渲染
1003
+ const VxeUILoadingComponent = _ui.VxeUI.getComponent('VxeLoading');
1004
+ const VxeUITooltipComponent = _ui.VxeUI.getComponent('VxeTooltip');
1005
+ $xeTable.$nextTick(() => {
1006
+ if (props.loading) {
1007
+ if (!VxeUILoadingComponent) {
1008
+ (0, _log.errLog)('vxe.error.reqComp', ['vxe-loading']);
1009
+ }
1010
+ }
1011
+ if (props.showOverflow === true || props.showOverflow === 'tooltip' || props.showHeaderOverflow === true || props.showHeaderOverflow === 'tooltip' || props.showFooterOverflow === true || props.showFooterOverflow === 'tooltip' || props.tooltipConfig || props.editRules) {
1012
+ if (!VxeUITooltipComponent) {
1013
+ (0, _log.errLog)('vxe.error.reqComp', ['vxe-tooltip']);
1014
+ }
1015
+ }
1016
+ });
1017
+ }
1005
1018
  if (this.autoResize) {
1006
- var handleWrapperResize = this.resizeOpts.refreshDelay ? _xeUtils.default.throttle(function () {
1007
- return _this12.recalculate(true);
1008
- }, this.resizeOpts.refreshDelay, {
1019
+ const handleWrapperResize = this.resizeOpts.refreshDelay ? _xeUtils.default.throttle(() => this.recalculate(true), this.resizeOpts.refreshDelay, {
1009
1020
  leading: true,
1010
1021
  trailing: true
1011
1022
  }) : null;
1012
- var resizeObserver = globalResize.create(handleWrapperResize ? function () {
1013
- if (_this12.autoResize) {
1014
- requestAnimationFrame(handleWrapperResize);
1023
+ const resizeObserver = globalResize.create(handleWrapperResize ? () => {
1024
+ if (this.autoResize) {
1025
+ handleWrapperResize();
1015
1026
  }
1016
- } : function () {
1017
- if (_this12.autoResize) {
1018
- _this12.recalculate(true);
1027
+ } : () => {
1028
+ if (this.autoResize) {
1029
+ this.recalculate(true);
1019
1030
  }
1020
1031
  });
1021
1032
  resizeObserver.observe(this.$el);
@@ -1024,17 +1035,14 @@ var _default = exports.default = {
1024
1035
  }
1025
1036
  this.preventEvent(null, 'mounted');
1026
1037
  },
1027
- activated: function activated() {
1028
- var _this13 = this;
1029
- this.recalculate().then(function () {
1030
- return _this13.refreshScroll();
1031
- });
1038
+ activated() {
1039
+ this.recalculate().then(() => this.refreshScroll());
1032
1040
  this.preventEvent(null, 'activated');
1033
1041
  },
1034
- deactivated: function deactivated() {
1042
+ deactivated() {
1035
1043
  this.preventEvent(null, 'deactivated');
1036
1044
  },
1037
- beforeDestroy: function beforeDestroy() {
1045
+ beforeDestroy() {
1038
1046
  if (this.$resize) {
1039
1047
  this.$resize.disconnect();
1040
1048
  }
@@ -1042,7 +1050,7 @@ var _default = exports.default = {
1042
1050
  this.closeMenu();
1043
1051
  this.preventEvent(null, 'beforeDestroy');
1044
1052
  },
1045
- destroyed: function destroyed() {
1053
+ destroyed() {
1046
1054
  globalEvents.off(this, 'paste');
1047
1055
  globalEvents.off(this, 'copy');
1048
1056
  globalEvents.off(this, 'cut');
@@ -1054,56 +1062,89 @@ var _default = exports.default = {
1054
1062
  globalEvents.off(this, 'contextmenu');
1055
1063
  this.preventEvent(null, 'destroyed');
1056
1064
  },
1057
- render: function render(h) {
1058
- var _ref;
1059
- var _e = this._e,
1060
- $scopedSlots = this.$scopedSlots,
1061
- tId = this.tId,
1062
- isCalcColumn = this.isCalcColumn,
1063
- tableData = this.tableData,
1064
- tableColumn = this.tableColumn,
1065
- tableGroupColumn = this.tableGroupColumn,
1066
- isGroup = this.isGroup,
1067
- loading = this.loading,
1068
- stripe = this.stripe,
1069
- showHeader = this.showHeader,
1070
- height = this.height,
1071
- tableBorder = this.tableBorder,
1072
- treeOpts = this.treeOpts,
1073
- treeConfig = this.treeConfig,
1074
- mouseConfig = this.mouseConfig,
1075
- mouseOpts = this.mouseOpts,
1076
- vSize = this.vSize,
1077
- validOpts = this.validOpts,
1078
- showFooter = this.showFooter,
1079
- overflowX = this.overflowX,
1080
- overflowY = this.overflowY,
1081
- scrollXLoad = this.scrollXLoad,
1082
- scrollYLoad = this.scrollYLoad,
1083
- scrollbarHeight = this.scrollbarHeight,
1084
- highlightCell = this.highlightCell,
1085
- highlightHoverRow = this.highlightHoverRow,
1086
- highlightHoverColumn = this.highlightHoverColumn,
1087
- editConfig = this.editConfig,
1088
- validTipOpts = this.validTipOpts,
1089
- initStore = this.initStore,
1090
- columnStore = this.columnStore,
1091
- filterStore = this.filterStore,
1092
- customStore = this.customStore,
1093
- ctxMenuStore = this.ctxMenuStore,
1094
- ctxMenuOpts = this.ctxMenuOpts,
1095
- footerTableData = this.footerTableData,
1096
- hasTip = this.hasTip,
1097
- columnOpts = this.columnOpts,
1098
- rowOpts = this.rowOpts,
1099
- checkboxOpts = this.checkboxOpts,
1100
- loadingOpts = this.loadingOpts,
1101
- editRules = this.editRules;
1102
- var leftList = columnStore.leftList,
1103
- rightList = columnStore.rightList;
1104
- var currLoading = this._isLoading || loading;
1065
+ render(h) {
1066
+ // 使用已安装的组件,如果未安装则不渲染
1067
+ const VxeUILoadingComponent = _ui.VxeUI.getComponent('VxeLoading');
1068
+ const VxeUITooltipComponent = _ui.VxeUI.getComponent('VxeTooltip');
1069
+ const {
1070
+ _e,
1071
+ $scopedSlots,
1072
+ tId,
1073
+ isCalcColumn,
1074
+ tableData,
1075
+ tableColumn,
1076
+ tableGroupColumn,
1077
+ isGroup,
1078
+ loading,
1079
+ stripe,
1080
+ showHeader,
1081
+ height,
1082
+ tableBorder,
1083
+ treeOpts,
1084
+ treeConfig,
1085
+ mouseConfig,
1086
+ mouseOpts,
1087
+ computeSize,
1088
+ validOpts,
1089
+ showFooter,
1090
+ overflowX,
1091
+ overflowY,
1092
+ scrollXLoad,
1093
+ scrollYLoad,
1094
+ scrollbarHeight,
1095
+ highlightCell,
1096
+ highlightHoverRow,
1097
+ highlightHoverColumn,
1098
+ editConfig,
1099
+ validTipOpts,
1100
+ initStore,
1101
+ columnStore,
1102
+ filterStore,
1103
+ customStore,
1104
+ ctxMenuStore,
1105
+ ctxMenuOpts,
1106
+ footerTableData,
1107
+ columnOpts,
1108
+ rowOpts,
1109
+ checkboxOpts,
1110
+ loadingOpts,
1111
+ editRules
1112
+ } = this;
1113
+ const {
1114
+ leftList,
1115
+ rightList
1116
+ } = columnStore;
1117
+ const currLoading = this._isLoading || loading;
1118
+ const vSize = computeSize;
1105
1119
  return h('div', {
1106
- class: ['vxe-table', 'vxe-table--render-default', "tid_".concat(tId), vSize ? "size--".concat(vSize) : '', "border--".concat(tableBorder), (_ref = {}, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_ref, "valid-msg--".concat(validOpts.msgMode), !!editRules), 'vxe-editable', !!editConfig), 'old-cell-valid', editRules && getConfig().cellVaildMode === 'obsolete'), 'cell--highlight', highlightCell), 'cell--selected', mouseConfig && mouseOpts.selected), 'cell--area', mouseConfig && mouseOpts.area), 'row--highlight', rowOpts.isHover || highlightHoverRow), 'column--highlight', columnOpts.isHover || highlightHoverColumn), 'checkbox--range', checkboxOpts.range), 'column--calc', isCalcColumn), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_ref, 'is--header', showHeader), 'is--footer', showFooter), 'is--group', isGroup), 'is--tree-line', treeConfig && (treeOpts.showLine || treeOpts.line)), 'is--fixed-left', leftList.length), 'is--fixed-right', rightList.length), 'is--animat', !!this.animat), 'is--round', this.round), 'is--stripe', !treeConfig && stripe), 'is--loading', currLoading), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_ref, 'is--empty', !currLoading && !tableData.length), 'is--scroll-y', overflowY), 'is--scroll-x', overflowX), 'is--virtual-x', scrollXLoad), 'is--virtual-y', scrollYLoad))],
1120
+ class: ['vxe-table', 'vxe-table--render-default', `tid_${tId}`, vSize ? `size--${vSize}` : '', `border--${tableBorder}`, {
1121
+ [`valid-msg--${validOpts.msgMode}`]: !!editRules,
1122
+ 'vxe-editable': !!editConfig,
1123
+ 'old-cell-valid': editRules && getConfig().cellVaildMode === 'obsolete',
1124
+ 'cell--highlight': highlightCell,
1125
+ 'cell--selected': mouseConfig && mouseOpts.selected,
1126
+ 'cell--area': mouseConfig && mouseOpts.area,
1127
+ 'row--highlight': rowOpts.isHover || highlightHoverRow,
1128
+ 'column--highlight': columnOpts.isHover || highlightHoverColumn,
1129
+ 'checkbox--range': checkboxOpts.range,
1130
+ 'column--calc': isCalcColumn,
1131
+ 'is--header': showHeader,
1132
+ 'is--footer': showFooter,
1133
+ 'is--group': isGroup,
1134
+ 'is--tree-line': treeConfig && (treeOpts.showLine || treeOpts.line),
1135
+ 'is--fixed-left': leftList.length,
1136
+ 'is--fixed-right': rightList.length,
1137
+ 'is--animat': !!this.animat,
1138
+ 'is--padding': this.padding,
1139
+ 'is--round': this.round,
1140
+ 'is--stripe': !treeConfig && stripe,
1141
+ 'is--loading': currLoading,
1142
+ 'is--empty': !currLoading && !tableData.length,
1143
+ 'is--scroll-y': overflowY,
1144
+ 'is--scroll-x': overflowX,
1145
+ 'is--virtual-x': scrollXLoad,
1146
+ 'is--virtual-y': scrollYLoad
1147
+ }],
1107
1148
  attrs: {
1108
1149
  spellcheck: false
1109
1150
  },
@@ -1128,9 +1169,9 @@ var _default = exports.default = {
1128
1169
  showHeader ? h(_header.default, {
1129
1170
  ref: 'tableHeader',
1130
1171
  props: {
1131
- tableData: tableData,
1132
- tableColumn: tableColumn,
1133
- tableGroupColumn: tableGroupColumn,
1172
+ tableData,
1173
+ tableColumn,
1174
+ tableGroupColumn,
1134
1175
  size: vSize
1135
1176
  }
1136
1177
  }) : _e(),
@@ -1140,8 +1181,8 @@ var _default = exports.default = {
1140
1181
  h(_body.default, {
1141
1182
  ref: 'tableBody',
1142
1183
  props: {
1143
- tableData: tableData,
1144
- tableColumn: tableColumn,
1184
+ tableData,
1185
+ tableColumn,
1145
1186
  size: vSize
1146
1187
  }
1147
1188
  }),
@@ -1151,8 +1192,8 @@ var _default = exports.default = {
1151
1192
  showFooter ? h(_footer.default, {
1152
1193
  ref: 'tableFooter',
1153
1194
  props: {
1154
- footerTableData: footerTableData,
1155
- tableColumn: tableColumn,
1195
+ footerTableData,
1196
+ tableColumn,
1156
1197
  size: vSize
1157
1198
  }
1158
1199
  }) : _e()]), h('div', {
@@ -1187,28 +1228,28 @@ var _default = exports.default = {
1187
1228
  h('div', {
1188
1229
  class: 'vxe-table--resizable-bar',
1189
1230
  style: overflowX ? {
1190
- 'padding-bottom': "".concat(scrollbarHeight, "px")
1231
+ 'padding-bottom': `${scrollbarHeight}px`
1191
1232
  } : {},
1192
1233
  ref: 'resizeBar'
1193
1234
  }),
1194
1235
  /**
1195
1236
  * 加载中
1196
1237
  */
1197
- h('vxe-loading', {
1238
+ VxeUILoadingComponent ? h(VxeUILoadingComponent, {
1198
1239
  class: 'vxe-table--loading',
1199
1240
  props: {
1200
1241
  value: currLoading,
1201
1242
  icon: loadingOpts.icon,
1202
1243
  text: loadingOpts.text
1203
1244
  }
1204
- }, this.callSlot($scopedSlots.loading, {}, h)),
1245
+ }, this.callSlot($scopedSlots.loading, {}, h)) : _e(),
1205
1246
  /**
1206
1247
  * 自定义列
1207
1248
  */
1208
1249
  initStore.custom ? h(_panel.default, {
1209
1250
  ref: 'customWrapper',
1210
1251
  props: {
1211
- customStore: customStore
1252
+ customStore
1212
1253
  }
1213
1254
  }) : _e(),
1214
1255
  /**
@@ -1217,7 +1258,7 @@ var _default = exports.default = {
1217
1258
  initStore.filter ? h(_panel2.default, {
1218
1259
  ref: 'filterWrapper',
1219
1260
  props: {
1220
- filterStore: filterStore
1261
+ filterStore
1221
1262
  }
1222
1263
  }) : _e(),
1223
1264
  /**
@@ -1244,14 +1285,14 @@ var _default = exports.default = {
1244
1285
  ctxMenuStore.visible && this.isCtxMenu ? h(_panel3.default, {
1245
1286
  ref: 'ctxWrapper',
1246
1287
  props: {
1247
- ctxMenuStore: ctxMenuStore,
1248
- ctxMenuOpts: ctxMenuOpts
1288
+ ctxMenuStore,
1289
+ ctxMenuOpts
1249
1290
  }
1250
1291
  }) : _e(), h('div', {}, [
1251
1292
  /**
1252
1293
  * 通用提示
1253
1294
  */
1254
- hasTip ? h('vxe-tooltip', {
1295
+ VxeUITooltipComponent ? h(VxeUITooltipComponent, {
1255
1296
  ref: 'commTip',
1256
1297
  props: {
1257
1298
  isArrow: false,
@@ -1261,14 +1302,14 @@ var _default = exports.default = {
1261
1302
  /**
1262
1303
  * 工具提示
1263
1304
  */
1264
- hasTip ? h('vxe-tooltip', {
1305
+ VxeUITooltipComponent ? h(VxeUITooltipComponent, {
1265
1306
  ref: 'tooltip',
1266
1307
  props: Object.assign({}, this.tipConfig, this.tooltipStore.currOpts)
1267
1308
  }) : _e(),
1268
1309
  /**
1269
1310
  * 校验提示
1270
1311
  */
1271
- hasTip && this.editRules && validOpts.showMessage && (validOpts.message === 'default' ? !height : validOpts.message === 'tooltip') ? h('vxe-tooltip', {
1312
+ VxeUITooltipComponent && this.editRules && validOpts.showMessage && (validOpts.message === 'default' ? !height : validOpts.message === 'tooltip') ? h(VxeUITooltipComponent, {
1272
1313
  ref: 'validTip',
1273
1314
  class: [{
1274
1315
  'old-cell-valid': editRules && getConfig().cellVaildMode === 'obsolete'