@element-plus/nightly 0.0.20220708 → 0.0.20220711

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 (300) hide show
  1. package/dist/index.css +1 -1
  2. package/dist/index.full.js +122 -203
  3. package/dist/index.full.min.js +14 -14
  4. package/dist/index.full.min.js.map +1 -1
  5. package/dist/index.full.min.mjs +14 -14
  6. package/dist/index.full.min.mjs.map +1 -1
  7. package/dist/index.full.mjs +122 -203
  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/scrollbar/src/scrollbar2.mjs +3 -1
  235. package/es/components/scrollbar/src/scrollbar2.mjs.map +1 -1
  236. package/es/components/select/src/useSelect.mjs +0 -2
  237. package/es/components/select/src/useSelect.mjs.map +1 -1
  238. package/es/components/slider/src/marker.mjs +1 -1
  239. package/es/components/slider/src/marker.mjs.map +1 -1
  240. package/es/components/steps/src/item2.mjs +1 -1
  241. package/es/components/steps/src/item2.mjs.map +1 -1
  242. package/es/components/table/index.d.ts +21 -31
  243. package/es/components/table/src/table/style-helper.d.ts +21 -31
  244. package/es/components/table/src/table/style-helper.mjs +68 -95
  245. package/es/components/table/src/table/style-helper.mjs.map +1 -1
  246. package/es/components/table/src/table-layout.d.ts +1 -5
  247. package/es/components/table/src/table-layout.mjs +3 -52
  248. package/es/components/table/src/table-layout.mjs.map +1 -1
  249. package/es/components/table/src/table.mjs +29 -34
  250. package/es/components/table/src/table.mjs.map +1 -1
  251. package/es/components/table/src/table.vue.d.ts +21 -31
  252. package/es/components/table/src/util.mjs +6 -11
  253. package/es/components/table/src/util.mjs.map +1 -1
  254. package/es/components/table-v2/index.d.ts +1 -1
  255. package/es/components/table-v2/src/components/header.d.ts +1 -1
  256. package/es/components/table-v2/src/table-grid.d.ts +1 -1
  257. package/es/components/table-v2/src/table-v2.d.ts +1 -1
  258. package/es/hooks/use-floating/index.d.ts +1 -1
  259. package/es/hooks/use-floating/index.mjs.map +1 -1
  260. package/es/version.d.ts +1 -1
  261. package/es/version.mjs +1 -1
  262. package/es/version.mjs.map +1 -1
  263. package/lib/components/cascader/src/index.js +10 -9
  264. package/lib/components/cascader/src/index.js.map +1 -1
  265. package/lib/components/scrollbar/src/scrollbar2.js +3 -1
  266. package/lib/components/scrollbar/src/scrollbar2.js.map +1 -1
  267. package/lib/components/select/src/useSelect.js +0 -2
  268. package/lib/components/select/src/useSelect.js.map +1 -1
  269. package/lib/components/slider/src/marker.js +1 -1
  270. package/lib/components/slider/src/marker.js.map +1 -1
  271. package/lib/components/steps/src/item2.js +1 -1
  272. package/lib/components/steps/src/item2.js.map +1 -1
  273. package/lib/components/table/index.d.ts +21 -31
  274. package/lib/components/table/src/table/style-helper.d.ts +21 -31
  275. package/lib/components/table/src/table/style-helper.js +67 -94
  276. package/lib/components/table/src/table/style-helper.js.map +1 -1
  277. package/lib/components/table/src/table-layout.d.ts +1 -5
  278. package/lib/components/table/src/table-layout.js +3 -52
  279. package/lib/components/table/src/table-layout.js.map +1 -1
  280. package/lib/components/table/src/table.js +29 -34
  281. package/lib/components/table/src/table.js.map +1 -1
  282. package/lib/components/table/src/table.vue.d.ts +21 -31
  283. package/lib/components/table/src/util.js +6 -11
  284. package/lib/components/table/src/util.js.map +1 -1
  285. package/lib/components/table-v2/index.d.ts +1 -1
  286. package/lib/components/table-v2/src/components/header.d.ts +1 -1
  287. package/lib/components/table-v2/src/table-grid.d.ts +1 -1
  288. package/lib/components/table-v2/src/table-v2.d.ts +1 -1
  289. package/lib/hooks/use-floating/index.d.ts +1 -1
  290. package/lib/hooks/use-floating/index.js.map +1 -1
  291. package/lib/version.d.ts +1 -1
  292. package/lib/version.js +1 -1
  293. package/lib/version.js.map +1 -1
  294. package/package.json +2 -2
  295. package/theme-chalk/el-slider.css +1 -1
  296. package/theme-chalk/el-table.css +1 -1
  297. package/theme-chalk/index.css +1 -1
  298. package/theme-chalk/src/slider.scss +2 -0
  299. package/theme-chalk/src/table.scss +7 -1
  300. package/web-types.json +1 -1
