@element-plus/nightly 0.0.20220709 → 0.0.20220712

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 (308) hide show
  1. package/dist/index.css +1 -1
  2. package/dist/index.full.js +124 -208
  3. package/dist/index.full.min.js +15 -15
  4. package/dist/index.full.min.js.map +1 -1
  5. package/dist/index.full.min.mjs +15 -15
  6. package/dist/index.full.min.mjs.map +1 -1
  7. package/dist/index.full.mjs +124 -208
  8. package/dist/locale/af.js +1 -1
  9. package/dist/locale/af.min.js +1 -1
  10. package/dist/locale/af.min.mjs +1 -1
  11. package/dist/locale/af.mjs +1 -1
  12. package/dist/locale/ar.js +1 -1
  13. package/dist/locale/ar.min.js +1 -1
  14. package/dist/locale/ar.min.mjs +1 -1
  15. package/dist/locale/ar.mjs +1 -1
  16. package/dist/locale/az.js +1 -1
  17. package/dist/locale/az.min.js +1 -1
  18. package/dist/locale/az.min.mjs +1 -1
  19. package/dist/locale/az.mjs +1 -1
  20. package/dist/locale/bg.js +1 -1
  21. package/dist/locale/bg.min.js +1 -1
  22. package/dist/locale/bg.min.mjs +1 -1
  23. package/dist/locale/bg.mjs +1 -1
  24. package/dist/locale/bn.js +1 -1
  25. package/dist/locale/bn.min.js +1 -1
  26. package/dist/locale/bn.min.mjs +1 -1
  27. package/dist/locale/bn.mjs +1 -1
  28. package/dist/locale/ca.js +1 -1
  29. package/dist/locale/ca.min.js +1 -1
  30. package/dist/locale/ca.min.mjs +1 -1
  31. package/dist/locale/ca.mjs +1 -1
  32. package/dist/locale/cs.js +1 -1
  33. package/dist/locale/cs.min.js +1 -1
  34. package/dist/locale/cs.min.mjs +1 -1
  35. package/dist/locale/cs.mjs +1 -1
  36. package/dist/locale/da.js +1 -1
  37. package/dist/locale/da.min.js +1 -1
  38. package/dist/locale/da.min.mjs +1 -1
  39. package/dist/locale/da.mjs +1 -1
  40. package/dist/locale/de.js +1 -1
  41. package/dist/locale/de.min.js +1 -1
  42. package/dist/locale/de.min.mjs +1 -1
  43. package/dist/locale/de.mjs +1 -1
  44. package/dist/locale/el.js +1 -1
  45. package/dist/locale/el.min.js +1 -1
  46. package/dist/locale/el.min.mjs +1 -1
  47. package/dist/locale/el.mjs +1 -1
  48. package/dist/locale/en.js +1 -1
  49. package/dist/locale/en.min.js +1 -1
  50. package/dist/locale/en.min.mjs +1 -1
  51. package/dist/locale/en.mjs +1 -1
  52. package/dist/locale/eo.js +1 -1
  53. package/dist/locale/eo.min.js +1 -1
  54. package/dist/locale/eo.min.mjs +1 -1
  55. package/dist/locale/eo.mjs +1 -1
  56. package/dist/locale/es.js +1 -1
  57. package/dist/locale/es.min.js +1 -1
  58. package/dist/locale/es.min.mjs +1 -1
  59. package/dist/locale/es.mjs +1 -1
  60. package/dist/locale/et.js +1 -1
  61. package/dist/locale/et.min.js +1 -1
  62. package/dist/locale/et.min.mjs +1 -1
  63. package/dist/locale/et.mjs +1 -1
  64. package/dist/locale/eu.js +1 -1
  65. package/dist/locale/eu.min.js +1 -1
  66. package/dist/locale/eu.min.mjs +1 -1
  67. package/dist/locale/eu.mjs +1 -1
  68. package/dist/locale/fa.js +1 -1
  69. package/dist/locale/fa.min.js +1 -1
  70. package/dist/locale/fa.min.mjs +1 -1
  71. package/dist/locale/fa.mjs +1 -1
  72. package/dist/locale/fi.js +1 -1
  73. package/dist/locale/fi.min.js +1 -1
  74. package/dist/locale/fi.min.mjs +1 -1
  75. package/dist/locale/fi.mjs +1 -1
  76. package/dist/locale/fr.js +1 -1
  77. package/dist/locale/fr.min.js +1 -1
  78. package/dist/locale/fr.min.mjs +1 -1
  79. package/dist/locale/fr.mjs +1 -1
  80. package/dist/locale/he.js +1 -1
  81. package/dist/locale/he.min.js +1 -1
  82. package/dist/locale/he.min.mjs +1 -1
  83. package/dist/locale/he.mjs +1 -1
  84. package/dist/locale/hr.js +1 -1
  85. package/dist/locale/hr.min.js +1 -1
  86. package/dist/locale/hr.min.mjs +1 -1
  87. package/dist/locale/hr.mjs +1 -1
  88. package/dist/locale/hu.js +1 -1
  89. package/dist/locale/hu.min.js +1 -1
  90. package/dist/locale/hu.min.mjs +1 -1
  91. package/dist/locale/hu.mjs +1 -1
  92. package/dist/locale/hy-am.js +1 -1
  93. package/dist/locale/hy-am.min.js +1 -1
  94. package/dist/locale/hy-am.min.mjs +1 -1
  95. package/dist/locale/hy-am.mjs +1 -1
  96. package/dist/locale/id.js +1 -1
  97. package/dist/locale/id.min.js +1 -1
  98. package/dist/locale/id.min.mjs +1 -1
  99. package/dist/locale/id.mjs +1 -1
  100. package/dist/locale/it.js +1 -1
  101. package/dist/locale/it.min.js +1 -1
  102. package/dist/locale/it.min.mjs +1 -1
  103. package/dist/locale/it.mjs +1 -1
  104. package/dist/locale/ja.js +1 -1
  105. package/dist/locale/ja.min.js +1 -1
  106. package/dist/locale/ja.min.mjs +1 -1
  107. package/dist/locale/ja.mjs +1 -1
  108. package/dist/locale/kk.js +1 -1
  109. package/dist/locale/kk.min.js +1 -1
  110. package/dist/locale/kk.min.mjs +1 -1
  111. package/dist/locale/kk.mjs +1 -1
  112. package/dist/locale/km.js +1 -1
  113. package/dist/locale/km.min.js +1 -1
  114. package/dist/locale/km.min.mjs +1 -1
  115. package/dist/locale/km.mjs +1 -1
  116. package/dist/locale/ko.js +1 -1
  117. package/dist/locale/ko.min.js +1 -1
  118. package/dist/locale/ko.min.mjs +1 -1
  119. package/dist/locale/ko.mjs +1 -1
  120. package/dist/locale/ku.js +1 -1
  121. package/dist/locale/ku.min.js +1 -1
  122. package/dist/locale/ku.min.mjs +1 -1
  123. package/dist/locale/ku.mjs +1 -1
  124. package/dist/locale/ky.js +1 -1
  125. package/dist/locale/ky.min.js +1 -1
  126. package/dist/locale/ky.min.mjs +1 -1
  127. package/dist/locale/ky.mjs +1 -1
  128. package/dist/locale/lt.js +1 -1
  129. package/dist/locale/lt.min.js +1 -1
  130. package/dist/locale/lt.min.mjs +1 -1
  131. package/dist/locale/lt.mjs +1 -1
  132. package/dist/locale/lv.js +1 -1
  133. package/dist/locale/lv.min.js +1 -1
  134. package/dist/locale/lv.min.mjs +1 -1
  135. package/dist/locale/lv.mjs +1 -1
  136. package/dist/locale/mg.js +1 -1
  137. package/dist/locale/mg.min.js +1 -1
  138. package/dist/locale/mg.min.mjs +1 -1
  139. package/dist/locale/mg.mjs +1 -1
  140. package/dist/locale/mn.js +1 -1
  141. package/dist/locale/mn.min.js +1 -1
  142. package/dist/locale/mn.min.mjs +1 -1
  143. package/dist/locale/mn.mjs +1 -1
  144. package/dist/locale/nb-no.js +1 -1
  145. package/dist/locale/nb-no.min.js +1 -1
  146. package/dist/locale/nb-no.min.mjs +1 -1
  147. package/dist/locale/nb-no.mjs +1 -1
  148. package/dist/locale/nl.js +1 -1
  149. package/dist/locale/nl.min.js +1 -1
  150. package/dist/locale/nl.min.mjs +1 -1
  151. package/dist/locale/nl.mjs +1 -1
  152. package/dist/locale/pa.js +1 -1
  153. package/dist/locale/pa.min.js +1 -1
  154. package/dist/locale/pa.min.mjs +1 -1
  155. package/dist/locale/pa.mjs +1 -1
  156. package/dist/locale/pl.js +1 -1
  157. package/dist/locale/pl.min.js +1 -1
  158. package/dist/locale/pl.min.mjs +1 -1
  159. package/dist/locale/pl.mjs +1 -1
  160. package/dist/locale/pt-br.js +1 -1
  161. package/dist/locale/pt-br.min.js +1 -1
  162. package/dist/locale/pt-br.min.mjs +1 -1
  163. package/dist/locale/pt-br.mjs +1 -1
  164. package/dist/locale/pt.js +1 -1
  165. package/dist/locale/pt.min.js +1 -1
  166. package/dist/locale/pt.min.mjs +1 -1
  167. package/dist/locale/pt.mjs +1 -1
  168. package/dist/locale/ro.js +1 -1
  169. package/dist/locale/ro.min.js +1 -1
  170. package/dist/locale/ro.min.mjs +1 -1
  171. package/dist/locale/ro.mjs +1 -1
  172. package/dist/locale/ru.js +1 -1
  173. package/dist/locale/ru.min.js +1 -1
  174. package/dist/locale/ru.min.mjs +1 -1
  175. package/dist/locale/ru.mjs +1 -1
  176. package/dist/locale/sk.js +1 -1
  177. package/dist/locale/sk.min.js +1 -1
  178. package/dist/locale/sk.min.mjs +1 -1
  179. package/dist/locale/sk.mjs +1 -1
  180. package/dist/locale/sl.js +1 -1
  181. package/dist/locale/sl.min.js +1 -1
  182. package/dist/locale/sl.min.mjs +1 -1
  183. package/dist/locale/sl.mjs +1 -1
  184. package/dist/locale/sr.js +1 -1
  185. package/dist/locale/sr.min.js +1 -1
  186. package/dist/locale/sr.min.mjs +1 -1
  187. package/dist/locale/sr.mjs +1 -1
  188. package/dist/locale/sv.js +1 -1
  189. package/dist/locale/sv.min.js +1 -1
  190. package/dist/locale/sv.min.mjs +1 -1
  191. package/dist/locale/sv.mjs +1 -1
  192. package/dist/locale/ta.js +1 -1
  193. package/dist/locale/ta.min.js +1 -1
  194. package/dist/locale/ta.min.mjs +1 -1
  195. package/dist/locale/ta.mjs +1 -1
  196. package/dist/locale/th.js +1 -1
  197. package/dist/locale/th.min.js +1 -1
  198. package/dist/locale/th.min.mjs +1 -1
  199. package/dist/locale/th.mjs +1 -1
  200. package/dist/locale/tk.js +1 -1
  201. package/dist/locale/tk.min.js +1 -1
  202. package/dist/locale/tk.min.mjs +1 -1
  203. package/dist/locale/tk.mjs +1 -1
  204. package/dist/locale/tr.js +1 -1
  205. package/dist/locale/tr.min.js +1 -1
  206. package/dist/locale/tr.min.mjs +1 -1
  207. package/dist/locale/tr.mjs +1 -1
  208. package/dist/locale/ug-cn.js +1 -1
  209. package/dist/locale/ug-cn.min.js +1 -1
  210. package/dist/locale/ug-cn.min.mjs +1 -1
  211. package/dist/locale/ug-cn.mjs +1 -1
  212. package/dist/locale/uk.js +1 -1
  213. package/dist/locale/uk.min.js +1 -1
  214. package/dist/locale/uk.min.mjs +1 -1
  215. package/dist/locale/uk.mjs +1 -1
  216. package/dist/locale/uz-uz.js +1 -1
  217. package/dist/locale/uz-uz.min.js +1 -1
  218. package/dist/locale/uz-uz.min.mjs +1 -1
  219. package/dist/locale/uz-uz.mjs +1 -1
  220. package/dist/locale/vi.js +1 -1
  221. package/dist/locale/vi.min.js +1 -1
  222. package/dist/locale/vi.min.mjs +1 -1
  223. package/dist/locale/vi.mjs +1 -1
  224. package/dist/locale/zh-cn.js +1 -1
  225. package/dist/locale/zh-cn.min.js +1 -1
  226. package/dist/locale/zh-cn.min.mjs +1 -1
  227. package/dist/locale/zh-cn.mjs +1 -1
  228. package/dist/locale/zh-tw.js +1 -1
  229. package/dist/locale/zh-tw.min.js +1 -1
  230. package/dist/locale/zh-tw.min.mjs +1 -1
  231. package/dist/locale/zh-tw.mjs +1 -1
  232. package/es/components/cascader/src/index.mjs +10 -9
  233. package/es/components/cascader/src/index.mjs.map +1 -1
  234. package/es/components/form/src/form-item2.mjs +1 -1
  235. package/es/components/form/src/form-item2.mjs.map +1 -1
  236. package/es/components/popconfirm/index.d.ts +0 -1
  237. package/es/components/popconfirm/src/popconfirm.vue.d.ts +0 -1
  238. package/es/components/popconfirm/src/popconfirm2.mjs +2 -5
  239. package/es/components/popconfirm/src/popconfirm2.mjs.map +1 -1
  240. package/es/components/scrollbar/src/scrollbar2.mjs +3 -1
  241. package/es/components/scrollbar/src/scrollbar2.mjs.map +1 -1
  242. package/es/components/select/src/useSelect.mjs +0 -2
  243. package/es/components/select/src/useSelect.mjs.map +1 -1
  244. package/es/components/slider/src/marker.mjs +1 -1
  245. package/es/components/slider/src/marker.mjs.map +1 -1
  246. package/es/components/table/index.d.ts +21 -31
  247. package/es/components/table/src/table/style-helper.d.ts +21 -31
  248. package/es/components/table/src/table/style-helper.mjs +68 -95
  249. package/es/components/table/src/table/style-helper.mjs.map +1 -1
  250. package/es/components/table/src/table-layout.d.ts +1 -5
  251. package/es/components/table/src/table-layout.mjs +3 -52
  252. package/es/components/table/src/table-layout.mjs.map +1 -1
  253. package/es/components/table/src/table.mjs +29 -34
  254. package/es/components/table/src/table.mjs.map +1 -1
  255. package/es/components/table/src/table.vue.d.ts +21 -31
  256. package/es/components/table/src/util.mjs +6 -11
  257. package/es/components/table/src/util.mjs.map +1 -1
  258. package/es/components/table-v2/index.d.ts +1 -1
  259. package/es/components/table-v2/src/components/header.d.ts +1 -1
  260. package/es/components/table-v2/src/table-grid.d.ts +1 -1
  261. package/es/components/table-v2/src/table-v2.d.ts +1 -1
  262. package/es/components/tree/src/model/useDragNode.mjs.map +1 -1
  263. package/es/components/tree/src/tree.type.d.ts +3 -2
  264. package/es/version.d.ts +1 -1
  265. package/es/version.mjs +1 -1
  266. package/es/version.mjs.map +1 -1
  267. package/lib/components/cascader/src/index.js +10 -9
  268. package/lib/components/cascader/src/index.js.map +1 -1
  269. package/lib/components/form/src/form-item2.js +1 -1
  270. package/lib/components/form/src/form-item2.js.map +1 -1
  271. package/lib/components/popconfirm/index.d.ts +0 -1
  272. package/lib/components/popconfirm/src/popconfirm.vue.d.ts +0 -1
  273. package/lib/components/popconfirm/src/popconfirm2.js +2 -5
  274. package/lib/components/popconfirm/src/popconfirm2.js.map +1 -1
  275. package/lib/components/scrollbar/src/scrollbar2.js +3 -1
  276. package/lib/components/scrollbar/src/scrollbar2.js.map +1 -1
  277. package/lib/components/select/src/useSelect.js +0 -2
  278. package/lib/components/select/src/useSelect.js.map +1 -1
  279. package/lib/components/slider/src/marker.js +1 -1
  280. package/lib/components/slider/src/marker.js.map +1 -1
  281. package/lib/components/table/index.d.ts +21 -31
  282. package/lib/components/table/src/table/style-helper.d.ts +21 -31
  283. package/lib/components/table/src/table/style-helper.js +67 -94
  284. package/lib/components/table/src/table/style-helper.js.map +1 -1
  285. package/lib/components/table/src/table-layout.d.ts +1 -5
  286. package/lib/components/table/src/table-layout.js +3 -52
  287. package/lib/components/table/src/table-layout.js.map +1 -1
  288. package/lib/components/table/src/table.js +29 -34
  289. package/lib/components/table/src/table.js.map +1 -1
  290. package/lib/components/table/src/table.vue.d.ts +21 -31
  291. package/lib/components/table/src/util.js +6 -11
  292. package/lib/components/table/src/util.js.map +1 -1
  293. package/lib/components/table-v2/index.d.ts +1 -1
  294. package/lib/components/table-v2/src/components/header.d.ts +1 -1
  295. package/lib/components/table-v2/src/table-grid.d.ts +1 -1
  296. package/lib/components/table-v2/src/table-v2.d.ts +1 -1
  297. package/lib/components/tree/src/model/useDragNode.js.map +1 -1
  298. package/lib/components/tree/src/tree.type.d.ts +3 -2
  299. package/lib/version.d.ts +1 -1
  300. package/lib/version.js +1 -1
  301. package/lib/version.js.map +1 -1
  302. package/package.json +2 -2
  303. package/theme-chalk/el-slider.css +1 -1
  304. package/theme-chalk/el-table.css +1 -1
  305. package/theme-chalk/index.css +1 -1
  306. package/theme-chalk/src/slider.scss +2 -0
  307. package/theme-chalk/src/table.scss +7 -1
  308. package/web-types.json +1 -1
