@element-plus/nightly 0.0.20241114 → 0.0.20241116

Sign up to get free protection for your applications and to get access to all the features.
Files changed (292) hide show
  1. package/dist/index.full.js +22 -23
  2. package/dist/index.full.min.js +12 -12
  3. package/dist/index.full.min.js.map +1 -1
  4. package/dist/index.full.min.mjs +12 -12
  5. package/dist/index.full.min.mjs.map +1 -1
  6. package/dist/index.full.mjs +22 -23
  7. package/dist/locale/af.js +1 -1
  8. package/dist/locale/af.min.js +1 -1
  9. package/dist/locale/af.min.mjs +1 -1
  10. package/dist/locale/af.mjs +1 -1
  11. package/dist/locale/ar-eg.js +1 -1
  12. package/dist/locale/ar-eg.min.js +1 -1
  13. package/dist/locale/ar-eg.min.mjs +1 -1
  14. package/dist/locale/ar-eg.mjs +1 -1
  15. package/dist/locale/ar.js +1 -1
  16. package/dist/locale/ar.min.js +1 -1
  17. package/dist/locale/ar.min.mjs +1 -1
  18. package/dist/locale/ar.mjs +1 -1
  19. package/dist/locale/az.js +1 -1
  20. package/dist/locale/az.min.js +1 -1
  21. package/dist/locale/az.min.mjs +1 -1
  22. package/dist/locale/az.mjs +1 -1
  23. package/dist/locale/bg.js +1 -1
  24. package/dist/locale/bg.min.js +1 -1
  25. package/dist/locale/bg.min.mjs +1 -1
  26. package/dist/locale/bg.mjs +1 -1
  27. package/dist/locale/bn.js +1 -1
  28. package/dist/locale/bn.min.js +1 -1
  29. package/dist/locale/bn.min.mjs +1 -1
  30. package/dist/locale/bn.mjs +1 -1
  31. package/dist/locale/ca.js +1 -1
  32. package/dist/locale/ca.min.js +1 -1
  33. package/dist/locale/ca.min.mjs +1 -1
  34. package/dist/locale/ca.mjs +1 -1
  35. package/dist/locale/ckb.js +1 -1
  36. package/dist/locale/ckb.min.js +1 -1
  37. package/dist/locale/ckb.min.mjs +1 -1
  38. package/dist/locale/ckb.mjs +1 -1
  39. package/dist/locale/cs.js +1 -1
  40. package/dist/locale/cs.min.js +1 -1
  41. package/dist/locale/cs.min.mjs +1 -1
  42. package/dist/locale/cs.mjs +1 -1
  43. package/dist/locale/da.js +1 -1
  44. package/dist/locale/da.min.js +1 -1
  45. package/dist/locale/da.min.mjs +1 -1
  46. package/dist/locale/da.mjs +1 -1
  47. package/dist/locale/de.js +1 -1
  48. package/dist/locale/de.min.js +1 -1
  49. package/dist/locale/de.min.mjs +1 -1
  50. package/dist/locale/de.mjs +1 -1
  51. package/dist/locale/el.js +1 -1
  52. package/dist/locale/el.min.js +1 -1
  53. package/dist/locale/el.min.mjs +1 -1
  54. package/dist/locale/el.mjs +1 -1
  55. package/dist/locale/en.js +1 -1
  56. package/dist/locale/en.min.js +1 -1
  57. package/dist/locale/en.min.mjs +1 -1
  58. package/dist/locale/en.mjs +1 -1
  59. package/dist/locale/eo.js +1 -1
  60. package/dist/locale/eo.min.js +1 -1
  61. package/dist/locale/eo.min.mjs +1 -1
  62. package/dist/locale/eo.mjs +1 -1
  63. package/dist/locale/es.js +1 -1
  64. package/dist/locale/es.min.js +1 -1
  65. package/dist/locale/es.min.mjs +1 -1
  66. package/dist/locale/es.mjs +1 -1
  67. package/dist/locale/et.js +1 -1
  68. package/dist/locale/et.min.js +1 -1
  69. package/dist/locale/et.min.mjs +1 -1
  70. package/dist/locale/et.mjs +1 -1
  71. package/dist/locale/eu.js +1 -1
  72. package/dist/locale/eu.min.js +1 -1
  73. package/dist/locale/eu.min.mjs +1 -1
  74. package/dist/locale/eu.mjs +1 -1
  75. package/dist/locale/fa.js +1 -1
  76. package/dist/locale/fa.min.js +1 -1
  77. package/dist/locale/fa.min.mjs +1 -1
  78. package/dist/locale/fa.mjs +1 -1
  79. package/dist/locale/fi.js +1 -1
  80. package/dist/locale/fi.min.js +1 -1
  81. package/dist/locale/fi.min.mjs +1 -1
  82. package/dist/locale/fi.mjs +1 -1
  83. package/dist/locale/fr.js +1 -1
  84. package/dist/locale/fr.min.js +1 -1
  85. package/dist/locale/fr.min.mjs +1 -1
  86. package/dist/locale/fr.mjs +1 -1
  87. package/dist/locale/he.js +1 -1
  88. package/dist/locale/he.min.js +1 -1
  89. package/dist/locale/he.min.mjs +1 -1
  90. package/dist/locale/he.mjs +1 -1
  91. package/dist/locale/hr.js +1 -1
  92. package/dist/locale/hr.min.js +1 -1
  93. package/dist/locale/hr.min.mjs +1 -1
  94. package/dist/locale/hr.mjs +1 -1
  95. package/dist/locale/hu.js +1 -1
  96. package/dist/locale/hu.min.js +1 -1
  97. package/dist/locale/hu.min.mjs +1 -1
  98. package/dist/locale/hu.mjs +1 -1
  99. package/dist/locale/hy-am.js +1 -1
  100. package/dist/locale/hy-am.min.js +1 -1
  101. package/dist/locale/hy-am.min.mjs +1 -1
  102. package/dist/locale/hy-am.mjs +1 -1
  103. package/dist/locale/id.js +1 -1
  104. package/dist/locale/id.min.js +1 -1
  105. package/dist/locale/id.min.mjs +1 -1
  106. package/dist/locale/id.mjs +1 -1
  107. package/dist/locale/it.js +1 -1
  108. package/dist/locale/it.min.js +1 -1
  109. package/dist/locale/it.min.mjs +1 -1
  110. package/dist/locale/it.mjs +1 -1
  111. package/dist/locale/ja.js +1 -1
  112. package/dist/locale/ja.min.js +1 -1
  113. package/dist/locale/ja.min.mjs +1 -1
  114. package/dist/locale/ja.mjs +1 -1
  115. package/dist/locale/kk.js +1 -1
  116. package/dist/locale/kk.min.js +1 -1
  117. package/dist/locale/kk.min.mjs +1 -1
  118. package/dist/locale/kk.mjs +1 -1
  119. package/dist/locale/km.js +1 -1
  120. package/dist/locale/km.min.js +1 -1
  121. package/dist/locale/km.min.mjs +1 -1
  122. package/dist/locale/km.mjs +1 -1
  123. package/dist/locale/ko.js +1 -1
  124. package/dist/locale/ko.min.js +1 -1
  125. package/dist/locale/ko.min.mjs +1 -1
  126. package/dist/locale/ko.mjs +1 -1
  127. package/dist/locale/ku.js +1 -1
  128. package/dist/locale/ku.min.js +1 -1
  129. package/dist/locale/ku.min.mjs +1 -1
  130. package/dist/locale/ku.mjs +1 -1
  131. package/dist/locale/ky.js +1 -1
  132. package/dist/locale/ky.min.js +1 -1
  133. package/dist/locale/ky.min.mjs +1 -1
  134. package/dist/locale/ky.mjs +1 -1
  135. package/dist/locale/lt.js +1 -1
  136. package/dist/locale/lt.min.js +1 -1
  137. package/dist/locale/lt.min.mjs +1 -1
  138. package/dist/locale/lt.mjs +1 -1
  139. package/dist/locale/lv.js +1 -1
  140. package/dist/locale/lv.min.js +1 -1
  141. package/dist/locale/lv.min.mjs +1 -1
  142. package/dist/locale/lv.mjs +1 -1
  143. package/dist/locale/mg.js +1 -1
  144. package/dist/locale/mg.min.js +1 -1
  145. package/dist/locale/mg.min.mjs +1 -1
  146. package/dist/locale/mg.mjs +1 -1
  147. package/dist/locale/mn.js +1 -1
  148. package/dist/locale/mn.min.js +1 -1
  149. package/dist/locale/mn.min.mjs +1 -1
  150. package/dist/locale/mn.mjs +1 -1
  151. package/dist/locale/my.js +1 -1
  152. package/dist/locale/my.min.js +1 -1
  153. package/dist/locale/my.min.mjs +1 -1
  154. package/dist/locale/my.mjs +1 -1
  155. package/dist/locale/nb-no.js +1 -1
  156. package/dist/locale/nb-no.min.js +1 -1
  157. package/dist/locale/nb-no.min.mjs +1 -1
  158. package/dist/locale/nb-no.mjs +1 -1
  159. package/dist/locale/nl.js +1 -1
  160. package/dist/locale/nl.min.js +1 -1
  161. package/dist/locale/nl.min.mjs +1 -1
  162. package/dist/locale/nl.mjs +1 -1
  163. package/dist/locale/pa.js +1 -1
  164. package/dist/locale/pa.min.js +1 -1
  165. package/dist/locale/pa.min.mjs +1 -1
  166. package/dist/locale/pa.mjs +1 -1
  167. package/dist/locale/pl.js +1 -1
  168. package/dist/locale/pl.min.js +1 -1
  169. package/dist/locale/pl.min.mjs +1 -1
  170. package/dist/locale/pl.mjs +1 -1
  171. package/dist/locale/pt-br.js +1 -1
  172. package/dist/locale/pt-br.min.js +1 -1
  173. package/dist/locale/pt-br.min.mjs +1 -1
  174. package/dist/locale/pt-br.mjs +1 -1
  175. package/dist/locale/pt.js +1 -1
  176. package/dist/locale/pt.min.js +1 -1
  177. package/dist/locale/pt.min.mjs +1 -1
  178. package/dist/locale/pt.mjs +1 -1
  179. package/dist/locale/ro.js +1 -1
  180. package/dist/locale/ro.min.js +1 -1
  181. package/dist/locale/ro.min.mjs +1 -1
  182. package/dist/locale/ro.mjs +1 -1
  183. package/dist/locale/ru.js +1 -1
  184. package/dist/locale/ru.min.js +1 -1
  185. package/dist/locale/ru.min.mjs +1 -1
  186. package/dist/locale/ru.mjs +1 -1
  187. package/dist/locale/sk.js +1 -1
  188. package/dist/locale/sk.min.js +1 -1
  189. package/dist/locale/sk.min.mjs +1 -1
  190. package/dist/locale/sk.mjs +1 -1
  191. package/dist/locale/sl.js +1 -1
  192. package/dist/locale/sl.min.js +1 -1
  193. package/dist/locale/sl.min.mjs +1 -1
  194. package/dist/locale/sl.mjs +1 -1
  195. package/dist/locale/sr.js +1 -1
  196. package/dist/locale/sr.min.js +1 -1
  197. package/dist/locale/sr.min.mjs +1 -1
  198. package/dist/locale/sr.mjs +1 -1
  199. package/dist/locale/sv.js +1 -1
  200. package/dist/locale/sv.min.js +1 -1
  201. package/dist/locale/sv.min.mjs +1 -1
  202. package/dist/locale/sv.mjs +1 -1
  203. package/dist/locale/sw.js +1 -1
  204. package/dist/locale/sw.min.js +1 -1
  205. package/dist/locale/sw.min.mjs +1 -1
  206. package/dist/locale/sw.mjs +1 -1
  207. package/dist/locale/ta.js +1 -1
  208. package/dist/locale/ta.min.js +1 -1
  209. package/dist/locale/ta.min.mjs +1 -1
  210. package/dist/locale/ta.mjs +1 -1
  211. package/dist/locale/th.js +1 -1
  212. package/dist/locale/th.min.js +1 -1
  213. package/dist/locale/th.min.mjs +1 -1
  214. package/dist/locale/th.mjs +1 -1
  215. package/dist/locale/tk.js +1 -1
  216. package/dist/locale/tk.min.js +1 -1
  217. package/dist/locale/tk.min.mjs +1 -1
  218. package/dist/locale/tk.mjs +1 -1
  219. package/dist/locale/tr.js +1 -1
  220. package/dist/locale/tr.min.js +1 -1
  221. package/dist/locale/tr.min.mjs +1 -1
  222. package/dist/locale/tr.mjs +1 -1
  223. package/dist/locale/ug-cn.js +1 -1
  224. package/dist/locale/ug-cn.min.js +1 -1
  225. package/dist/locale/ug-cn.min.mjs +1 -1
  226. package/dist/locale/ug-cn.mjs +1 -1
  227. package/dist/locale/uk.js +1 -1
  228. package/dist/locale/uk.min.js +1 -1
  229. package/dist/locale/uk.min.mjs +1 -1
  230. package/dist/locale/uk.mjs +1 -1
  231. package/dist/locale/uz-uz.js +1 -1
  232. package/dist/locale/uz-uz.min.js +1 -1
  233. package/dist/locale/uz-uz.min.mjs +1 -1
  234. package/dist/locale/uz-uz.mjs +1 -1
  235. package/dist/locale/vi.js +1 -1
  236. package/dist/locale/vi.min.js +1 -1
  237. package/dist/locale/vi.min.mjs +1 -1
  238. package/dist/locale/vi.mjs +1 -1
  239. package/dist/locale/zh-cn.js +1 -1
  240. package/dist/locale/zh-cn.min.js +1 -1
  241. package/dist/locale/zh-cn.min.mjs +1 -1
  242. package/dist/locale/zh-cn.mjs +1 -1
  243. package/dist/locale/zh-tw.js +1 -1
  244. package/dist/locale/zh-tw.min.js +1 -1
  245. package/dist/locale/zh-tw.min.mjs +1 -1
  246. package/dist/locale/zh-tw.mjs +1 -1
  247. package/es/components/pagination/src/components/next.mjs +19 -36
  248. package/es/components/pagination/src/components/next.mjs.map +1 -1
  249. package/es/components/pagination/src/components/next2.mjs +36 -19
  250. package/es/components/pagination/src/components/next2.mjs.map +1 -1
  251. package/es/components/pagination/src/pagination.mjs +1 -1
  252. package/es/components/table/src/table/style-helper.d.ts +0 -10
  253. package/es/components/table/src/table/style-helper.mjs +0 -14
  254. package/es/components/table/src/table/style-helper.mjs.map +1 -1
  255. package/es/components/table/src/table.mjs +2 -5
  256. package/es/components/table/src/table.mjs.map +1 -1
  257. package/es/components/table/src/table.vue.d.ts +0 -10
  258. package/es/components/tree-v2/src/tree-node.mjs +17 -1
  259. package/es/components/tree-v2/src/tree-node.mjs.map +1 -1
  260. package/es/components/tree-v2/src/tree-node.vue.d.ts +12 -11
  261. package/es/components/tree-v2/src/tree.vue.d.ts +2 -0
  262. package/es/components/tree-v2/src/types.d.ts +3 -0
  263. package/es/components/tree-v2/src/virtual-tree.d.ts +3 -1
  264. package/es/components/tree-v2/src/virtual-tree.mjs +3 -1
  265. package/es/components/tree-v2/src/virtual-tree.mjs.map +1 -1
  266. package/es/version.d.ts +1 -1
  267. package/es/version.mjs +1 -1
  268. package/es/version.mjs.map +1 -1
  269. package/lib/components/pagination/src/components/next.js +19 -36
  270. package/lib/components/pagination/src/components/next.js.map +1 -1
  271. package/lib/components/pagination/src/components/next2.js +36 -19
  272. package/lib/components/pagination/src/components/next2.js.map +1 -1
  273. package/lib/components/pagination/src/pagination.js +1 -1
  274. package/lib/components/table/src/table/style-helper.d.ts +0 -10
  275. package/lib/components/table/src/table/style-helper.js +0 -14
  276. package/lib/components/table/src/table/style-helper.js.map +1 -1
  277. package/lib/components/table/src/table.js +2 -5
  278. package/lib/components/table/src/table.js.map +1 -1
  279. package/lib/components/table/src/table.vue.d.ts +0 -10
  280. package/lib/components/tree-v2/src/tree-node.js +17 -1
  281. package/lib/components/tree-v2/src/tree-node.js.map +1 -1
  282. package/lib/components/tree-v2/src/tree-node.vue.d.ts +12 -11
  283. package/lib/components/tree-v2/src/tree.vue.d.ts +2 -0
  284. package/lib/components/tree-v2/src/types.d.ts +3 -0
  285. package/lib/components/tree-v2/src/virtual-tree.d.ts +3 -1
  286. package/lib/components/tree-v2/src/virtual-tree.js +3 -1
  287. package/lib/components/tree-v2/src/virtual-tree.js.map +1 -1
  288. package/lib/version.d.ts +1 -1
  289. package/lib/version.js +1 -1
  290. package/lib/version.js.map +1 -1
  291. package/package.json +2 -2
  292. package/web-types.json +1 -1
