st-comp 0.0.279 → 0.0.281

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 (229) hide show
  1. package/es/ChartLayout.cjs +1 -1
  2. package/es/ChartLayout.js +13 -14
  3. package/es/CustomFunction.cjs +2 -2
  4. package/es/CustomFunction.js +377 -376
  5. package/es/FactorWarning.cjs +1 -1
  6. package/es/FactorWarning.js +294 -294
  7. package/es/Kline.cjs +1 -1
  8. package/es/Kline.js +19 -19
  9. package/es/KlineBasic.cjs +1 -1
  10. package/es/KlineBasic.js +260 -260
  11. package/es/KlineConfig.cjs +1 -1
  12. package/es/KlineConfig.js +579 -553
  13. package/es/KlineNew.cjs +1 -1
  14. package/es/KlineNew.js +17 -17
  15. package/es/KlinePlus.cjs +2 -2
  16. package/es/KlinePlus.js +23 -24
  17. package/es/MonacoEditor.cjs +1 -1
  18. package/es/MonacoEditor.js +30 -29
  19. package/es/Pagination.cjs +1 -1
  20. package/es/Pagination.js +517 -425
  21. package/es/PasswordPrompt.cjs +1 -1
  22. package/es/PasswordPrompt.js +3 -3
  23. package/es/Table.cjs +1 -1
  24. package/es/Table.js +43 -43
  25. package/es/User.cjs +1 -1
  26. package/es/User.js +898 -866
  27. package/es/VarSelectDialog.cjs +3 -3
  28. package/es/VarSelectDialog.js +110 -109
  29. package/es/VarietyAiHelper.cjs +7 -7
  30. package/es/VarietyAiHelper.js +615 -464
  31. package/es/VarietyAutoComplete.cjs +1 -1
  32. package/es/VarietyAutoComplete.js +11 -11
  33. package/es/VarietySearch.cjs +18 -18
  34. package/es/VarietySearch.js +3079 -2913
  35. package/es/{VarietySelect-41daac7b.js → VarietySelect-3fc0f0ce.js} +5 -5
  36. package/es/{VarietySelect-d58eee29.cjs → VarietySelect-d2d25a3d.cjs} +1 -1
  37. package/es/VarietyTextCopy.cjs +3 -3
  38. package/es/VarietyTextCopy.js +51 -51
  39. package/es/VirtualTable.cjs +13 -1
  40. package/es/VirtualTable.js +1927 -2259
  41. package/es/_baseClone-f8e5d3ba.cjs +1 -0
  42. package/es/_baseClone-fb6a3947.js +210 -0
  43. package/es/base-d987e5c9.cjs +5 -0
  44. package/es/base-dd156b8e.js +790 -0
  45. package/es/{castArray-7741a212.js → castArray-18eb6a41.js} +1 -1
  46. package/es/{castArray-35947698.cjs → castArray-d9ffe84a.cjs} +1 -1
  47. package/es/clamp-17c4d8aa.cjs +1 -0
  48. package/es/clamp-c7512966.js +10 -0
  49. package/es/config-provider-06d8207f.js +86 -0
  50. package/es/config-provider-bb61bd3e.cjs +1 -0
  51. package/es/debounce-0a98a9c6.js +57 -0
  52. package/es/debounce-37b17615.cjs +1 -0
  53. package/es/dropdown-8fa21bfd.cjs +1 -0
  54. package/es/dropdown-bcf8d198.js +178 -0
  55. package/es/el-autocomplete-13b9e372.cjs +1 -0
  56. package/es/el-autocomplete-419bfbcf.js +434 -0
  57. package/es/el-button-ee9fe159.js +343 -0
  58. package/es/el-button-fac5e058.cjs +1 -0
  59. package/es/el-checkbox-6cf1a71c.cjs +1 -0
  60. package/es/el-checkbox-b5ac7f04.js +566 -0
  61. package/es/el-dialog-060b3735.js +252 -0
  62. package/es/el-dialog-54aebacd.cjs +1 -0
  63. package/es/el-divider-3f0320be.cjs +1 -0
  64. package/es/el-divider-c5d72961.js +51 -0
  65. package/es/el-empty-552baf04.js +159 -0
  66. package/es/el-empty-58bc2a10.cjs +1 -0
  67. package/es/el-form-item-2be6b683.js +1265 -0
  68. package/es/el-form-item-758dfefa.cjs +12 -0
  69. package/es/el-input-7fe53030.cjs +1 -0
  70. package/es/el-input-d23f5442.js +761 -0
  71. package/es/el-input-number-484fb184.js +390 -0
  72. package/es/el-input-number-f0f4eedb.cjs +1 -0
  73. package/es/el-loading-9d3e405c.js +190 -0
  74. package/es/el-loading-fafaaa7b.cjs +1 -0
  75. package/es/el-menu-item-0ac22681.js +824 -0
  76. package/es/el-menu-item-c91ae430.cjs +1 -0
  77. package/es/el-message-box-568a0aa6.js +481 -0
  78. package/es/el-message-box-ceacb54e.cjs +1 -0
  79. package/es/el-overlay-9f36e73c.cjs +1 -0
  80. package/es/el-overlay-cb5c85aa.js +444 -0
  81. package/es/el-popconfirm-4a8cd35c.cjs +1 -0
  82. package/es/el-popconfirm-6f8e65c8.js +190 -0
  83. package/es/el-popper-0454c8e8.js +2235 -0
  84. package/es/el-popper-acd0ff35.cjs +1 -0
  85. package/es/{el-scrollbar-323542e7.js → el-scrollbar-0a42c1d0.js} +4 -9
  86. package/es/{el-scrollbar-bc3f790d.cjs → el-scrollbar-225c6c9e.cjs} +1 -1
  87. package/es/el-segmented-64dc7258.js +168 -0
  88. package/es/el-segmented-eb3c8e65.cjs +1 -0
  89. package/es/el-select-a573c78b.js +1535 -0
  90. package/es/el-select-c317294a.cjs +1 -0
  91. package/es/el-table-column-1c443963.js +3651 -0
  92. package/es/el-table-column-f555115d.cjs +14 -0
  93. package/es/el-tag-2d8a3fe7.js +77 -0
  94. package/es/el-tag-dca1292c.cjs +1 -0
  95. package/es/el-text-649c986a.cjs +1 -0
  96. package/es/el-text-761e6717.js +84 -0
  97. package/es/index-11181b5f.cjs +1 -0
  98. package/es/index-21a3dc89.cjs +1 -0
  99. package/es/index-33e039e3.cjs +1 -0
  100. package/es/index-3806160e.js +710 -0
  101. package/es/{index-a9246d17.cjs → index-4614e8e9.cjs} +109 -109
  102. package/es/{index-44a382a5.js → index-53beef02.js} +12 -12
  103. package/es/index-5cada1ed.cjs +1 -0
  104. package/es/index-6a36e1fc.cjs +1 -0
  105. package/es/{index-eb96e074.js → index-6a52dc7c.js} +235 -236
  106. package/es/index-71ba4c28.cjs +1 -0
  107. package/es/index-78dab605.js +141 -0
  108. package/es/index-798fec2d.cjs +1 -0
  109. package/es/index-9573f74b.js +372 -0
  110. package/es/index-a181f161.js +429 -0
  111. package/es/{index-a33b2fb8.js → index-ab0ad219.js} +5090 -5090
  112. package/es/index-beb5cb7d.cjs +1 -0
  113. package/es/index-c09fc6f5.js +131 -0
  114. package/es/index-ceae4c47.cjs +1 -0
  115. package/es/index-d372e68f.cjs +5 -0
  116. package/es/index-d9379af4.js +413 -0
  117. package/es/index-dddacf80.js +47 -0
  118. package/es/index-de9ad85c.js +12 -0
  119. package/es/index-e2e58ea9.js +468 -0
  120. package/es/index-f5474dcc.cjs +3 -0
  121. package/es/{python-a3db9620.cjs → python-60e79979.cjs} +1 -1
  122. package/es/{python-8a1664e6.js → python-673bf8b8.js} +32 -31
  123. package/es/{raf-8249652f.cjs → raf-735cc598.cjs} +1 -1
  124. package/es/{raf-80ef0c0a.js → raf-b4fd1e12.js} +1 -1
  125. package/es/scroll-07bade1e.cjs +1 -0
  126. package/es/scroll-70271cb1.js +35 -0
  127. package/es/style.css +1 -1
  128. package/es/toNumber-b47ceb68.cjs +1 -0
  129. package/es/toNumber-f077c66a.js +31 -0
  130. package/es/use-form-item-76516e50.cjs +2 -0
  131. package/es/use-form-item-784142b4.js +422 -0
  132. package/es/use-global-config-7ff9a1c2.cjs +1 -0
  133. package/es/use-global-config-9a4ccf33.js +71 -0
  134. package/es/validator-1926345b.cjs +1 -0
  135. package/es/{validator-c60a8956.js → validator-a66ec4f8.js} +1 -1
  136. package/es/vnode-6f7b84f0.cjs +1 -0
  137. package/es/vnode-8ee9bf4e.js +12 -0
  138. package/es/{zh-cn-b59a0910.js → zh-cn-51c2e528.js} +36 -33
  139. package/es/zh-cn-ad12d9f5.cjs +1 -0
  140. package/lib/bundle.js +1 -1
  141. package/lib/bundle.umd.cjs +265 -246
  142. package/lib/{index-62fa175a.js → index-7282d3be.js} +52335 -50156
  143. package/lib/{python-4a48fa39.js → python-418be57d.js} +1 -1
  144. package/lib/style.css +1 -1
  145. package/package.json +1 -1
  146. package/es/_initCloneObject-5e73c9c8.js +0 -81
  147. package/es/_initCloneObject-a5832933.cjs +0 -1
  148. package/es/base-a5af3db3.js +0 -288
  149. package/es/base-ef747d02.cjs +0 -5
  150. package/es/config-provider-06ea6b42.cjs +0 -1
  151. package/es/config-provider-88b637a8.js +0 -59
  152. package/es/dayjs.min-2c20abe6.cjs +0 -1
  153. package/es/dayjs.min-8313b006.js +0 -299
  154. package/es/debounce-62f5b6e8.cjs +0 -1
  155. package/es/debounce-8d53f4dd.js +0 -83
  156. package/es/dropdown-4ce4c3e2.cjs +0 -1
  157. package/es/dropdown-72fbc15d.js +0 -178
  158. package/es/el-autocomplete-6cafcdf1.js +0 -329
  159. package/es/el-autocomplete-e0857c5b.cjs +0 -1
  160. package/es/el-button-613e0bb2.cjs +0 -1
  161. package/es/el-button-94d3de38.js +0 -272
  162. package/es/el-checkbox-6d4cb393.js +0 -459
  163. package/es/el-checkbox-e90762df.cjs +0 -1
  164. package/es/el-dialog-02942e22.cjs +0 -1
  165. package/es/el-dialog-5e30161f.js +0 -276
  166. package/es/el-divider-4713d74c.cjs +0 -1
  167. package/es/el-divider-4e059794.js +0 -45
  168. package/es/el-empty-1697ded8.cjs +0 -1
  169. package/es/el-empty-33cb66f1.js +0 -183
  170. package/es/el-form-item-44f060d8.cjs +0 -12
  171. package/es/el-form-item-9e8969ea.js +0 -1269
  172. package/es/el-input-342b2def.js +0 -531
  173. package/es/el-input-9a9a7f7f.cjs +0 -1
  174. package/es/el-input-number-65c847d6.cjs +0 -1
  175. package/es/el-input-number-c22b803a.js +0 -311
  176. package/es/el-loading-8179b497.cjs +0 -1
  177. package/es/el-loading-bcc51e3d.js +0 -203
  178. package/es/el-menu-item-339baf6d.js +0 -768
  179. package/es/el-menu-item-83186444.cjs +0 -1
  180. package/es/el-message-box-035b699c.js +0 -489
  181. package/es/el-message-box-c62d3217.cjs +0 -1
  182. package/es/el-overlay-3e17604b.js +0 -324
  183. package/es/el-overlay-8f1da9e8.cjs +0 -1
  184. package/es/el-popconfirm-4e32ec1b.cjs +0 -1
  185. package/es/el-popconfirm-f8a86e2c.js +0 -162
  186. package/es/el-popper-a4f3ae4d.cjs +0 -1
  187. package/es/el-popper-fbd0dcea.js +0 -2094
  188. package/es/el-segmented-56bd58a8.js +0 -142
  189. package/es/el-segmented-833ac177.cjs +0 -1
  190. package/es/el-select-44fa547d.js +0 -1256
  191. package/es/el-select-70806166.cjs +0 -1
  192. package/es/el-table-column-3e2cdfca.cjs +0 -14
  193. package/es/el-table-column-b74a857d.js +0 -3432
  194. package/es/el-tag-66c83156.js +0 -117
  195. package/es/el-tag-9c2f329f.cjs +0 -1
  196. package/es/el-text-034bd3f4.js +0 -67
  197. package/es/el-text-6b2374bb.cjs +0 -1
  198. package/es/index-00f6ca75.cjs +0 -1
  199. package/es/index-185792a7.cjs +0 -1
  200. package/es/index-1e2a38ab.js +0 -113
  201. package/es/index-2e331d74.js +0 -10
  202. package/es/index-3153c1db.cjs +0 -1
  203. package/es/index-5216d5f5.js +0 -406
  204. package/es/index-5c0dd943.cjs +0 -1
  205. package/es/index-657047bb.js +0 -513
  206. package/es/index-870b6c9d.cjs +0 -1
  207. package/es/index-8c2d7e05.js +0 -368
  208. package/es/index-960806da.js +0 -314
  209. package/es/index-9780a537.cjs +0 -1
  210. package/es/index-9d16cea8.cjs +0 -1
  211. package/es/index-ac8dc53d.cjs +0 -1
  212. package/es/index-bb833443.cjs +0 -1
  213. package/es/index-c5f2d372.js +0 -326
  214. package/es/index-c6584658.js +0 -163
  215. package/es/index-d77a7336.js +0 -204
  216. package/es/index-eea0bcb3.cjs +0 -1
  217. package/es/index-f034b910.js +0 -60
  218. package/es/index-f1c702f6.cjs +0 -1
  219. package/es/index-f58b2920.cjs +0 -1
  220. package/es/scroll-679bd6bf.js +0 -35
  221. package/es/scroll-b108dabd.cjs +0 -1
  222. package/es/use-form-common-props-ac666630.cjs +0 -1
  223. package/es/use-form-common-props-ed72e914.js +0 -364
  224. package/es/use-global-config-23472471.cjs +0 -1
  225. package/es/use-global-config-ee406d58.js +0 -72
  226. package/es/validator-366dbf39.cjs +0 -1
  227. package/es/vnode-5ddb7ed1.js +0 -14
  228. package/es/vnode-b906ae6d.cjs +0 -1
  229. package/es/zh-cn-c21d12d8.cjs +0 -1