@@ -1,4 +1,4 @@
1
- /*! Element Plus v0.0.20220709 */
1
+ /*! Element Plus v0.0.20220712 */
2
2
 
3
3
  (function (global, factory) {
4
4
  typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('vue')) :
@@ -10734,7 +10734,7 @@
10734
10734
  return [recordCursor, setCursor];
10735
10735
  }
10736
10736
 
10737
- const version$1 = "0.0.20220709";
10737
+ const version$1 = "0.0.20220712";
10738
10738
 
10739
10739
  const makeInstaller = (components = []) => {
10740
10740
  const install = (app, options) => {
@@ -12036,7 +12036,9 @@
12036
12036
  }));
12037
12037
  vue.onMounted(() => {
12038
12038
  if (!props.native)
12039
- vue.nextTick(() => update());
12039
+ vue.nextTick(() => {
12040
+ update();
12041
+ });
12040
12042
  });
12041
12043
  vue.onUpdated(() => update());
12042
12044
  expose({
@@ -20968,9 +20970,8 @@
20968
20970
  }
20969
20971
  });
20970
20972
  const _hoisted_1$M = { key: 0 };
20971
- const _hoisted_2$x = { class: "el-cascader__collapse-tags" };
20972
- const _hoisted_3$k = ["placeholder"];
20973
- const _hoisted_4$d = ["onClick"];
20973
+ const _hoisted_2$x = ["placeholder"];
20974
+ const _hoisted_3$k = ["onClick"];
20974
20975
  function _sfc_render$A(_ctx, _cache, $props, $setup, $data, $options) {
20975
20976
  const _component_circle_close = vue.resolveComponent("circle-close");
20976
20977
  const _component_el_icon = vue.resolveComponent("el-icon");
@@ -21092,11 +21093,13 @@
21092
21093
  vue.createElementVNode("span", null, vue.toDisplayString(tag.text), 1)
21093
21094
  ]),