@@ -1,4 +1,4 @@
1
- /*! Element Plus v0.0.20241114 */
1
+ /*! Element Plus v0.0.20241116 */
2
2
 
3
3
  (function (global, factory) {
4
4
  typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('vue')) :
@@ -11567,7 +11567,7 @@
11567
11567
 
11568
11568
  const ElConfigProvider = withInstall(ConfigProvider);
11569
11569
 
11570
- const version$1 = "0.0.20241114";
11570
+ const version$1 = "0.0.20241116";
11571
11571
 
11572
11572
  const makeInstaller = (components = []) => {
11573
11573
  const install = (app, options) => {
@@ -46848,19 +46848,6 @@
46848
46848
  height
46849
46849
  };
46850
46850
  });
46851
- const tableInnerStyle = vue.computed(() => {
46852
- if (props.height) {
46853
- return {
46854
- height: !Number.isNaN(Number(props.height)) ? `${props.height}px` : props.height
46855
- };
46856
- }
46857
- if (props.maxHeight) {
46858
- return {
46859
- maxHeight: !Number.isNaN(Number(props.maxHeight)) ? `${props.maxHeight}px` : props.maxHeight
46860
- };
46861
- }
46862
- return {};
46863
- });
46864
46851
  const scrollbarStyle = vue.computed(() => {
46865
46852
  if (props.height) {
46866
46853
  return {
@@ -46912,7 +46899,6 @@
46912
46899
  tableBodyStyles,
46913
46900
  tableLayout,
46914
46901
  scrollbarViewStyle,
46915
- tableInnerStyle,
46916
46902
  scrollbarStyle
46917
46903
  };
46918
46904
  }
@@ -47149,7 +47135,6 @@
47149
47135
  tableBodyStyles,
47150
47136
  tableLayout,
47151
47137
  scrollbarViewStyle,
47152
- tableInnerStyle,
47153
47138
  scrollbarStyle
47154
47139
  } = useStyle(props, layout, store, table);
47155
47140
  const { scrollBarRef, scrollTo, setScrollLeft, setScrollTop } = useScrollbar$1();
@@ -47215,7 +47200,6 @@
47215
47200
  computedEmptyText,
47216
47201
  tableLayout,
47217
47202
  scrollbarViewStyle,
47218
- tableInnerStyle,
47219
47203
  scrollbarStyle,
47220
47204
  scrollBarRef,
47221
47205
  scrollTo,
@@ -47257,8 +47241,7 @@
47257
47241
  onMouseleave: _ctx.handleMouseLeave
47258
47242
  }, [
47259
47243
  vue.createElementVNode("div", {
47260
- class: vue.normalizeClass(_ctx.ns.e("inner-wrapper")),
47261
- style: vue.normalizeStyle(_ctx.tableInnerStyle)
47244
+ class: vue.normalizeClass(_ctx.ns.e("inner-wrapper"))
47262
47245
  }, [
47263
47246
  vue.createElementVNode("div", {
47264
47247
  ref: "hiddenColumns",
@@ -47409,7 +47392,7 @@
47409
47392
  key: 2,
47410
47393
  class: vue.normalizeClass(_ctx.ns.e("border-left-patch"))
47411
47394
  }, null, 2)) : vue.createCommentVNode("v-if", true)
47412
- ], 6),
47395
+ ], 2),
47413
47396
  vue.withDirectives(vue.createElementVNode("div", {
47414
47397
  ref: "resizeProxy",
47415
47398
  class: vue.normalizeClass(_ctx.ns.e("column-resize-proxy"))
@@ -54291,6 +54274,7 @@
54291
54274
  TreeOptionsEnum2["LABEL"] = "label";
54292
54275
  TreeOptionsEnum2["CHILDREN"] = "children";
54293
54276
  TreeOptionsEnum2["DISABLED"] = "disabled";
54277
+ TreeOptionsEnum2["CLASS"] = "";
54294
54278
  return TreeOptionsEnum2;
54295
54279
  })(TreeOptionsEnum || {});
54296
54280
  var SetOperationEnum = /* @__PURE__ */ ((SetOperationEnum2) => {
@@ -54320,7 +54304,8 @@
54320
54304
  children: "children" /* CHILDREN */,
54321
54305
  label: "label" /* LABEL */,
54322
54306
  disabled: "disabled" /* DISABLED */,
54323
- value: "id" /* KEY */
54307
+ value: "id" /* KEY */,
54308
+ class: "" /* CLASS */
54324
54309
  })
54325
54310
  },