package/es/Pagination.js CHANGED
@@ -1,69 +1,63 @@
1
- import { b as D, _ as L, e as te, u as A, j as pe, p as M, w as ce } from "./base-a5af3db3.js";
2
- import { z as ge, E as de } from "./zh-cn-b59a0910.js";
3
- import "./el-tag-66c83156.js";
4
- import { a as fe, E as ve } from "./el-select-44fa547d.js";
5
- import "./el-scrollbar-323542e7.js";
6
- import { C as J, d as me } from "./el-popper-fbd0dcea.js";
7
- import { E as be } from "./el-input-342b2def.js";
8
- import { defineComponent as _, computed as C, openBlock as c, createElementBlock as y, unref as a, toDisplayString as I, createBlock as w, withCtx as R, resolveDynamicComponent as ne, inject as Pe, ref as T, watch as O, normalizeClass as N, createVNode as X, Fragment as ie, renderList as re, createElementVNode as Z, withKeys as Ce, createCommentVNode as H, getCurrentInstance as ze, provide as he, h as B, withDirectives as ye, mergeProps as Se, vShow as _e } from "vue";
9
- import { E as le, k as ke, n as ee, o as Ne, p as xe, h as Ee } from "./index-eb96e074.js";
10
- import { i as G, k as oe, l as Te, h as we } from "./use-form-common-props-ed72e914.js";
11
- import { u as q } from "./index-d77a7336.js";
12
- import { m as se } from "./typescript-7ae59c4c.js";
13
- import { i as Me } from "./index-8c2d7e05.js";
14
- import { u as $e } from "./index-2e331d74.js";
15
- import { _ as Be } from "./_plugin-vue_export-helper-dad06003.js";
16
- import "./config-provider-88b637a8.js";
17
- import "./use-global-config-ee406d58.js";
18
- import "./index-960806da.js";
19
- import "./index-c5f2d372.js";
20
- import "./index-1e2a38ab.js";
21
- import "./castArray-7741a212.js";
22
- import "./index-f034b910.js";
23
- import "./scroll-679bd6bf.js";
24
- import "./debounce-8d53f4dd.js";
25
- import "./vnode-5ddb7ed1.js";
26
- const ue = Symbol("elPaginationKey"), Ie = D({
1
+ import { z as ue, E as pe } from "./zh-cn-51c2e528.js";
2
+ import { b as L, c as q, u as F, m as ge, v as de, s as w, w as ce } from "./base-dd156b8e.js";
3
+ import { C as J } from "./el-popper-0454c8e8.js";
4
+ import { i as R, k as te, l as fe, h as ve } from "./use-form-item-784142b4.js";
5
+ import { m as ne } from "./typescript-7ae59c4c.js";
6
+ import { u as me } from "./index-de9ad85c.js";
7
+ import { u as O } from "./index-a181f161.js";
8
+ import { E as ie, k as be, n as H, o as Pe, p as ye, h as Ce } from "./index-6a52dc7c.js";
9
+ import { defineComponent as $, computed as m, openBlock as g, createElementBlock as z, unref as r, toDisplayString as A, createBlock as T, withCtx as Q, resolveDynamicComponent as re, inject as ze, ref as E, watch as K, normalizeClass as N, createVNode as Y, Fragment as le, renderList as oe, createElementVNode as ee, withKeys as _e, createCommentVNode as G, getCurrentInstance as Se, provide as he, h as I, withDirectives as Ne, mergeProps as ke, vShow as xe } from "vue";
10
+ import { a as Ee, E as Te } from "./el-select-a573c78b.js";
11
+ import { i as we } from "./index-9573f74b.js";
12
+ import { E as Be } from "./el-input-d23f5442.js";
13
+ import "./el-scrollbar-0a42c1d0.js";
14
+ import "./el-tag-2d8a3fe7.js";
15
+ import { _ as Me } from "./_plugin-vue_export-helper-dad06003.js";
16
+ import "./config-provider-06d8207f.js";
17
+ import "./use-global-config-9a4ccf33.js";
18
+ import "./castArray-18eb6a41.js";
19
+ import "./vnode-8ee9bf4e.js";
20
+ import "./index-d9379af4.js";
21
+ import "./index-c09fc6f5.js";
22
+ import "./scroll-70271cb1.js";
23
+ import "./index-dddacf80.js";
24
+ import "./toNumber-f077c66a.js";
25
+ import "./clamp-c7512966.js";
26
+ import "./raf-b4fd1e12.js";
27
+ const se = Symbol("elPaginationKey"), Ie = L({
27
28
  disabled: Boolean,
28
29
  currentPage: {
29
30
  type: Number,
30
31
  default: 1
31
32
  },
32
- prevText: {
33
- type: String
34
- },
35
- prevIcon: {
36
- type: G
37
- }
38
- }), De = {
39
- click: (e) => e instanceof MouseEvent
40
- }, qe = _({
41
- name: "ElPaginationPrev"
42
- }), je = /* @__PURE__ */ _({
43
- ...qe,
33
+ prevText: { type: String },
34
+ prevIcon: { type: R }
35
+ }), $e = { click: (e) => e instanceof MouseEvent }, je = [
36
+ "disabled",
37
+ "aria-label",
38
+ "aria-disabled"
39
+ ], De = { key: 0 };
40
+ var Ae = /* @__PURE__ */ $({
41
+ name: "ElPaginationPrev",
42
+ __name: "prev",
44
43
  props: Ie,
45
- emits: De,
44
+ emits: $e,
46
45
  setup(e) {
47
- const o = e, { t: i } = q(), s = C(() => o.disabled || o.currentPage <= 1);
48
- return (l, g) => (c(), y("button", {
46
+ const o = e, { t: n } = O(), d = m(() => o.disabled || o.currentPage <= 1);
47
+ return (i, u) => (g(), z("button", {
49
48
  type: "button",
50
49
  class: "btn-prev",
51
- disabled: a(s),
52
- "aria-label": l.prevText || a(i)("el.pagination.prev"),
53
- "aria-disabled": a(s),
54
- onClick: (f) => l.$emit("click", f)
55
- }, [
56
- l.prevText ? (c(), y("span", { key: 0 }, I(l.prevText), 1)) : (c(), w(a(le), { key: 1 }, {
57
- default: R(() => [
58
- (c(), w(ne(l.prevIcon)))
59
- ]),
60
- _: 1
61
- }))
62
- ], 8, ["disabled", "aria-label", "aria-disabled", "onClick"]));
50
+ disabled: d.value,
51
+ "aria-label": i.prevText || r(n)("el.pagination.prev"),
52
+ "aria-disabled": d.value,
53
+ onClick: u[0] || (u[0] = (c) => i.$emit("click", c))
54
+ }, [i.prevText ? (g(), z("span", De, A(i.prevText), 1)) : (g(), T(r(ie), { key: 1 }, {
55
+ default: Q(() => [(g(), T(re(i.prevIcon)))]),
56
+ _: 1
57
+ }))], 8, je));
63
58
  }
64
- });
65
- var Ae = /* @__PURE__ */ L(je, [["__file", "prev.vue"]]);
66
- const Le = D({
59
+ }), Le = Ae;
60
+ const Oe = L({
67
61
  disabled: Boolean,
68
62
  currentPage: {
69
63
  type: Number,
@@ -73,174 +67,182 @@ const Le = D({
73
67
  type: Number,
74
68
  default: 50
75
69
  },
76
- nextText: {
77
- type: String
78
- },
79
- nextIcon: {
80
- type: G
81
- }
82
- }), Fe = _({
83
- name: "ElPaginationNext"
84
- }), Ue = /* @__PURE__ */ _({
85
- ...Fe,
86
- props: Le,
70
+ nextText: { type: String },
71
+ nextIcon: { type: R }
72
+ }), Ue = [
73
+ "disabled",
74
+ "aria-label",
75
+ "aria-disabled"
76
+ ], qe = { key: 0 };
77
+ var Fe = /* @__PURE__ */ $({
78
+ name: "ElPaginationNext",
79
+ __name: "next",
80
+ props: Oe,
87
81
  emits: ["click"],
88
82
  setup(e) {
89
- const o = e, { t: i } = q(), s = C(() => o.disabled || o.currentPage === o.pageCount || o.pageCount === 0);
90
- return (l, g) => (c(), y("button", {
83
+ const o = e, { t: n } = O(), d = m(() => o.disabled || o.currentPage === o.pageCount || o.pageCount === 0);
84
+ return (i, u) => (g(), z("button", {
91
85
  type: "button",
92
86
  class: "btn-next",
93
- disabled: a(s),
94
- "aria-label": l.nextText || a(i)("el.pagination.next"),
95
- "aria-disabled": a(s),
96
- onClick: (f) => l.$emit("click", f)
97
- }, [
98
- l.nextText ? (c(), y("span", { key: 0 }, I(l.nextText), 1)) : (c(), w(a(le), { key: 1 }, {
99
- default: R(() => [
100
- (c(), w(ne(l.nextIcon)))
101
- ]),
102
- _: 1
103
- }))
104
- ], 8, ["disabled", "aria-label", "aria-disabled", "onClick"]));
87
+ disabled: d.value,
88
+ "aria-label": i.nextText || r(n)("el.pagination.next"),
89
+ "aria-disabled": d.value,
90
+ onClick: u[0] || (u[0] = (c) => i.$emit("click", c))
91
+ }, [i.nextText ? (g(), z("span", qe, A(i.nextText), 1)) : (g(), T(r(ie), { key: 1 }, {
92
+ default: Q(() => [(g(), T(re(i.nextIcon)))]),
93
+ _: 1
94
+ }))], 8, Ue));
105
95
  }
106
- });
107
- var Ke = /* @__PURE__ */ L(Ue, [["__file", "next.vue"]]);
108
- const Y = () => Pe(ue, {}), Oe = D({
96
+ }), Ke = Fe;
97
+ const Z = () => ze(se, {}), Ve = L({
109
98
  pageSize: {
110
99
  type: Number,
111
100
  required: !0
112
101
  },
113
102
  pageSizes: {
114
- type: te(Array),
115
- default: () => se([10, 20, 30, 40, 50, 100])
103
+ type: q(Array),
104
+ default: () => ne([
105
+ 10,
106
+ 20,
107
+ 30,
108
+ 40,
109
+ 50,
110
+ 100
111
+ ])
116
112
  },
117
113
  popperClass: {
118
- type: String
114
+ type: q([
115
+ String,
116
+ Array,
117
+ Object,
118
+ Boolean
119
+ ]),
120
+ default: void 0
121
+ },
122
+ popperStyle: {
123
+ type: q([
124
+ String,
125
+ Array,
126
+ Object,
127
+ Boolean
128
+ ]),
129
+ default: void 0
119
130
  },
120
131
  disabled: Boolean,
121
132
  teleported: Boolean,
122
133
  size: {
123
134
  type: String,
124
- values: oe
135
+ values: te
125
136
  },
126
137
  appendSizeTo: String
127
- }), Ve = _({
128
- name: "ElPaginationSizes"
129
- }), We = /* @__PURE__ */ _({
130
- ...Ve,
131
- props: Oe,
138
+ });
139
+ var We = /* @__PURE__ */ $({
140
+ name: "ElPaginationSizes",
141
+ __name: "sizes",
142
+ props: Ve,
132
143
  emits: ["page-size-change"],
133
144
  setup(e, { emit: o }) {
134
- const i = e, { t: s } = q(), l = A("pagination"), g = Y(), f = T(i.pageSize);
135
- O(() => i.pageSizes, (u, z) => {
136
- if (!Me(u, z) && pe(u)) {
137
- const p = u.includes(i.pageSize) ? i.pageSize : i.pageSizes[0];
138
- o("page-size-change", p);
139
- }
140
- }), O(() => i.pageSize, (u) => {
141
- f.value = u;
145
+ const n = e, d = o, { t: i } = O(), u = F("pagination"), c = Z(), f = E(n.pageSize);
146
+ K(() => n.pageSizes, (s, p) => {
147
+ we(s, p) || ge(s) && d("page-size-change", s.includes(n.pageSize) ? n.pageSize : n.pageSizes[0]);
148
+ }), K(() => n.pageSize, (s) => {
149
+ f.value = s;
142
150
  });
143
- const m = C(() => i.pageSizes);
144
- function P(u) {
145
- var z;
146
- u !== f.value && (f.value = u, (z = g.handleSizeChange) == null || z.call(g, Number(u)));
151
+ const _ = m(() => n.pageSizes);
152
+ function b(s) {
153
+ var p;
154
+ s !== f.value && (f.value = s, (p = c.handleSizeChange) == null || p.call(c, Number(s)));
147
155
  }
148
- return (u, z) => (c(), y("span", {
149
- class: N(a(l).e("sizes"))
150
- }, [
151
- X(a(fe), {
152
- "model-value": f.value,
153
- disabled: u.disabled,
154
- "popper-class": u.popperClass,
155
- size: u.size,
156
- teleported: u.teleported,
157
- "validate-event": !1,
158
- "append-to": u.appendSizeTo,
159
- onChange: P
160
- }, {
161
- default: R(() => [
162
- (c(!0), y(ie, null, re(a(m), (p) => (c(), w(a(ve), {
163
- key: p,
164
- value: p,
165
- label: p + a(s)("el.pagination.pagesize")
166
- }, null, 8, ["value", "label"]))), 128))
167
- ]),
168
- _: 1
169
- }, 8, ["model-value", "disabled", "popper-class", "size", "teleported", "append-to"])
170
- ], 2));
156
+ return (s, p) => (g(), z("span", { class: N(r(u).e("sizes")) }, [Y(r(Ee), {
157
+ "model-value": f.value,
158
+ disabled: s.disabled,
159
+ "popper-class": s.popperClass,
160
+ "popper-style": s.popperStyle,
161
+ size: s.size,
162
+ teleported: s.teleported,
163
+ "validate-event": !1,
164
+ "append-to": s.appendSizeTo,
165
+ onChange: b
166
+ }, {
167
+ default: Q(() => [(g(!0), z(le, null, oe(_.value, (k) => (g(), T(r(Te), {
168
+ key: k,
169
+ value: k,
170
+ label: k + r(i)("el.pagination.pagesize")
171
+ }, null, 8, ["value", "label"]))), 128))]),
172
+ _: 1
173
+ }, 8, [
174
+ "model-value",
175
+ "disabled",
176
+ "popper-class",
177
+ "popper-style",
178
+ "size",
179
+ "teleported",
180
+ "append-to"
181
+ ])], 2));
171
182
  }
172
- });
173
- var He = /* @__PURE__ */ L(We, [["__file", "sizes.vue"]]);
174
- const Je = D({
175
- size: {
176
- type: String,
177
- values: oe
178
- }
179
- }), Ge = _({
180
- name: "ElPaginationJumper"
181
- }), Re = /* @__PURE__ */ _({
182
- ...Ge,
183
+ }), Ge = We;
184
+ const Je = L({ size: {
185
+ type: String,
186
+ values: te
187
+ } }), Re = ["disabled"];
188
+ var Qe = /* @__PURE__ */ $({
189
+ name: "ElPaginationJumper",
190
+ __name: "jumper",
183
191
  props: Je,
184
192
  setup(e) {
185
- const { t: o } = q(), i = A("pagination"), { pageCount: s, disabled: l, currentPage: g, changeEvent: f } = Y(), m = T(), P = C(() => {
186
- var p;
187
- return (p = m.value) != null ? p : g == null ? void 0 : g.value;
188
- });
189
- function u(p) {
190
- m.value = p ? +p : "";
193
+ const { t: o } = O(), n = F("pagination"), { pageCount: d, disabled: i, currentPage: u, changeEvent: c } = Z(), f = E(), _ = m(() => f.value ?? (u == null ? void 0 : u.value));
194
+ function b(p) {
195
+ f.value = p ? +p : "";
191
196
  }
192
- function z(p) {
193
- p = Math.trunc(+p), f == null || f(p), m.value = void 0;
197
+ function s(p) {
198
+ p = Math.trunc(+p), c == null || c(p), f.value = void 0;
194
199
  }
195
- return (p, F) => (c(), y("span", {
196
- class: N(a(i).e("jump")),
197
- disabled: a(l)
200
+ return (p, k) => (g(), z("span", {
201
+ class: N(r(n).e("jump")),
202
+ disabled: r(i)
198
203
  }, [
199
- Z("span", {
200
- class: N([a(i).e("goto")])
201
- }, I(a(o)("el.pagination.goto")), 3),
202
- X(a(be), {
204
+ ee("span", { class: N([r(n).e("goto")]) }, A(r(o)("el.pagination.goto")), 3),
205
+ Y(r(Be), {
203
206
  size: p.size,
204
- class: N([a(i).e("editor"), a(i).is("in-pagination")]),
207
+ class: N([r(n).e("editor"), r(n).is("in-pagination")]),
205
208
  min: 1,
206
- max: a(s),
207
- disabled: a(l),
208
- "model-value": a(P),
209
+ max: r(d),
210
+ disabled: r(i),
211
+ "model-value": _.value,
209
212
  "validate-event": !1,
210
- "aria-label": a(o)("el.pagination.page"),
213
+ "aria-label": r(o)("el.pagination.page"),
211
214
  type: "number",
212
- "onUpdate:modelValue": u,
213
- onChange: z
214
- }, null, 8, ["size", "class", "max", "disabled", "model-value", "aria-label"]),
215
- Z("span", {
216
- class: N([a(i).e("classifier")])
217
- }, I(a(o)("el.pagination.pageClassifier")), 3)
218
- ], 10, ["disabled"]));
219
- }
220
- });
221
- var Qe = /* @__PURE__ */ L(Re, [["__file", "jumper.vue"]]);
222
- const Xe = D({
223
- total: {
224
- type: Number,
225
- default: 1e3
215
+ "onUpdate:modelValue": b,
216
+ onChange: s
217
+ }, null, 8, [
218
+ "size",
219
+ "class",
220
+ "max",
221
+ "disabled",
222
+ "model-value",
223
+ "aria-label"
224
+ ]),
225
+ ee("span", { class: N([r(n).e("classifier")]) }, A(r(o)("el.pagination.pageClassifier")), 3)
226
+ ], 10, Re));
226
227
  }
227
- }), Ye = _({
228
- name: "ElPaginationTotal"
229
- }), Ze = /* @__PURE__ */ _({
230
- ...Ye,
231
- props: Xe,
228
+ }), Xe = Qe;
229
+ const Ye = L({ total: {
230
+ type: Number,
231
+ default: 1e3
232
+ } }), Ze = ["disabled"];
233
+ var He = /* @__PURE__ */ $({
234
+ name: "ElPaginationTotal",
235
+ __name: "total",
236
+ props: Ye,
232
237
  setup(e) {
233
- const { t: o } = q(), i = A("pagination"), { disabled: s } = Y();
234
- return (l, g) => (c(), y("span", {
235
- class: N(a(i).e("total")),
236
- disabled: a(s)
237
- }, I(a(o)("el.pagination.total", {
238
- total: l.total
239
- })), 11, ["disabled"]));
238
+ const { t: o } = O(), n = F("pagination"), { disabled: d } = Z();
239
+ return (i, u) => (g(), z("span", {
240
+ class: N(r(n).e("total")),
241
+ disabled: r(d)
242
+ }, A(r(o)("el.pagination.total", { total: i.total })), 11, Ze));
240
243
  }
241
- });
242
- var ea = /* @__PURE__ */ L(Ze, [["__file", "total.vue"]]);
243
- const aa = D({
244
+ }), ea = He;
245
+ const aa = L({
244
246
  currentPage: {
245
247
  type: Number,
246
248
  default: 1
@@ -254,330 +256,420 @@ const aa = D({
254
256
  default: 7
255
257
  },
256
258
  disabled: Boolean
257
- }), ta = _({
258
- name: "ElPaginationPager"
259
- }), na = /* @__PURE__ */ _({
260
- ...ta,
259
+ }), ta = [
260
+ "aria-current",
261
+ "aria-label",
262
+ "tabindex"
263
+ ], na = ["tabindex", "aria-label"], ia = [
264
+ "aria-current",
265
+ "aria-label",
266
+ "tabindex"
267
+ ], ra = ["tabindex", "aria-label"], la = [
268
+ "aria-current",
269
+ "aria-label",
270
+ "tabindex"
271
+ ];
272
+ var oa = /* @__PURE__ */ $({
273
+ name: "ElPaginationPager",
274
+ __name: "pager",
261
275
  props: aa,
262
276
  emits: [J],
263
277
  setup(e, { emit: o }) {
264
- const i = e, s = A("pager"), l = A("icon"), { t: g } = q(), f = T(!1), m = T(!1), P = T(!1), u = T(!1), z = T(!1), p = T(!1), F = C(() => {
265
- const r = i.pagerCount, t = (r - 1) / 2, n = Number(i.currentPage), b = Number(i.pageCount);
266
- let v = !1, k = !1;
267
- b > r && (n > r - t && (v = !0), n < b - t && (k = !0));
268
- const $ = [];
269
- if (v && !k) {
270
- const S = b - (r - 2);
271
- for (let x = S; x < b; x++)
272
- $.push(x);
273
- } else if (!v && k)
274
- for (let S = 2; S < r; S++)
275
- $.push(S);
276
- else if (v && k) {
277
- const S = Math.floor(r / 2) - 1;
278
- for (let x = n - S; x <= n + S; x++)
279
- $.push(x);
278
+ const n = e, d = o, i = F("pager"), u = F("icon"), { t: c } = O(), f = E(!1), _ = E(!1), b = E(!1), s = E(!1), p = E(!1), k = E(!1), U = m(() => {
279
+ const a = n.pagerCount, t = (a - 1) / 2, l = Number(n.currentPage), S = Number(n.pageCount);
280
+ let h = !1, y = !1;
281
+ S > a && (l > a - t && (h = !0), l < S - t && (y = !0));
282
+ const M = [];
283
+ if (h && !y) {
284
+ const v = S - (a - 2);
285
+ for (let D = v; D < S; D++)
286
+ M.push(D);
287
+ } else if (!h && y)
288
+ for (let v = 2; v < a; v++)
289
+ M.push(v);
290
+ else if (h && y) {
291
+ const v = Math.floor(a / 2) - 1;
292
+ for (let D = l - v; D <= l + v; D++)
293
+ M.push(D);
280
294
  } else
281
- for (let S = 2; S < b; S++)
282
- $.push(S);
283
- return $;
284
- }), j = C(() => [
295
+ for (let v = 2; v < S; v++)
296
+ M.push(v);
297
+ return M;
298
+ }), x = m(() => [
285
299
  "more",
286
300
  "btn-quickprev",
287
- l.b(),
288
- s.is("disabled", i.disabled)
289
- ]), E = C(() => [
301
+ u.b(),
302
+ i.is("disabled", n.disabled)
303
+ ]), P = m(() => [
290
304
  "more",
291
305
  "btn-quicknext",
292
- l.b(),
293
- s.is("disabled", i.disabled)
294
- ]), d = C(() => i.disabled ? -1 : 0);
295
- O(() => [i.pageCount, i.pagerCount, i.currentPage], ([r, t, n]) => {
296
- const b = (t - 1) / 2;
297
- let v = !1, k = !1;
298
- r > t && (v = n > t - b, k = n < r - b), P.value && (P.value = v), u.value && (u.value = k), f.value = v, m.value = k;
306
+ u.b(),
307
+ i.is("disabled", n.disabled)
308
+ ]), B = m(() => n.disabled ? -1 : 0);
309
+ K(() => [
310
+ n.pageCount,
311
+ n.pagerCount,
312
+ n.currentPage
313
+ ], ([a, t, l]) => {
314
+ const S = (t - 1) / 2;
315
+ let h = !1, y = !1;
316
+ a > t && (h = l > t - S, y = l < a - S), b.value && (b.value = h), s.value && (s.value = y), f.value = h, _.value = y;
299
317
  }, { immediate: !0 });
300
- function U(r = !1) {
301
- i.disabled || (r ? P.value = !0 : u.value = !0);
318
+ function V(a = !1) {
319
+ n.disabled || (a ? b.value = !0 : s.value = !0);
302
320
  }
303
- function V(r = !1) {
304
- r ? z.value = !0 : p.value = !0;
321
+ function W(a = !1) {
322
+ a ? p.value = !0 : k.value = !0;
305
323
  }
306
- function Q(r) {
307
- const t = r.target;
324
+ function X(a) {
325
+ const t = a.target;
308
326
  if (t.tagName.toLowerCase() === "li" && Array.from(t.classList).includes("number")) {
309
- const n = Number(t.textContent);
310
- n !== i.currentPage && o(J, n);
327
+ const l = Number(t.textContent);
328
+ l !== n.currentPage && d(J, l);
311
329
  } else
312
- t.tagName.toLowerCase() === "li" && Array.from(t.classList).includes("more") && W(r);
330
+ t.tagName.toLowerCase() === "li" && Array.from(t.classList).includes("more") && j(a);
313
331
  }
314
- function W(r) {
315
- const t = r.target;
316
- if (t.tagName.toLowerCase() === "ul" || i.disabled)
332
+ function j(a) {
333
+ const t = a.target;
334
+ if (t.tagName.toLowerCase() === "ul" || n.disabled)
317
335
  return;
318
- let n = Number(t.textContent);
319
- const b = i.pageCount, v = i.currentPage, k = i.pagerCount - 2;
320
- t.className.includes("more") && (t.className.includes("quickprev") ? n = v - k : t.className.includes("quicknext") && (n = v + k)), Number.isNaN(+n) || (n < 1 && (n = 1), n > b && (n = b)), n !== v && o(J, n);
336
+ let l = Number(t.textContent);
337
+ const S = n.pageCount, h = n.currentPage, y = n.pagerCount - 2;
338
+ t.className.includes("more") && (t.className.includes("quickprev") ? l = h - y : t.className.includes("quicknext") && (l = h + y)), Number.isNaN(+l) || (l < 1 && (l = 1), l > S && (l = S)), l !== h && d(J, l);
321
339
  }
322
- return (r, t) => (c(), y("ul", {
323
- class: N(a(s).b()),
324
- onClick: W,
325
- onKeyup: Ce(Q, ["enter"])
340
+ return (a, t) => (g(), z("ul", {
341
+ class: N(r(i).b()),
342
+ onClick: j,
343
+ onKeyup: _e(X, ["enter"])
326
344
  }, [
327
- r.pageCount > 0 ? (c(), y("li", {
345
+ a.pageCount > 0 ? (g(), z("li", {
328
346
  key: 0,
329
- class: N([[
330
- a(s).is("active", r.currentPage === 1),
331
- a(s).is("disabled", r.disabled)
332
- ], "number"]),
333
- "aria-current": r.currentPage === 1,
334
- "aria-label": a(g)("el.pagination.currentPage", { pager: 1 }),
335
- tabindex: a(d)
336
- }, " 1 ", 10, ["aria-current", "aria-label", "tabindex"])) : H("v-if", !0),
337
- f.value ? (c(), y("li", {
347
+ class: N([[r(i).is("active", a.currentPage === 1), r(i).is("disabled", a.disabled)], "number"]),
348
+ "aria-current": a.currentPage === 1,
349
+ "aria-label": r(c)("el.pagination.currentPage", { pager: 1 }),
350
+ tabindex: B.value
351
+ }, " 1 ", 10, ta)) : G("v-if", !0),
352
+ f.value ? (g(), z("li", {
338
353
  key: 1,
339
- class: N(a(j)),
340
- tabindex: a(d),
341
- "aria-label": a(g)("el.pagination.prevPages", { pager: r.pagerCount - 2 }),
342
- onMouseenter: (n) => U(!0),
343
- onMouseleave: (n) => P.value = !1,
344
- onFocus: (n) => V(!0),
345
- onBlur: (n) => z.value = !1
346
- }, [
347
- (P.value || z.value) && !r.disabled ? (c(), w(a(ke), { key: 0 })) : (c(), w(a(ee), { key: 1 }))
348
- ], 42, ["tabindex", "aria-label", "onMouseenter", "onMouseleave", "onFocus", "onBlur"])) : H("v-if", !0),
349
- (c(!0), y(ie, null, re(a(F), (n) => (c(), y("li", {
350
- key: n,
351
- class: N([[
352
- a(s).is("active", r.currentPage === n),
353
- a(s).is("disabled", r.disabled)
354
- ], "number"]),
355
- "aria-current": r.currentPage === n,
356
- "aria-label": a(g)("el.pagination.currentPage", { pager: n }),
357
- tabindex: a(d)
358
- }, I(n), 11, ["aria-current", "aria-label", "tabindex"]))), 128)),
359
- m.value ? (c(), y("li", {
354
+ class: N(x.value),
355
+ tabindex: B.value,
356
+ "aria-label": r(c)("el.pagination.prevPages", { pager: a.pagerCount - 2 }),
357
+ onMouseenter: t[0] || (t[0] = (l) => V(!0)),
358
+ onMouseleave: t[1] || (t[1] = (l) => b.value = !1),
359
+ onFocus: t[2] || (t[2] = (l) => W(!0)),
360
+ onBlur: t[3] || (t[3] = (l) => p.value = !1)
361
+ }, [(b.value || p.value) && !a.disabled ? (g(), T(r(be), { key: 0 })) : (g(), T(r(H), { key: 1 }))], 42, na)) : G("v-if", !0),
362
+ (g(!0), z(le, null, oe(U.value, (l) => (g(), z("li", {
363
+ key: l,
364
+ class: N([[r(i).is("active", a.currentPage === l), r(i).is("disabled", a.disabled)], "number"]),
365
+ "aria-current": a.currentPage === l,
366
+ "aria-label": r(c)("el.pagination.currentPage", { pager: l }),
367
+ tabindex: B.value
368
+ }, A(l), 11, ia))), 128)),
369
+ _.value ? (g(), z("li", {
360
370
  key: 2,
361
- class: N(a(E)),
362
- tabindex: a(d),
363
- "aria-label": a(g)("el.pagination.nextPages", { pager: r.pagerCount - 2 }),
364
- onMouseenter: (n) => U(),
365
- onMouseleave: (n) => u.value = !1,
366
- onFocus: (n) => V(),
367
- onBlur: (n) => p.value = !1
368
- }, [
369
- (u.value || p.value) && !r.disabled ? (c(), w(a(Ne), { key: 0 })) : (c(), w(a(ee), { key: 1 }))
370
- ], 42, ["tabindex", "aria-label", "onMouseenter", "onMouseleave", "onFocus", "onBlur"])) : H("v-if", !0),
371
- r.pageCount > 1 ? (c(), y("li", {
371
+ class: N(P.value),
372
+ tabindex: B.value,
373
+ "aria-label": r(c)("el.pagination.nextPages", { pager: a.pagerCount - 2 }),
374
+ onMouseenter: t[4] || (t[4] = (l) => V()),
375
+ onMouseleave: t[5] || (t[5] = (l) => s.value = !1),
376
+ onFocus: t[6] || (t[6] = (l) => W()),
377
+ onBlur: t[7] || (t[7] = (l) => k.value = !1)
378
+ }, [(s.value || k.value) && !a.disabled ? (g(), T(r(Pe), { key: 0 })) : (g(), T(r(H), { key: 1 }))], 42, ra)) : G("v-if", !0),
379
+ a.pageCount > 1 ? (g(), z("li", {
372
380
  key: 3,
373
- class: N([[
374
- a(s).is("active", r.currentPage === r.pageCount),
375
- a(s).is("disabled", r.disabled)
376
- ], "number"]),
377
- "aria-current": r.currentPage === r.pageCount,
378
- "aria-label": a(g)("el.pagination.currentPage", { pager: r.pageCount }),
379
- tabindex: a(d)
380
- }, I(r.pageCount), 11, ["aria-current", "aria-label", "tabindex"])) : H("v-if", !0)
381
- ], 42, ["onKeyup"]));
381
+ class: N([[r(i).is("active", a.currentPage === a.pageCount), r(i).is("disabled", a.disabled)], "number"]),
382
+ "aria-current": a.currentPage === a.pageCount,
383
+ "aria-label": r(c)("el.pagination.currentPage", { pager: a.pageCount }),
384
+ tabindex: B.value
385
+ }, A(a.pageCount), 11, la)) : G("v-if", !0)
386
+ ], 34));
382
387
  }
383
- });
384
- var ia = /* @__PURE__ */ L(na, [["__file", "pager.vue"]]);
385
- const h = (e) => typeof e != "number", ra = D({
388
+ }), sa = oa;
389
+ const C = (e) => typeof e != "number", ua = L({
390
+ /**
391
+ * @description options of item count per page
392
+ */
386
393
  pageSize: Number,
394
+ /**
395
+ * @description default initial value of page size, not setting is the same as setting 10
396
+ */
387
397
  defaultPageSize: Number,
398
+ /**
399
+ * @description total item count
400
+ */
388
401
  total: Number,
402
+ /**
403
+ * @description total page count. Set either `total` or `page-count` and pages will be displayed; if you need `page-sizes`, `total` is required
404
+ */
389
405
  pageCount: Number,
406
+ /**
407
+ * @description number of pagers. Pagination collapses when the total page count exceeds this value
408
+ */
390
409
  pagerCount: {
391
410
  type: Number,
392
- validator: (e) => M(e) && Math.trunc(e) === e && e > 4 && e < 22 && e % 2 === 1,
411
+ validator: (e) => w(e) && Math.trunc(e) === e && e > 4 && e < 22 && e % 2 === 1,
393
412
  default: 7
394
413
  },
414
+ /**
415
+ * @description current page number
416
+ */
395
417
  currentPage: Number,
418
+ /**
419
+ * @description default initial value of current-page, not setting is the same as setting 1
420
+ */
396
421
  defaultCurrentPage: Number,
422
+ /**
423
+ * @description layout of Pagination, elements separated with a comma
424
+ */
397
425
  layout: {
398
426
  type: String,
399
- default: ["prev", "pager", "next", "jumper", "->", "total"].join(", ")
427
+ default: [
428
+ "prev",
429
+ "pager",
430
+ "next",
431
+ "jumper",
432
+ "->",
433
+ "total"
434
+ ].join(", ")
400
435
  },
436
+ /**
437
+ * @description item count of each page
438
+ */
401
439
  pageSizes: {
402
- type: te(Array),
403
- default: () => se([10, 20, 30, 40, 50, 100])
440
+ type: q(Array),
441
+ default: () => ne([
442
+ 10,
443
+ 20,
444
+ 30,
445
+ 40,
446
+ 50,
447
+ 100
448
+ ])
404
449
  },
450
+ /**
451
+ * @description custom class name for the page size Select's dropdown
452
+ */
405
453
  popperClass: {
406
- type: String,
454
+ type: q([
455
+ String,
456
+ Array,
457
+ Object,
458
+ Boolean
459
+ ]),
407
460
  default: ""
408
461
  },
462
+ /**
463
+ * @description custom style for the page size Select's dropdown
464
+ */
465
+ popperStyle: {
466
+ type: q([
467
+ String,
468
+ Array,
469
+ Object,
470
+ Boolean
471
+ ]),
472
+ default: void 0
473
+ },
474
+ /**
475
+ * @description text for the prev button
476
+ */
409
477
  prevText: {
410
478
  type: String,
411
479
  default: ""
412
480
  },
481
+ /**
482
+ * @description icon for the prev button, higher priority of `prev-text`
483
+ */
413
484
  prevIcon: {
414
- type: G,
415
- default: () => xe
485
+ type: R,
486
+ default: () => ye
416
487
  },
488
+ /**
489
+ * @description text for the next button
490
+ */
417
491
  nextText: {
418
492
  type: String,
419
493
  default: ""
420
494
  },
495
+ /**
496
+ * @description icon for the next button, higher priority of `next-text`
497
+ */
421
498
  nextIcon: {
422
- type: G,
423
- default: () => Ee
499
+ type: R,
500
+ default: () => Ce
424
501
  },
502
+ /**
503
+ * @description whether Pagination size is teleported to body
504
+ */
425
505
  teleported: {
426
506
  type: Boolean,
427
507
  default: !0
428
508
  },
509
+ /**
510
+ * @description whether to use small pagination
511
+ */
429
512
  small: Boolean,
430
- size: we,
513
+ /**
514
+ * @description set page size
515
+ */
516
+ size: ve,
517
+ /**
518
+ * @description whether the buttons have a background color
519
+ */
431
520
  background: Boolean,
521
+ /**
522
+ * @description whether Pagination is disabled
523
+ */
432
524
  disabled: Boolean,
525
+ /**
526
+ * @description whether to hide when there's only one page
527
+ */
433
528
  hideOnSinglePage: Boolean,
529
+ /**
530
+ * @description which element the size dropdown appends to.
531
+ */
434
532
  appendSizeTo: String
435
- }), la = {
436
- "update:current-page": (e) => M(e),
437
- "update:page-size": (e) => M(e),
438
- "size-change": (e) => M(e),
439
- change: (e, o) => M(e) && M(o),
440
- "current-change": (e) => M(e),
441
- "prev-click": (e) => M(e),
442
- "next-click": (e) => M(e)
533
+ }), pa = {
534
+ "update:current-page": (e) => w(e),
535
+ "update:page-size": (e) => w(e),
536
+ "size-change": (e) => w(e),
537
+ change: (e, o) => w(e) && w(o),
538
+ "current-change": (e) => w(e),
539
+ "prev-click": (e) => w(e),
540
+ "next-click": (e) => w(e)
443
541
  }, ae = "ElPagination";
444
- var oa = _({
542
+ var ga = $({
445
543
  name: ae,
446
- props: ra,
447
- emits: la,
448
- setup(e, { emit: o, slots: i }) {
449
- const { t: s } = q(), l = A("pagination"), g = ze().vnode.props || {}, f = Te(), m = C(() => {
450
- var t;
451
- return e.small ? "small" : (t = e.size) != null ? t : f.value;
452
- });
453
- $e({
544
+ props: ua,
545
+ emits: pa,
546
+ setup(e, { emit: o, slots: n }) {
547
+ const { t: d } = O(), i = F("pagination"), u = Se().vnode.props || {}, c = fe(), f = m(() => e.small ? "small" : e.size ?? c.value);
548
+ me({
454
549
  from: "small",
455
550
  replacement: "size",
456
551
  version: "3.0.0",
457
552
  scope: "el-pagination",
458
553
  ref: "https://element-plus.org/zh-CN/component/pagination.html"
459
- }, C(() => !!e.small));
460
- const P = "onUpdate:currentPage" in g || "onUpdate:current-page" in g || "onCurrentChange" in g, u = "onUpdate:pageSize" in g || "onUpdate:page-size" in g || "onSizeChange" in g, z = C(() => {
461
- if (h(e.total) && h(e.pageCount) || !h(e.currentPage) && !P)
554
+ }, m(() => !!e.small));
555
+ const _ = "onUpdate:currentPage" in u || "onUpdate:current-page" in u || "onCurrentChange" in u, b = "onUpdate:pageSize" in u || "onUpdate:page-size" in u || "onSizeChange" in u, s = m(() => {
556
+ if (C(e.total) && C(e.pageCount) || !C(e.currentPage) && !_)
462
557
  return !1;
463
558
  if (e.layout.includes("sizes")) {
464
- if (h(e.pageCount)) {
465
- if (!h(e.total) && !h(e.pageSize) && !u)
559
+ if (C(e.pageCount)) {
560
+ if (!C(e.total) && !C(e.pageSize) && !b)
466
561
  return !1;
467
- } else if (!u)
562
+ } else if (!b)
468
563
  return !1;
469
564
  }
470
565
  return !0;
471
- }), p = T(h(e.defaultPageSize) ? 10 : e.defaultPageSize), F = T(h(e.defaultCurrentPage) ? 1 : e.defaultCurrentPage), j = C({
566
+ }), p = E(C(e.defaultPageSize) ? 10 : e.defaultPageSize), k = E(C(e.defaultCurrentPage) ? 1 : e.defaultCurrentPage), U = m({
472
567
  get() {
473
- return h(e.pageSize) ? p.value : e.pageSize;
568
+ return C(e.pageSize) ? p.value : e.pageSize;
474
569
  },
475
- set(t) {
476
- h(e.pageSize) && (p.value = t), u && (o("update:page-size", t), o("size-change", t));
570
+ set(a) {
571
+ C(e.pageSize) && (p.value = a), b && (o("update:page-size", a), o("size-change", a));
477
572
  }
478
- }), E = C(() => {
479
- let t = 0;
480
- return h(e.pageCount) ? h(e.total) || (t = Math.max(1, Math.ceil(e.total / j.value))) : t = e.pageCount, t;
481
- }), d = C({
573
+ }), x = m(() => {
574
+ let a = 0;
575
+ return C(e.pageCount) ? C(e.total) || (a = Math.max(1, Math.ceil(e.total / U.value))) : a = e.pageCount, a;
576
+ }), P = m({
482
577
  get() {
483
- return h(e.currentPage) ? F.value : e.currentPage;
578
+ return C(e.currentPage) ? k.value : e.currentPage;
484
579
  },
485
- set(t) {
486
- let n = t;
487
- t < 1 ? n = 1 : t > E.value && (n = E.value), h(e.currentPage) && (F.value = n), P && (o("update:current-page", n), o("current-change", n));
580
+ set(a) {
581
+ let t = a;
582
+ a < 1 ? t = 1 : a > x.value && (t = x.value), C(e.currentPage) && (k.value = t), _ && (o("update:current-page", t), o("current-change", t));
488
583
  }
489
584
  });
490
- O(E, (t) => {
491
- d.value > t && (d.value = t);
492
- }), O([d, j], (t) => {
493
- o(J, ...t);
585
+ K(x, (a) => {
586
+ P.value > a && (P.value = a);
587
+ }), K([P, U], (a) => {
588
+ o(J, ...a);
494
589
  }, { flush: "post" });
495
- function U(t) {
496
- d.value = t;
590
+ function B(a) {
591
+ P.value = a;
497
592
  }
498
- function V(t) {
499
- j.value = t;
500
- const n = E.value;
501
- d.value > n && (d.value = n);
502
- }
503
- function Q() {
504
- e.disabled || (d.value -= 1, o("prev-click", d.value));
593
+ function V(a) {
594
+ U.value = a;
595
+ const t = x.value;
596
+ P.value > t && (P.value = t);
505
597
  }
506
598
  function W() {
507
- e.disabled || (d.value += 1, o("next-click", d.value));
599
+ e.disabled || (P.value -= 1, o("prev-click", P.value));
600
+ }
601
+ function X() {
602
+ e.disabled || (P.value += 1, o("next-click", P.value));
508
603
  }
509
- function r(t, n) {
510
- t && (t.props || (t.props = {}), t.props.class = [t.props.class, n].join(" "));
604
+ function j(a, t) {
605
+ a && (a.props || (a.props = {}), a.props.class = [a.props.class, t].join(" "));
511
606
  }
512
- return he(ue, {
513
- pageCount: E,
514
- disabled: C(() => e.disabled),
515
- currentPage: d,
516
- changeEvent: U,
607
+ return he(se, {
608
+ pageCount: x,
609
+ disabled: m(() => e.disabled),
610
+ currentPage: P,
611
+ changeEvent: B,
517
612
  handleSizeChange: V
518
613
  }), () => {
519
- var t, n;
520
- if (!z.value)
521
- return me(ae, s("el.pagination.deprecationWarning")), null;
522
- if (!e.layout || e.hideOnSinglePage && E.value <= 1)
614
+ var M;
615
+ if (!s.value)
616
+ return de(ae, d("el.pagination.deprecationWarning")), null;
617
+ if (!e.layout || e.hideOnSinglePage && x.value <= 1)
523
618
  return null;
524
- const b = [], v = [], k = B("div", { class: l.e("rightwrapper") }, v), $ = {
525
- prev: B(Ae, {
619
+ const a = [], t = [], l = I("div", { class: i.e("rightwrapper") }, t), S = {
620
+ prev: I(Le, {
526
621
  disabled: e.disabled,
527
- currentPage: d.value,
622
+ currentPage: P.value,
528
623
  prevText: e.prevText,
529
624
  prevIcon: e.prevIcon,
530
- onClick: Q
531
- }),
532
- jumper: B(Qe, {
533
- size: m.value
625
+ onClick: W
534
626
  }),
535
- pager: B(ia, {
536
- currentPage: d.value,
537
- pageCount: E.value,
627
+ jumper: I(Xe, { size: f.value }),
628
+ pager: I(sa, {
629
+ currentPage: P.value,
630
+ pageCount: x.value,
538
631
  pagerCount: e.pagerCount,
539
- onChange: U,
632
+ onChange: B,
540
633
  disabled: e.disabled
541
634
  }),
542
- next: B(Ke, {
635
+ next: I(Ke, {
543
636
  disabled: e.disabled,
544
- currentPage: d.value,
545
- pageCount: E.value,
637
+ currentPage: P.value,
638
+ pageCount: x.value,
546
639
  nextText: e.nextText,
547
640
  nextIcon: e.nextIcon,
548
- onClick: W
641
+ onClick: X
549
642
  }),
550
- sizes: B(He, {
551
- pageSize: j.value,
643
+ sizes: I(Ge, {
644
+ pageSize: U.value,
552
645
  pageSizes: e.pageSizes,
553
646
  popperClass: e.popperClass,
647
+ popperStyle: e.popperStyle,
554
648
  disabled: e.disabled,
555
649
  teleported: e.teleported,
556
- size: m.value,
650
+ size: f.value,
557
651
  appendSizeTo: e.appendSizeTo
558
652
  }),
559
- slot: (n = (t = i == null ? void 0 : i.default) == null ? void 0 : t.call(i)) != null ? n : null,
560
- total: B(ea, { total: h(e.total) ? 0 : e.total })
561
- }, S = e.layout.split(",").map((K) => K.trim());
562
- let x = !1;
563
- return S.forEach((K) => {
564
- if (K === "->") {
565
- x = !0;
653
+ slot: ((M = n == null ? void 0 : n.default) == null ? void 0 : M.call(n)) ?? null,
654
+ total: I(ea, { total: C(e.total) ? 0 : e.total })
655
+ }, h = e.layout.split(",").map((v) => v.trim());
656
+ let y = !1;
657
+ return h.forEach((v) => {
658
+ if (v === "->") {
659
+ y = !0;
566
660
  return;
567
661
  }
568
- x ? v.push($[K]) : b.push($[K]);
569
- }), r(b[0], l.is("first")), r(b[b.length - 1], l.is("last")), x && v.length > 0 && (r(v[0], l.is("first")), r(v[v.length - 1], l.is("last")), b.push(k)), B("div", {
570
- class: [
571
- l.b(),
572
- l.is("background", e.background),
573
- l.m(m.value)
574
- ]
575
- }, b);
662
+ y ? t.push(S[v]) : a.push(S[v]);
663
+ }), j(a[0], i.is("first")), j(a[a.length - 1], i.is("last")), y && t.length > 0 && (j(t[0], i.is("first")), j(t[t.length - 1], i.is("last")), a.push(l)), I("div", { class: [
664
+ i.b(),
665
+ i.is("background", e.background),
666
+ i.m(f.value)
667
+ ] }, a);
576
668
  };
577
669
  }
578
670
  });
579
- const sa = ce(oa);
580
- const ua = /* @__PURE__ */ _({
671
+ const da = ce(ga);
672
+ const ca = /* @__PURE__ */ $({
581
673
  __name: "index",
582
674
  props: {
583
675
  pageData: {
@@ -603,42 +695,42 @@ const ua = /* @__PURE__ */ _({
603
695
  },
604
696
  emits: ["update:pageData", "change"],
605
697
  setup(e, { emit: o }) {
606
- const i = o, s = e, l = C({
698
+ const n = o, d = e, i = m({
607
699
  get() {
608
- return s.pageData.pageNum;
700
+ return d.pageData.pageNum;
609
701
  },
610
- set(m) {
611
- i("update:pageData", { ...s.pageData, pageNum: m });
702
+ set(f) {
703
+ n("update:pageData", { ...d.pageData, pageNum: f });
612
704
  }
613
- }), g = C({
705
+ }), u = m({
614
706
  get() {
615
- return s.pageData.pageSize;
707
+ return d.pageData.pageSize;
616
708
  },
617
- set(m) {
618
- i("update:pageData", { ...s.pageData, pageSize: m });
709
+ set(f) {
710
+ n("update:pageData", { ...d.pageData, pageSize: f });
619
711
  }
620
- }), f = () => {
621
- i("change", s.pageData);
712
+ }), c = () => {
713
+ n("change", d.pageData);
622
714
  };
623
- return (m, P) => {
624
- const u = sa, z = de;
625
- return c(), w(z, { locale: a(ge) }, {
626
- default: R(() => [
627
- ye(X(u, Se({
715
+ return (f, _) => {
716
+ const b = da, s = pe;
717
+ return g(), T(s, { locale: r(ue) }, {
718
+ default: Q(() => [
719
+ Ne(Y(b, ke({
628
720
  class: "st-pagination",
629
- currentPage: l.value,
630
- "onUpdate:currentPage": P[0] || (P[0] = (p) => l.value = p),
631
- "page-size": g.value,
632
- "onUpdate:pageSize": P[1] || (P[1] = (p) => g.value = p),
721
+ currentPage: i.value,
722
+ "onUpdate:currentPage": _[0] || (_[0] = (p) => i.value = p),
723
+ "page-size": u.value,
724
+ "onUpdate:pageSize": _[1] || (_[1] = (p) => u.value = p),
633
725
  total: e.total,
634
726
  background: e.background,
635
727
  "page-sizes": e.pageSizes,
636
728
  layout: e.layout
637
- }, m.$attrs, {
638
- onSizeChange: f,
639
- onCurrentChange: f
729
+ }, f.$attrs, {
730
+ onSizeChange: c,
731
+ onCurrentChange: c
640
732
  }), null, 16, ["currentPage", "page-size", "total", "background", "page-sizes", "layout"]), [
641
- [_e, e.total]
733
+ [xe, e.total]
642
734
  ])
643
735
  ]),
644
736
  _: 1
@@ -646,9 +738,9 @@ const ua = /* @__PURE__ */ _({
646
738
  };
647
739
  }
648
740
  });
649
- const pa = /* @__PURE__ */ Be(ua, [["__scopeId", "data-v-79ee669b"]]), qa = {
741
+ const fa = /* @__PURE__ */ Me(ca, [["__scopeId", "data-v-79ee669b"]]), qa = {
650
742
  install(e) {
651
- e.component("st-pagination", pa);
743
+ e.component("st-pagination", fa);
652
744
  }
653
745
  };
654
746
  export {