21094
21095
  content: vue.withCtx(() => [
21095
- vue.createElementVNode("div", _hoisted_2$x, [
21096
+ vue.createElementVNode("div", {
21097
+ class: vue.normalizeClass(_ctx.nsCascader.e("collapse-tags"))
21098
+ }, [
21096
21099
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.allPresentTags, (tag2, idx) => {
21097
21100
  return vue.openBlock(), vue.createElementBlock("div", {
21098
21101
  key: idx,
21099
- class: "el-cascader__collapse-tag"
21102
+ class: vue.normalizeClass(_ctx.nsCascader.e("collapse-tag"))
21100
21103
  }, [
21101
21104
  (vue.openBlock(), vue.createBlock(_component_el_tag, {
21102
21105
  key: tag2.key,
@@ -21113,9 +21116,9 @@
21113
21116
  ]),
21114
21117
  _: 2
21115
21118
  }, 1032, ["type", "size", "hit", "closable", "onClose"]))
21116
- ]);
21119
+ ], 2);
21117
21120
  }), 128))
21118
- ])
21121
+ ], 2)
21119
21122
  ]),
21120
21123
  _: 2
21121
21124
  }, 1032, ["disabled"]))
@@ -21135,7 +21138,7 @@
21135
21138
  onCompositionstart: _cache[8] || (_cache[8] = (...args) => _ctx.handleComposition && _ctx.handleComposition(...args)),