54326
54311
  highlightCurrent: {
@@ -54985,6 +54970,19 @@
54985
54970
  var _a;
54986
54971
  return (_a = tree == null ? void 0 : tree.props.icon) != null ? _a : caret_right_default;
54987
54972
  });
54973
+ const getNodeClass = (node) => {
54974
+ const nodeClassFunc = tree == null ? void 0 : tree.props.props.class;
54975
+ if (!nodeClassFunc)
54976
+ return {};
54977
+ let className;
54978
+ if (isFunction$1(nodeClassFunc)) {
54979
+ const { data } = node;
54980
+ className = nodeClassFunc(data, node);
54981
+ } else {
54982
+ className = nodeClassFunc;
54983
+ }
54984
+ return isString$1(className) ? { [className]: true } : className;
54985
+ };
54988
54986
  const handleClick = (e) => {
54989
54987
  emit("click", props.node, e);
54990
54988
  };
@@ -55014,7 +55012,8 @@
55014
55012
  vue.unref(ns).is("expanded", _ctx.expanded),
55015
55013
  vue.unref(ns).is("current", _ctx.current),
55016
55014
  vue.unref(ns).is("focusable", !_ctx.disabled),
55017
- vue.unref(ns).is("checked", !_ctx.disabled && _ctx.checked)
55015
+ vue.unref(ns).is("checked", !_ctx.disabled && _ctx.checked),
55016
+ getNodeClass(_ctx.node)
55018
55017
  ]),
55019
55018
  role: "treeitem",
55020
55019
  tabindex: "-1",