@@ -1,4 +1,4 @@
1
- /*! Element Plus v0.0.20220708 */
1
+ /*! Element Plus v0.0.20220711 */
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.20220708";
10737
+ const version$1 = "0.0.20220711";
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"))
@@ -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;
@@ -39201,7 +39202,7 @@
39201
39202
  const style = vue.computed(() => isString(props.mark) ? void 0 : props.mark.style);
39202
39203
  return () => vue.h("div", {
39203
39204
  class: ns.e("marks-text"),
39204
- style
39205
+ style: style.value
39205
39206
  }, label.value);
39206
39207
  }
39207
39208
  });
@@ -39817,7 +39818,7 @@
39817
39818
  }, null, 6)
39818
39819
  ], 2)) : vue.createCommentVNode("v-if", true),
39819
39820
  vue.createElementVNode("div", {
39820
- class: vue.normalizeClass([vue.unref(ns).e("icon"), vue.unref(ns).is(_ctx.icon ? "icon" : "text")])
39821
+ class: vue.normalizeClass([vue.unref(ns).e("icon"), vue.unref(ns).is(_ctx.icon || _ctx.$slots.icon ? "icon" : "text")])
39821
39822
  }, [
39822
39823
  vue.unref(currentStatus) !== "success" && vue.unref(currentStatus) !== "error" ? vue.renderSlot(_ctx.$slots, "icon", { key: 0 }, () => [
39823
39824
  _ctx.icon ? (vue.openBlock(), vue.createBlock(vue.unref(ElIcon), {
@@ -40520,11 +40521,9 @@
40520
40521
  try {
40521
40522
  popperInstance && popperInstance.destroy();
40522
40523
  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
- }
40524
+ trigger.removeEventListener("mouseenter", showPopper);
40525
+ trigger.removeEventListener("mouseleave", removePopper);
40526
+ scrollContainer == null ? void 0 : scrollContainer.removeEventListener("scroll", removePopper);
40528
40527
  removePopper = void 0;
40529
40528
  } catch (e) {
40530
40529
  }
@@ -40552,11 +40551,9 @@
40552
40551
  ],
40553
40552
  ...popperOptions
40554
40553
  });
40555
- on$1(trigger, "mouseenter", showPopper);
40556
- on$1(trigger, "mouseleave", removePopper);
40557
- if (scrollContainer) {
40558
- on$1(scrollContainer, "scroll", removePopper);
40559
- }
40554
+ trigger.addEventListener("mouseenter", showPopper);
40555
+ trigger.addEventListener("mouseleave", removePopper);
40556
+ scrollContainer == null ? void 0 : scrollContainer.addEventListener("scroll", removePopper);
40560
40557
  return popperInstance;
40561
40558
  }
40562
40559
  const isFixedColumn = (index, fixed, store, realColumns) => {
@@ -41614,14 +41611,6 @@
41614
41611
  this.bodyWidth = vue.ref(null);
41615
41612
  this.fixedWidth = vue.ref(null);
41616
41613
  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
41614
  this.gutterWidth = 0;
41626
41615
  for (const name in options) {
41627
41616
  if (hasOwn(options, name)) {
@@ -41643,15 +41632,11 @@
41643
41632
  const height = this.height.value;
41644
41633
  if (height === null)
41645
41634
  return false;
41646
- const bodyWrapper = this.table.refs.bodyWrapper;
41647
- if (this.table.vnode.el && bodyWrapper) {
41635
+ const scrollBarRef = this.table.refs.scrollBarRef;
41636
+ if (this.table.vnode.el && scrollBarRef) {
41648
41637
  let scrollY = true;
41649
41638
  const prevScrollY = this.scrollY.value;
41650
- if (this.bodyHeight.value === null) {
41651
- scrollY = false;
41652
- } else {
41653
- scrollY = bodyWrapper.scrollHeight > this.bodyHeight.value;
41654
- }
41639
+ scrollY = scrollBarRef.wrap$.scrollHeight > scrollBarRef.wrap$.clientHeight;
41655
41640
  this.scrollY.value = scrollY;
41656
41641
  return prevScrollY !== scrollY;
41657
41642
  }
@@ -41689,43 +41674,6 @@
41689
41674
  return flattenColumns;
41690
41675
  }
41691
41676
  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
41677
  this.updateScrollY();
41730
41678
  this.notifyObservers("scrollable");
41731
41679
  }
@@ -43361,14 +43309,18 @@
43361
43309
  };
43362
43310
  const resizeState = vue.ref({
43363
43311
  width: null,
43364
- height: null
43312
+ height: null,
43313
+ headerHeight: null
43365
43314
  });
43366
43315
  const isGroup = vue.ref(false);
43367
43316
  const scrollbarViewStyle = {
43368
- display: "block",
43317
+ display: "inline-block",
43369
43318
  verticalAlign: "middle"
43370
43319
  };
43371
43320
  const tableWidth = vue.ref();
43321
+ const tableScrollHeight = vue.ref(0);
43322
+ const bodyScrollHeight = vue.ref(0);
43323
+ const headerScrollHeight = vue.ref(0);
43372
43324
  vue.watchEffect(() => {
43373
43325
  layout.setHeight(props.height);
43374
43326
  });
@@ -43425,12 +43377,14 @@
43425
43377
  bindEvents();
43426
43378
  requestAnimationFrame(doLayout);
43427
43379
  const el = table.vnode.el;
43380
+ const tableHeader = table.refs.headerWrapper;
43428
43381
  if (props.flexible && el && el.parentElement) {
43429
43382
  el.parentElement.style.minWidth = "0";
43430
43383
  }
43431
43384
  resizeState.value = {
43432
43385
  width: tableWidth.value = el.offsetWidth,
43433
- height: el.offsetHeight
43386
+ height: el.offsetHeight,
43387
+ headerHeight: props.showHeader && tableHeader ? tableHeader.offsetHeight : null
43434
43388
  };
43435
43389
  store.states.columns.value.forEach((column) => {
43436
43390
  if (column.filteredValue && column.filteredValue.length) {
@@ -43501,23 +43455,36 @@
43501
43455
  }
43502
43456
  };
43503
43457
  const resizeListener = () => {
43458
+ var _a;
43504
43459
  if (!table.$ready)
43505
43460
  return;
43506
43461
  let shouldUpdateLayout = false;
43507
43462
  const el = table.vnode.el;
43508
- const { width: oldWidth, height: oldHeight } = resizeState.value;
43463
+ const {
43464
+ width: oldWidth,
43465
+ height: oldHeight,
43466
+ headerHeight: oldHeaderHeight
43467
+ } = resizeState.value;
43509
43468
  const width = tableWidth.value = el.offsetWidth;
43510
43469
  if (oldWidth !== width) {
43511
43470
  shouldUpdateLayout = true;
43512
43471
  }
43513
- const height2 = el.offsetHeight;
43514
- if ((props.height || shouldUpdateHeight.value) && oldHeight !== height2) {
43472
+ const height = el.offsetHeight;
43473
+ if ((props.height || shouldUpdateHeight.value) && oldHeight !== height) {
43515
43474
  shouldUpdateLayout = true;
43516
43475
  }
43476
+ const tableHeader = table.refs.headerWrapper;
43477
+ if (props.showHeader && tableHeader.offsetHeight !== oldHeaderHeight) {
43478
+ shouldUpdateLayout = true;
43479
+ }
43480
+ tableScrollHeight.value = table.refs.tableWrapper.scrollHeight;
43481
+ headerScrollHeight.value = ((_a = table.refs.headerWrapper) == null ? void 0 : _a.scrollHeight) || 0;
43482
+ bodyScrollHeight.value = tableScrollHeight.value - headerScrollHeight.value;
43517
43483
  if (shouldUpdateLayout) {
43518
43484
  resizeState.value = {
43519
43485
  width,
43520
- height: height2
43486
+ height,
43487
+ headerHeight: props.showHeader ? tableHeader.offsetHeight : null
43521
43488
  };
43522
43489
  doLayout();
43523
43490
  }
@@ -43532,57 +43499,57 @@
43532
43499
  return "fixed";
43533
43500
  return props.tableLayout;
43534
43501
  });
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)`;
43502
+ const emptyBlockStyle = vue.computed(() => {
43503
+ if (props.data && props.data.length)
43504
+ return null;
43505
+ let height = "100%";
43506
+ if (bodyScrollHeight.value) {
43507
+ height = `${bodyScrollHeight.value}px`;
43542
43508
  }
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;
43509
+ const width = tableWidth.value;
43510
+ return {
43511
+ width: width ? `${width}px` : "",
43512
+ height
43513
+ };
43514
+ });
43515
+ const tableInnerStyle = vue.computed(() => {
43549
43516
  if (props.height) {
43550
- return bodyHeight2 ? bodyHeight2 : void 0;
43551
- } else if (props.maxHeight) {
43552
- return calcMaxHeight(props.maxHeight, footerHeight, headerHeight);
43517
+ return {
43518
+ height: !Number.isNaN(Number(props.height)) ? `${props.height}px` : props.height
43519
+ };
43553
43520
  }
43554
- return void 0;
43521
+ if (props.maxHeight) {
43522
+ return {
43523
+ maxHeight: !Number.isNaN(Number(props.maxHeight)) ? `${props.maxHeight}px` : props.maxHeight
43524
+ };
43525
+ }
43526
+ return {};
43555
43527
  });
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;
43528
+ const scrollbarStyle = vue.computed(() => {
43529
+ var _a;
43560
43530
  if (props.height) {
43561
43531
  return {
43562
- height: bodyHeight2 ? `${bodyHeight2}px` : ""
43532
+ height: "100%"
43563
43533
  };
43564
- } else if (props.maxHeight) {
43565
- const maxHeight = calcMaxHeight(props.maxHeight, footerHeight, headerHeight);
43566
- if (maxHeight !== null) {
43534
+ }
43535
+ if (props.maxHeight) {
43536
+ if (!Number.isNaN(Number(props.maxHeight))) {
43537
+ const headerHeight = ((_a = table.refs.headerWrapper) == null ? void 0 : _a.scrollHeight) || 0;
43538
+ const maxHeight = props.maxHeight;
43539
+ const reachMaxHeight = tableScrollHeight.value >= Number(maxHeight);
43540
+ if (reachMaxHeight) {
43541
+ return {
43542
+ maxHeight: `${tableScrollHeight.value - headerHeight}px`
43543
+ };
43544
+ }
43545
+ } else {
43567
43546
  return {
43568
- "max-height": `${maxHeight}${isNumber(maxHeight) ? "px" : ""}`
43547
+ maxHeight: `calc(${props.maxHeight} - ${headerScrollHeight.value}px)`
43569
43548
  };
43570
43549
  }
43571
43550
  }
43572
43551
  return {};
43573
43552
  });
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
43553
  const handleFixedMousewheel = (event, data) => {
43587
43554
  const bodyWrapper = table.refs.bodyWrapper;
43588
43555
  if (Math.abs(data.spinY) > 0) {
@@ -43598,47 +43565,6 @@
43598
43565
  bodyWrapper.scrollLeft += Math.ceil(data.pixelX / 5);
43599
43566
  }
43600
43567
  };
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
43568
  return {
43643
43569
  isHidden,
43644
43570
  renderExpanded,
@@ -43647,19 +43573,17 @@
43647
43573
  handleMouseLeave,
43648
43574
  handleHeaderFooterMousewheel,
43649
43575
  tableSize,
43650
- bodyHeight,
43651
- height,
43652
43576
  emptyBlockStyle,
43653
43577
  handleFixedMousewheel,
43654
- fixedHeight,
43655
- fixedBodyHeight,
43656
43578
  resizeProxyVisible,
43657
43579
  bodyWidth,
43658
43580
  resizeState,
43659
43581
  doLayout,
43660
43582
  tableBodyStyles,
43661
43583
  tableLayout,
43662
- scrollbarViewStyle
43584
+ scrollbarViewStyle,
43585
+ tableInnerStyle,
43586
+ scrollbarStyle
43663
43587
  };
43664
43588
  }
43665
43589
 
@@ -43834,19 +43758,17 @@
43834
43758
  handleMouseLeave,
43835
43759
  handleHeaderFooterMousewheel,
43836
43760
  tableSize,
43837
- bodyHeight,
43838
- height,
43839
43761
  emptyBlockStyle,
43840
43762
  handleFixedMousewheel,
43841
- fixedHeight,
43842
- fixedBodyHeight,
43843
43763
  resizeProxyVisible,
43844
43764
  bodyWidth,
43845
43765
  resizeState,
43846
43766
  doLayout,
43847
43767
  tableBodyStyles,
43848
43768
  tableLayout,
43849
- scrollbarViewStyle
43769
+ scrollbarViewStyle,
43770
+ tableInnerStyle,
43771
+ scrollbarStyle
43850
43772
  } = useStyle(props, layout, store, table);
43851
43773
  const { scrollBarRef, scrollTo, setScrollLeft, setScrollTop } = useScrollbar$1();
43852
43774
  const debouncedUpdateLayout = debounce(doLayout, 50);
@@ -43877,14 +43799,10 @@
43877
43799
  resizeState,
43878
43800
  isGroup,
43879
43801
  bodyWidth,
43880
- bodyHeight,
43881
- height,
43882
43802
  tableBodyStyles,
43883
43803
  emptyBlockStyle,
43884
43804
  debouncedUpdateLayout,
43885
43805
  handleFixedMousewheel,
43886
- fixedHeight,
43887
- fixedBodyHeight,
43888
43806
  setCurrentRow,
43889
43807
  getSelectionRows,
43890
43808
  toggleRowSelection,
@@ -43902,6 +43820,8 @@
43902
43820
  computedEmptyText,
43903
43821
  tableLayout,
43904
43822
  scrollbarViewStyle,
43823
+ tableInnerStyle,
43824
+ scrollbarStyle,
43905
43825
  scrollBarRef,
43906
43826
  scrollTo,
43907
43827
  setScrollLeft,
@@ -43947,7 +43867,8 @@
43947
43867
  onMouseleave: _cache[0] || (_cache[0] = ($event) => _ctx.handleMouseLeave())
43948
43868
  }, [
43949
43869
  vue.createElementVNode("div", {
43950
- class: vue.normalizeClass(_ctx.ns.e("inner-wrapper"))
43870
+ class: vue.normalizeClass(_ctx.ns.e("inner-wrapper")),
43871
+ style: vue.normalizeStyle(_ctx.tableInnerStyle)
43951
43872
  }, [
43952
43873
  vue.createElementVNode("div", _hoisted_2$7, [
43953
43874
  vue.renderSlot(_ctx.$slots, "default")
@@ -43982,14 +43903,12 @@
43982
43903
  ]) : vue.createCommentVNode("v-if", true),
43983
43904
  vue.createElementVNode("div", {
43984
43905
  ref: "bodyWrapper",
43985
- style: vue.normalizeStyle(_ctx.bodyHeight),
43986
43906
  class: vue.normalizeClass(_ctx.ns.e("body-wrapper"))
43987
43907
  }, [
43988
43908
  vue.createVNode(_component_el_scrollbar, {
43989
43909
  ref: "scrollBarRef",
43990
- height: _ctx.maxHeight ? void 0 : _ctx.height,
43991
- "max-height": _ctx.maxHeight ? _ctx.height : void 0,
43992
43910
  "view-style": _ctx.scrollbarViewStyle,
43911
+ "wrap-style": _ctx.scrollbarStyle,
43993
43912
  always: _ctx.scrollbarAlwaysOn
43994
43913
  }, {
43995
43914
  default: vue.withCtx(() => [
@@ -44048,30 +43967,30 @@
44048
43967
  ], 2)) : vue.createCommentVNode("v-if", true)
44049
43968
  ]),
44050
43969
  _: 3
44051
- }, 8, ["height", "max-height", "view-style", "always"])
44052
- ], 6),
44053
- _ctx.border || _ctx.isGroup ? (vue.openBlock(), vue.createElementBlock("div", {
43970
+ }, 8, ["view-style", "wrap-style", "always"])
43971
+ ], 2),
43972
+ _ctx.showSummary ? vue.withDirectives((vue.openBlock(), vue.createElementBlock("div", {
44054
43973
  key: 1,
43974
+ ref: "footerWrapper",
43975
+ class: vue.normalizeClass(_ctx.ns.e("footer-wrapper"))
43976
+ }, [
43977
+ vue.createVNode(_component_table_footer, {
43978
+ border: _ctx.border,
43979
+ "default-sort": _ctx.defaultSort,
43980
+ store: _ctx.store,
43981
+ style: vue.normalizeStyle(_ctx.tableBodyStyles),
43982
+ "sum-text": _ctx.computedSumText,
43983
+ "summary-method": _ctx.summaryMethod
43984
+ }, null, 8, ["border", "default-sort", "store", "style", "sum-text", "summary-method"])
43985
+ ], 2)), [
43986
+ [vue.vShow, !_ctx.isEmpty],
43987
+ [_directive_mousewheel, _ctx.handleHeaderFooterMousewheel]
43988
+ ]) : vue.createCommentVNode("v-if", true),
43989
+ _ctx.border || _ctx.isGroup ? (vue.openBlock(), vue.createElementBlock("div", {
43990
+ key: 2,
44055
43991
  class: vue.normalizeClass(_ctx.ns.e("border-left-patch"))
44056
43992
  }, 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),
43993
+ ], 6),
44075
43994
  vue.withDirectives(vue.createElementVNode("div", {
44076
43995
  ref: "resizeProxy",
44077
43996
  class: vue.normalizeClass(_ctx.ns.e("column-resize-proxy"))