21136
21139
  onCompositionupdate: _cache[9] || (_cache[9] = (...args) => _ctx.handleComposition && _ctx.handleComposition(...args)),
21137
21140
  onCompositionend: _cache[10] || (_cache[10] = (...args) => _ctx.handleComposition && _ctx.handleComposition(...args))
21138
- }, null, 42, _hoisted_3$k)), [
21141
+ }, null, 42, _hoisted_2$x)), [
21139
21142
  [vue.vModelText, _ctx.searchInputValue]
21140
21143
  ]) : vue.createCommentVNode("v-if", true)
21141
21144
  ], 2)) : vue.createCommentVNode("v-if", true)
@@ -21183,7 +21186,7 @@
21183
21186
  ]),
21184
21187
  _: 1
21185
21188
  })) : vue.createCommentVNode("v-if", true)
21186
- ], 10, _hoisted_4$d);
21189
+ ], 10, _hoisted_3$k);
21187
21190
  }), 128)) : vue.renderSlot(_ctx.$slots, "empty", { key: 1 }, () => [
21188
21191
  vue.createElementVNode("li", {
21189
21192
  class: vue.normalizeClass(_ctx.nsCascader.e("empty-text"))
@@ -29507,8 +29510,8 @@
29507
29510
  const computedValue = getProp(model, props.prop);
29508
29511
  if (!isEqual$1(computedValue.value, initialValue)) {
29509
29512
  isResettingField = true;
29513
+ computedValue.value = clone(initialValue);
29510
29514
  }
29511
- computedValue.value = clone(initialValue);
29512
29515
  await vue.nextTick();
29513
29516
  clearValidate();
29514
29517
  };
@@ -32562,8 +32565,6 @@
32562
32565
  };
32563
32566
  const toggleMenu = () => {
32564
32567
  var _a;
32565
- if (props.automaticDropdown)
32566
- return;
32567
32568
  if (!selectDisabled.value) {
32568
32569
  if (states.menuVisibleOnFocus) {
32569
32570
  states.menuVisibleOnFocus = false;
@@ -34030,18 +34031,15 @@
34030
34031
  var _a, _b;
34031
34032
  (_b = (_a = tooltipRef.value) == null ? void 0 : _a.onClose) == null ? void 0 : _b.call(_a);
34032
34033
  };
34033
- const handleCallback = () => {
34034
- hidePopper();
34035
- };
34036
34034
  const confirm = (e) => {
34037
34035
  var _a;
34038
34036
  (_a = props.onConfirm) == null ? void 0 : _a.call(props, e);
34039
- handleCallback();
34037
+ hidePopper();
34040
34038
  };
34041
34039
  const cancel = (e) => {
34042
34040
  var _a;
34043
34041
  (_a = props.onCancel) == null ? void 0 : _a.call(props, e);
34044
- handleCallback();
34042
+ hidePopper();
34045
34043
  };
34046
34044
  const finalConfirmButtonText = vue.computed(() => props.confirmButtonText || t("el.popconfirm.confirmButtonText"));
34047
34045
  const finalCancelButtonText = vue.computed(() => props.cancelButtonText || t("el.popconfirm.cancelButtonText"));
@@ -39201,7 +39199,7 @@
39201
39199
  const style = vue.computed(() => isString(props.mark) ? void 0 : props.mark.style);
39202
39200
  return () => vue.h("div", {
39203
39201
  class: ns.e("marks-text"),
39204
- style
39202
+ style: style.value
39205
39203
  }, label.value);
39206
39204
  }
39207
39205
  });
@@ -40520,11 +40518,9 @@
40520
40518
  try {
40521
40519
  popperInstance && popperInstance.destroy();
40522
40520
  content && (parentNode == null ? void 0 : parentNode.removeChild(content));
40523
- off(trigger, "mouseenter", showPopper);
40524
- off(trigger, "mouseleave", removePopper);
40525
- if (scrollContainer) {
40526
- off(scrollContainer, "scroll", removePopper);
40527
- }
40521
+ trigger.removeEventListener("mouseenter", showPopper);
40522
+ trigger.removeEventListener("mouseleave", removePopper);
40523
+ scrollContainer == null ? void 0 : scrollContainer.removeEventListener("scroll", removePopper);
40528
40524
  removePopper = void 0;
40529
40525
  } catch (e) {
40530
40526
  }
@@ -40552,11 +40548,9 @@
40552
40548
  ],
