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