40553
40549
  ...popperOptions
40554
40550
  });
40555
- on$1(trigger, "mouseenter", showPopper);
40556
- on$1(trigger, "mouseleave", removePopper);
40557
- if (scrollContainer) {
40558
- on$1(scrollContainer, "scroll", removePopper);
40559
- }
40551
+ trigger.addEventListener("mouseenter", showPopper);
40552
+ trigger.addEventListener("mouseleave", removePopper);
40553
+ scrollContainer == null ? void 0 : scrollContainer.addEventListener("scroll", removePopper);
40560
40554
  return popperInstance;
40561
40555
  }
40562
40556
  const isFixedColumn = (index, fixed, store, realColumns) => {
@@ -41614,14 +41608,6 @@
41614
41608
  this.bodyWidth = vue.ref(null);
41615
41609
  this.fixedWidth = vue.ref(null);
41616
41610
  this.rightFixedWidth = vue.ref(null);
41617
- this.tableHeight = vue.ref(null);
41618
- this.headerHeight = vue.ref(44);
41619
- this.appendHeight = vue.ref(0);
41620
- this.footerHeight = vue.ref(44);
41621
- this.viewportHeight = vue.ref(null);
41622
- this.bodyHeight = vue.ref(null);
41623
- this.bodyScrollHeight = vue.ref(0);
41624
- this.fixedBodyHeight = vue.ref(null);
41625
41611
  this.gutterWidth = 0;
41626
41612
  for (const name in options) {
41627
41613
  if (hasOwn(options, name)) {
@@ -41643,15 +41629,11 @@
41643
41629
  const height = this.height.value;
41644
41630
  if (height === null)
41645
41631
  return false;
41646
- const bodyWrapper = this.table.refs.bodyWrapper;
41647
- if (this.table.vnode.el && bodyWrapper) {
41632
+ const scrollBarRef = this.table.refs.scrollBarRef;
41633
+ if (this.table.vnode.el && scrollBarRef) {
41648
41634
  let scrollY = true;
41649
41635
  const prevScrollY = this.scrollY.value;
41650
- if (this.bodyHeight.value === null) {
41651
- scrollY = false;
41652
- } else {
41653
- scrollY = bodyWrapper.scrollHeight > this.bodyHeight.value;
41654
- }
41636
+ scrollY = scrollBarRef.wrap$.scrollHeight > scrollBarRef.wrap$.clientHeight;
41655
41637
  this.scrollY.value = scrollY;
41656
41638
  return prevScrollY !== scrollY;
41657
41639
  }
@@ -41689,43 +41671,6 @@
41689
41671
  return flattenColumns;
41690
41672
  }
41691
41673
  updateElsHeight() {
41692
- var _a, _b;
41693
- if (!this.table.$ready)
41694
- return vue.nextTick(() => this.updateElsHeight());
41695
- const {
41696
- tableWrapper,
41697
- headerWrapper,
41698
- appendWrapper,
41699
- footerWrapper,
41700
- tableHeader,
41701
- tableBody
41702
- } = this.table.refs;
41703
- if (tableWrapper && tableWrapper.style.display === "none") {
41704
- return;
41705
- }
41706
- const { tableLayout } = this.table.props;
41707
- this.appendHeight.value = appendWrapper ? appendWrapper.offsetHeight : 0;
41708
- if (this.showHeader && !headerWrapper && tableLayout === "fixed") {
41709
- return;
41710
- }
41711
- const headerTrElm = tableHeader ? tableHeader : null;
41712
- const noneHeader = this.headerDisplayNone(headerTrElm);
41713
- const headerWrapperOffsetHeight = (headerWrapper == null ? void 0 : headerWrapper.offsetHeight) || 0;
41714
- const headerHeight = this.headerHeight.value = !this.showHeader ? 0 : headerWrapperOffsetHeight;
41715
- if (this.showHeader && !noneHeader && headerWrapperOffsetHeight > 0 && (this.table.store.states.columns.value || []).length > 0 && headerHeight < 2) {
41716
- return vue.nextTick(() => this.updateElsHeight());
41717
- }
41718
- const tableHeight = this.tableHeight.value = (_b = (_a = this.table) == null ? void 0 : _a.vnode.el) == null ? void 0 : _b.clientHeight;
41719
- const footerHeight = this.footerHeight.value = footerWrapper ? footerWrapper.offsetHeight : 0;
41720
- if (this.height.value !== null) {
41721
- if (this.bodyHeight.value === null) {
41722
- requestAnimationFrame(() => this.updateElsHeight());
41723
- }
41724
- this.bodyHeight.value = tableHeight - headerHeight - footerHeight + (footerWrapper ? 1 : 0);
41725
- this.bodyScrollHeight.value = tableBody == null ? void 0 : tableBody.scrollHeight;
41726
- }
41727
- this.fixedBodyHeight.value = this.scrollX.value ? this.bodyHeight.value - this.gutterWidth : this.bodyHeight.value;
41728
- this.viewportHeight.value = this.scrollX.value ? tableHeight - this.gutterWidth : tableHeight;
41729
41674
  this.updateScrollY();
41730
41675
  this.notifyObservers("scrollable");
41731
41676
  }
@@ -43361,14 +43306,18 @@
43361
43306
  };
43362
43307
  const resizeState = vue.ref({
43363
43308
  width: null,
43364
- height: null
43309
+ height: null,
43310
+ headerHeight: null
43365
43311
  });
43366
43312
  const isGroup = vue.ref(false);
43367
43313
  const scrollbarViewStyle = {
43368
- display: "block",
43314
+ display: "inline-block",
43369
43315
  verticalAlign: "middle"
43370
43316
  };
43371
43317
  const tableWidth = vue.ref();
43318
+ const tableScrollHeight = vue.ref(0);
43319
+ const bodyScrollHeight = vue.ref(0);
43320
+ const headerScrollHeight = vue.ref(0);
43372
43321
  vue.watchEffect(() => {
43373
43322
  layout.setHeight(props.height);
43374
43323
  });
@@ -43425,12 +43374,14 @@
43425
43374
  bindEvents();
43426
43375
  requestAnimationFrame(doLayout);
43427
43376
  const el = table.vnode.el;
43377
+ const tableHeader = table.refs.headerWrapper;
43428
43378
  if (props.flexible && el && el.parentElement) {
43429
43379
  el.parentElement.style.minWidth = "0";
43430
43380
  }
43431
43381
  resizeState.value = {
43432
43382
  width: tableWidth.value = el.offsetWidth,
43433
- height: el.offsetHeight
43383
+ height: el.offsetHeight,
43384
+ headerHeight: props.showHeader && tableHeader ? tableHeader.offsetHeight : null
43434
43385
  };
43435
43386
  store.states.columns.value.forEach((column) => {
43436
43387
  if (column.filteredValue && column.filteredValue.length) {
@@ -43501,23 +43452,36 @@
43501
43452
  }
43502
43453
  };
43503
43454
  const resizeListener = () => {
43455
+ var _a;
43504
43456
  if (!table.$ready)
43505
43457
  return;
43506
43458
  let shouldUpdateLayout = false;
43507
43459
  const el = table.vnode.el;
43508
- const { width: oldWidth, height: oldHeight } = resizeState.value;
43460
+ const {
43461
+ width: oldWidth,
43462
+ height: oldHeight,
43463
+ headerHeight: oldHeaderHeight
43464
+ } = resizeState.value;
43509
43465
  const width = tableWidth.value = el.offsetWidth;
43510
43466
  if (oldWidth !== width) {
43511
43467
  shouldUpdateLayout = true;
43512
43468
  }
43513
- const height2 = el.offsetHeight;
43514
- if ((props.height || shouldUpdateHeight.value) && oldHeight !== height2) {
43469
+ const height = el.offsetHeight;
43470
+ if ((props.height || shouldUpdateHeight.value) && oldHeight !== height) {
43471
+ shouldUpdateLayout = true;
43472
+ }
43473
+ const tableHeader = table.refs.headerWrapper;
43474
+ if (props.showHeader && tableHeader.offsetHeight !== oldHeaderHeight) {
43515
43475
  shouldUpdateLayout = true;
43516
43476
  }
43477
+ tableScrollHeight.value = table.refs.tableWrapper.scrollHeight;
43478
+ headerScrollHeight.value = ((_a = table.refs.headerWrapper) == null ? void 0 : _a.scrollHeight) || 0;
43479
+ bodyScrollHeight.value = tableScrollHeight.value - headerScrollHeight.value;
43517
43480
  if (shouldUpdateLayout) {
43518
43481
  resizeState.value = {
43519
43482
  width,
43520
- height: height2
43483
+ height,
43484
+ headerHeight: props.showHeader ? tableHeader.offsetHeight : null
43521
43485
  };
43522
43486
  doLayout();
43523
43487
  }
@@ -43532,57 +43496,57 @@
43532
43496
  return "fixed";
43533
43497
  return props.tableLayout;
43534
43498
  });
43535
- function calcMaxHeight(maxHeight, footerHeight, headerHeight) {
43536
- const parsedMaxHeight = parseHeight(maxHeight);
43537
- const tableHeaderHeight = props.showHeader ? headerHeight : 0;
43538
- if (parsedMaxHeight === null)
43539
- return;
43540
- if (isString(parsedMaxHeight)) {
43541
- return `calc(${parsedMaxHeight} - ${footerHeight}px - ${tableHeaderHeight}px)`;
43499
+ const emptyBlockStyle = vue.computed(() => {
43500
+ if (props.data && props.data.length)
43501
+ return null;
43502
+ let height = "100%";
43503
+ if (bodyScrollHeight.value) {
43504
+ height = `${bodyScrollHeight.value}px`;
43542
43505
  }
43543
- return parsedMaxHeight - footerHeight - tableHeaderHeight;
43544
- }
43545
- const height = vue.computed(() => {
43546
- const headerHeight = layout.headerHeight.value || 0;
43547
- const bodyHeight2 = layout.bodyHeight.value;
43548
- const footerHeight = layout.footerHeight.value || 0;
43506
+ const width = tableWidth.value;
43507
+ return {
43508
+ width: width ? `${width}px` : "",
43509
+ height
43510
+ };
43511
+ });
43512
+ const tableInnerStyle = vue.computed(() => {
43549
43513
  if (props.height) {
43550
- return bodyHeight2 ? bodyHeight2 : void 0;
43551
- } else if (props.maxHeight) {
43552
- return calcMaxHeight(props.maxHeight, footerHeight, headerHeight);
43514
+ return {
43515
+ height: !Number.isNaN(Number(props.height)) ? `${props.height}px` : props.height
43516
+ };
43553
43517
  }
43554
- return void 0;
43518
+ if (props.maxHeight) {
43519
+ return {
43520
+ maxHeight: !Number.isNaN(Number(props.maxHeight)) ? `${props.maxHeight}px` : props.maxHeight
43521
+ };
43522
+ }
43523
+ return {};
43555
43524
  });
43556
- const bodyHeight = vue.computed(() => {
43557
- const headerHeight = layout.headerHeight.value || 0;
43558
- const bodyHeight2 = layout.bodyHeight.value;
43559
- const footerHeight = layout.footerHeight.value || 0;
43525
+ const scrollbarStyle = vue.computed(() => {
43526
+ var _a;
43560
43527
  if (props.height) {
43561
43528
  return {
43562
- height: bodyHeight2 ? `${bodyHeight2}px` : ""
43529
+ height: "100%"
43563
43530
  };
43564
- } else if (props.maxHeight) {
43565
- const maxHeight = calcMaxHeight(props.maxHeight, footerHeight, headerHeight);
43566
- if (maxHeight !== null) {
43531
+ }
43532
+ if (props.maxHeight) {
43533
+ if (!Number.isNaN(Number(props.maxHeight))) {
43534
+ const headerHeight = ((_a = table.refs.headerWrapper) == null ? void 0 : _a.scrollHeight) || 0;
43535
+ const maxHeight = props.maxHeight;
43536
+ const reachMaxHeight = tableScrollHeight.value >= Number(maxHeight);
43537
+ if (reachMaxHeight) {
43538
+ return {
43539
+ maxHeight: `${tableScrollHeight.value - headerHeight}px`
43540
+ };
43541
+ }
43542
+ } else {
43567
43543
  return {
43568
- "max-height": `${maxHeight}${isNumber(maxHeight) ? "px" : ""}`
43544
+ maxHeight: `calc(${props.maxHeight} - ${headerScrollHeight.value}px)`
43569
43545
  };
43570
43546
  }
43571
43547
  }
43572
43548
  return {};
43573
43549
  });
43574
- const emptyBlockStyle = vue.computed(() => {
43575
- if (props.data && props.data.length)
43576
- return null;
43577
- let height2 = "100%";
43578
- if (layout.appendHeight.value) {
43579
- height2 = `calc(100% - ${layout.appendHeight.value}px)`;
43580
- }
43581
- return {
43582
- width: tableWidth.value ? `${tableWidth.value}px` : "",
43583
- height: height2
43584
- };
43585
- });
43586
43550
  const handleFixedMousewheel = (event, data) => {
43587
43551
  const bodyWrapper = table.refs.bodyWrapper;
43588
43552
  if (Math.abs(data.spinY) > 0) {
@@ -43598,47 +43562,6 @@
43598
43562
  bodyWrapper.scrollLeft += Math.ceil(data.pixelX / 5);
43599
43563
  }
43600
43564
  };
43601
- const fixedHeight = vue.computed(() => {
43602
- if (props.maxHeight) {
43603
- if (props.showSummary) {
43604
- return {
43605
- bottom: 0
43606
- };
43607
- }
43608
- return {
43609
- bottom: layout.scrollX.value && props.data.length ? `${layout.gutterWidth}px` : ""
43610
- };
43611
- } else {
43612
- if (props.showSummary) {
43613
- return {
43614
- height: layout.tableHeight.value ? `${layout.tableHeight.value}px` : ""
43615
- };
43616
- }
43617
- return {
43618
- height: layout.viewportHeight.value ? `${layout.viewportHeight.value}px` : ""
43619
- };
43620
- }
43621
- });
43622
- const fixedBodyHeight = vue.computed(() => {
43623
- if (props.height) {
43624
- return {
43625
- height: layout.fixedBodyHeight.value ? `${layout.fixedBodyHeight.value}px` : ""
43626
- };
43627
- } else if (props.maxHeight) {
43628
- let maxHeight = parseHeight(props.maxHeight);
43629
- if (typeof maxHeight === "number") {
43630
- maxHeight = layout.scrollX.value ? maxHeight - layout.gutterWidth : maxHeight;
43631
- if (props.showHeader) {
43632
- maxHeight -= layout.headerHeight.value;
43633
- }
43634
- maxHeight -= layout.footerHeight.value;
43635
- return {
43636
- "max-height": `${maxHeight}px`
43637
- };
43638
- }
43639
- }
43640
- return {};
43641
- });
43642
43565
  return {
43643
43566
  isHidden,
43644
43567
  renderExpanded,
@@ -43647,19 +43570,17 @@
43647
43570
  handleMouseLeave,
43648
43571
  handleHeaderFooterMousewheel,
43649
43572
  tableSize,
43650
- bodyHeight,
43651
- height,
43652
43573
  emptyBlockStyle,
43653
43574
  handleFixedMousewheel,
43654
- fixedHeight,
43655
- fixedBodyHeight,
43656
43575
  resizeProxyVisible,
43657
43576
  bodyWidth,
43658
43577
  resizeState,
43659
43578
  doLayout,
43660
43579
  tableBodyStyles,
43661
43580
  tableLayout,
43662
- scrollbarViewStyle
43581
+ scrollbarViewStyle,
43582
+ tableInnerStyle,
43583
+ scrollbarStyle
43663
43584
  };
43664
43585
  }
43665
43586
 
@@ -43834,19 +43755,17 @@
43834
43755
  handleMouseLeave,
43835
43756
  handleHeaderFooterMousewheel,
43836
43757
  tableSize,
43837
- bodyHeight,
43838
- height,
43839
43758
  emptyBlockStyle,
43840
43759
  handleFixedMousewheel,
43841
- fixedHeight,
43842
- fixedBodyHeight,
43843
43760
  resizeProxyVisible,
43844
43761
  bodyWidth,
43845
43762
  resizeState,
43846
43763
  doLayout,
43847
43764
  tableBodyStyles,
43848
43765
  tableLayout,
43849
- scrollbarViewStyle
43766
+ scrollbarViewStyle,
43767
+ tableInnerStyle,
43768
+ scrollbarStyle
43850
43769
  } = useStyle(props, layout, store, table);
43851
43770
  const { scrollBarRef, scrollTo, setScrollLeft, setScrollTop } = useScrollbar$1();
43852
43771
  const debouncedUpdateLayout = debounce(doLayout, 50);
@@ -43877,14 +43796,10 @@
43877
43796
  resizeState,
43878
43797
  isGroup,
43879
43798
  bodyWidth,
43880
- bodyHeight,
43881
- height,
43882
43799
  tableBodyStyles,
43883
43800
  emptyBlockStyle,
43884
43801
  debouncedUpdateLayout,
43885
43802
  handleFixedMousewheel,
43886
- fixedHeight,
43887
- fixedBodyHeight,
43888
43803
  setCurrentRow,
43889
43804
  getSelectionRows,
43890
43805
  toggleRowSelection,
@@ -43902,6 +43817,8 @@
43902
43817
  computedEmptyText,
43903
43818
  tableLayout,
43904
43819
  scrollbarViewStyle,
43820
+ tableInnerStyle,
43821
+ scrollbarStyle,
43905
43822
  scrollBarRef,
43906
43823
  scrollTo,
43907
43824
  setScrollLeft,
@@ -43947,7 +43864,8 @@
43947
43864
  onMouseleave: _cache[0] || (_cache[0] = ($event) => _ctx.handleMouseLeave())
43948
43865
  }, [
43949
43866
  vue.createElementVNode("div", {
43950
- class: vue.normalizeClass(_ctx.ns.e("inner-wrapper"))
43867
+ class: vue.normalizeClass(_ctx.ns.e("inner-wrapper")),
43868
+ style: vue.normalizeStyle(_ctx.tableInnerStyle)
43951
43869
  }, [
43952
43870
  vue.createElementVNode("div", _hoisted_2$7, [
43953
43871
  vue.renderSlot(_ctx.$slots, "default")
@@ -43982,14 +43900,12 @@
43982
43900
  ]) : vue.createCommentVNode("v-if", true),
43983
43901
  vue.createElementVNode("div", {
43984
43902
  ref: "bodyWrapper",
43985
- style: vue.normalizeStyle(_ctx.bodyHeight),
43986
43903
  class: vue.normalizeClass(_ctx.ns.e("body-wrapper"))
43987
43904
  }, [
43988
43905
  vue.createVNode(_component_el_scrollbar, {
43989
43906
  ref: "scrollBarRef",
43990
- height: _ctx.maxHeight ? void 0 : _ctx.height,
43991
- "max-height": _ctx.maxHeight ? _ctx.height : void 0,
43992
43907
  "view-style": _ctx.scrollbarViewStyle,
43908
+ "wrap-style": _ctx.scrollbarStyle,
43993
43909
  always: _ctx.scrollbarAlwaysOn
43994
43910
  }, {
43995
43911
  default: vue.withCtx(() => [
@@ -44048,30 +43964,30 @@
44048
43964
  ], 2)) : vue.createCommentVNode("v-if", true)
44049
43965
  ]),
44050
43966
  _: 3
44051
- }, 8, ["height", "max-height", "view-style", "always"])
44052
- ], 6),
44053
- _ctx.border || _ctx.isGroup ? (vue.openBlock(), vue.createElementBlock("div", {
43967
+ }, 8, ["view-style", "wrap-style", "always"])
43968
+ ], 2),
43969
+ _ctx.showSummary ? vue.withDirectives((vue.openBlock(), vue.createElementBlock("div", {
44054
43970
  key: 1,
43971
+ ref: "footerWrapper",
43972
+ class: vue.normalizeClass(_ctx.ns.e("footer-wrapper"))
43973
+ }, [
43974
+ vue.createVNode(_component_table_footer, {
43975
+ border: _ctx.border,
43976
+ "default-sort": _ctx.defaultSort,
43977
+ store: _ctx.store,
43978
+ style: vue.normalizeStyle(_ctx.tableBodyStyles),
43979
+ "sum-text": _ctx.computedSumText,
43980
+ "summary-method": _ctx.summaryMethod
43981
+ }, null, 8, ["border", "default-sort", "store", "style", "sum-text", "summary-method"])
43982
+ ], 2)), [
43983
+ [vue.vShow, !_ctx.isEmpty],
43984
+ [_directive_mousewheel, _ctx.handleHeaderFooterMousewheel]
43985
+ ]) : vue.createCommentVNode("v-if", true),
43986
+ _ctx.border || _ctx.isGroup ? (vue.openBlock(), vue.createElementBlock("div", {
43987
+ key: 2,
44055
43988
  class: vue.normalizeClass(_ctx.ns.e("border-left-patch"))
44056
43989
  }, null, 2)) : vue.createCommentVNode("v-if", true)
44057
- ], 2),
44058
- _ctx.showSummary ? vue.withDirectives((vue.openBlock(), vue.createElementBlock("div", {
44059
- key: 0,
44060
- ref: "footerWrapper",
44061
- class: vue.normalizeClass(_ctx.ns.e("footer-wrapper"))
44062
- }, [
44063
- vue.createVNode(_component_table_footer, {
44064
- border: _ctx.border,
44065
- "default-sort": _ctx.defaultSort,
44066
- store: _ctx.store,
44067
- style: vue.normalizeStyle(_ctx.tableBodyStyles),
44068
- "sum-text": _ctx.computedSumText,
44069
- "summary-method": _ctx.summaryMethod
44070
- }, null, 8, ["border", "default-sort", "store", "style", "sum-text", "summary-method"])
44071
- ], 2)), [
44072
- [vue.vShow, !_ctx.isEmpty],
44073
- [_directive_mousewheel, _ctx.handleHeaderFooterMousewheel]
44074
- ]) : vue.createCommentVNode("v-if", true),
43990
+ ], 6),
44075
43991
  vue.withDirectives(vue.createElementVNode("div", {
44076
43992
  ref: "resizeProxy",
44077
43993
  class: vue.normalizeClass(_ctx.ns.e("column-resize-proxy"))