@pungfe/element 0.5.1 → 0.5.4

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 (54) hide show
  1. package/README.md +5 -0
  2. package/dist/{advance-CB0gWtLg.js → advance-BY7MMpvJ.js} +126 -126
  3. package/dist/{advance-D-QeX-GV.cjs → advance-C7GMTyVo.cjs} +1 -1
  4. package/dist/advance.cjs +1 -1
  5. package/dist/advance.d.ts +1 -1
  6. package/dist/advance.js +1 -1
  7. package/dist/{basic-C6A5vPPP.js → basic-7ajmoMou.js} +68 -63
  8. package/dist/basic-Ian9axAR.cjs +1 -0
  9. package/dist/basic.cjs +1 -1
  10. package/dist/basic.d.ts +1 -1
  11. package/dist/basic.js +1 -1
  12. package/dist/components/advance/XButtonAsync.vue.d.ts +7 -11
  13. package/dist/components/advance/XButtonConfirm.vue.d.ts +7 -11
  14. package/dist/components/advance/XCascaderRequest.vue.d.ts +28 -23
  15. package/dist/components/advance/XFormFlex.vue.d.ts +12 -8
  16. package/dist/components/advance/XFormRequestNext.vue.d.ts +26 -21
  17. package/dist/components/advance/XRequest.vue.d.ts +28 -32
  18. package/dist/components/advance/XSelectRequest.vue.d.ts +26 -21
  19. package/dist/components/advance/XTableConfig.vue.d.ts +23 -18
  20. package/dist/components/advance/XTableFlex.vue.d.ts +17 -13
  21. package/dist/components/advance/XTableRequestConfigNext.vue.d.ts +37 -32
  22. package/dist/components/advance/XTableRequestNext.vue.d.ts +41 -36
  23. package/dist/components/advance/XUploadOssNext.vue.d.ts +16 -14
  24. package/dist/components/basic/Button.vue.d.ts +8 -12
  25. package/dist/components/basic/Cascader.vue.d.ts +18 -13
  26. package/dist/components/basic/Checkbox.vue.d.ts +9 -7
  27. package/dist/components/basic/ConfigProvider.vue.d.ts +7 -11
  28. package/dist/components/basic/DatePicker.vue.d.ts +20 -14
  29. package/dist/components/basic/Dialog.vue.d.ts +18 -26
  30. package/dist/components/basic/Form.vue.d.ts +11 -6
  31. package/dist/components/basic/FormItem.vue.d.ts +12 -10
  32. package/dist/components/basic/Input.vue.d.ts +23 -23
  33. package/dist/components/basic/InputNumber.vue.d.ts +12 -19
  34. package/dist/components/basic/Pagination.vue.d.ts +19 -22
  35. package/dist/components/basic/Select.vue.d.ts +28 -23
  36. package/dist/components/basic/TabPane.vue.d.ts +7 -11
  37. package/dist/components/basic/Table.vue.d.ts +46 -40
  38. package/dist/components/basic/Tabs.vue.d.ts +23 -21
  39. package/dist/components/basic/Upload.vue.d.ts +18 -31
  40. package/dist/constants/index.d.ts +1 -1
  41. package/dist/index.cjs +1 -1
  42. package/dist/index.js +3 -3
  43. package/dist/{locales-Ci_7wNxx.js → locales-1sqaDY76.js} +463 -447
  44. package/dist/locales-BCty7For.cjs +1 -0
  45. package/dist/locales.cjs +1 -1
  46. package/dist/locales.d.ts +2 -2
  47. package/dist/locales.js +2 -2
  48. package/dist/resolver.cjs +1 -1
  49. package/dist/resolver.js +5 -1
  50. package/dist/style.css +2 -2
  51. package/dist/types.d.ts +17 -17
  52. package/package.json +38 -29
  53. package/dist/basic-pOPUQrFu.cjs +0 -1
  54. package/dist/locales-CIRzA_S9.cjs +0 -1
package/README.md CHANGED
@@ -37,6 +37,11 @@ npm i @pungfe/element element-plus vue
37
37
  import Element from '@pungfe/element'
38
38
  import { createApp } from 'vue'
39
39
  import App from './App.vue'
40
+
41
+ import '.../tailwind.css'
42
+ import '.../cover.css'
43
+
44
+ // 该组件库的style.css 建议放在tailwind入口css和项目覆盖css之后
40
45
  import '@pungfe/element/style.css'
41
46
 
42
47
  const app = createApp(App)
@@ -1,4 +1,4 @@
1
- import { A as e, C as t, D as n, E as r, O as i, S as a, T as o, _ as s, a as c, b as l, d as u, g as d, k as f, l as p, n as m, o as h, s as g, u as _, w as v, x as y, y as b } from "./basic-C6A5vPPP.js";
1
+ import { A as e, C as t, D as n, E as r, O as i, S as a, T as o, _ as s, a as c, b as l, d as u, g as d, k as f, l as p, n as m, o as h, s as g, u as _, w as v, x as y, y as b } from "./basic-7ajmoMou.js";
2
2
  import { ElFormItem as x, ElMessage as ee, ElPopconfirm as te, ElPopover as ne, ElScrollbar as S, ElSpace as re, ElSwitch as ie, ElText as C, genFileId as w, useLocale as T } from "element-plus";
3
3
  import { Fragment as ae, computed as E, createBlock as oe, createCommentVNode as se, createElementBlock as D, createElementVNode as ce, createSlots as le, createTextVNode as ue, createVNode as O, defineComponent as k, guardReactiveProps as de, inject as fe, isRef as pe, isVNode as me, mergeModels as he, mergeProps as ge, nextTick as _e, normalizeProps as ve, openBlock as A, ref as ye, renderSlot as be, resolveComponent as xe, resolveDirective as Se, toDisplayString as Ce, toValue as we, unref as j, useModel as Te, useTemplateRef as Ee, watch as De, withCtx as Oe, withDirectives as ke } from "vue";
4
4
  //#endregion
@@ -8,14 +8,14 @@ var Ae = /* @__PURE__ */ k({
8
8
  props: {
9
9
  action: { type: Function },
10
10
  disabled: { type: Boolean },
11
+ icon: {},
11
12
  link: {
12
13
  type: Boolean,
13
14
  default: () => void 0
14
15
  },
15
16
  size: {},
16
17
  text: { type: Boolean },
17
- type: { default: "primary" },
18
- icon: {}
18
+ type: { default: "primary" }
19
19
  },
20
20
  setup(e) {
21
21
  let t = f(async () => {
@@ -42,14 +42,14 @@ var Ae = /* @__PURE__ */ k({
42
42
  props: {
43
43
  title: {},
44
44
  disabled: { type: Boolean },
45
+ icon: {},
45
46
  link: {
46
47
  type: Boolean,
47
48
  default: () => void 0
48
49
  },
49
50
  size: {},
50
51
  text: { type: Boolean },
51
- type: {},
52
- icon: {}
52
+ type: {}
53
53
  },
54
54
  emits: ["cancel", "confirm"],
55
55
  setup(e, { emit: t }) {
@@ -93,21 +93,21 @@ var Ae = /* @__PURE__ */ k({
93
93
  }), Me = /* @__PURE__ */ k({
94
94
  __name: "XCascaderRequest",
95
95
  props: /* @__PURE__ */ he({
96
- request: { type: Function },
97
96
  clearable: { type: Boolean },
98
97
  disabled: {
99
98
  type: Boolean,
100
99
  default: () => void 0
101
100
  },
102
101
  filterable: { type: Boolean },
103
- size: {},
102
+ request: { type: Function },
104
103
  placeholder: {},
105
- props: {}
104
+ props: {},
105
+ size: {}
106
106
  }, {
107
107
  modelValue: {},
108
108
  modelModifiers: {}
109
109
  }),
110
- emits: /* @__PURE__ */ he(["prepare", "change"], ["update:modelValue"]),
110
+ emits: /* @__PURE__ */ he(["change", "prepare"], ["update:modelValue"]),
111
111
  setup(e, { expose: t, emit: n }) {
112
112
  let r = n, i = Te(e, "modelValue"), { data: a, execute: o, path: s, query: c, url: l } = e.request();
113
113
  return t({
@@ -163,12 +163,12 @@ var Ae = /* @__PURE__ */ k({
163
163
  }), Fe = /* @__PURE__ */ k({
164
164
  __name: "XFormRequestNext",
165
165
  props: {
166
- request: { type: Function },
167
166
  content: { type: Function },
168
167
  disabled: {
169
168
  type: [Function, Boolean],
170
169
  default: void 0
171
170
  },
171
+ request: { type: Function },
172
172
  inline: { type: Boolean },
173
173
  labelPosition: {},
174
174
  labelSuffix: {},
@@ -213,8 +213,8 @@ var Ae = /* @__PURE__ */ k({
213
213
  }), Ie = /* @__PURE__ */ k({
214
214
  __name: "XRequest",
215
215
  props: {
216
- request: { type: Function },
217
- content: { type: Function }
216
+ content: { type: Function },
217
+ request: { type: Function }
218
218
  },
219
219
  emits: ["prepare"],
220
220
  setup(e, { expose: t, emit: n }) {
@@ -254,12 +254,12 @@ var Ae = /* @__PURE__ */ k({
254
254
  props: /* @__PURE__ */ he({
255
255
  request: { type: Function },
256
256
  supplement: { type: Function },
257
- collapseTagsTooltip: { type: Boolean },
258
- defaultFirstOption: { type: Boolean },
259
- clearable: { type: Boolean },
260
257
  allowCreate: { type: Boolean },
258
+ clearable: { type: Boolean },
261
259
  collapseTags: { type: Boolean },
260
+ collapseTagsTooltip: { type: Boolean },
262
261
  data: {},
262
+ defaultFirstOption: { type: Boolean },
263
263
  disabled: {
264
264
  type: Boolean,
265
265
  default: () => void 0
@@ -272,10 +272,10 @@ var Ae = /* @__PURE__ */ k({
272
272
  type: Boolean,
273
273
  default: () => void 0
274
274
  },
275
+ placeholder: {},
275
276
  remote: { type: Boolean },
276
277
  remoteMethod: { type: Function },
277
- size: {},
278
- placeholder: {}
278
+ size: {}
279
279
  }, {
280
280
  modelValue: {},
281
281
  modelModifiers: {}
@@ -1460,37 +1460,37 @@ Bn.prototype = {
1460
1460
  drop: Rn
1461
1461
  }, Ve(Bn, { pluginName: "removeOnSpill" }), Q.mount(new Pn()), Q.mount(Bn, zn);
1462
1462
  //#endregion
1463
- //#region node_modules/@vueuse/integrations/dist/useSortable-Cc5LKbDD.js
1463
+ //#region node_modules/@vueuse/integrations/dist/useSortable.js
1464
1464
  function Vn(e, n, i = {}) {
1465
1465
  let s, { document: c = a, watchElement: l = !1, ...u } = i, d = { onUpdate: (e) => {
1466
1466
  Wn(n, e.oldIndex, e.newIndex, e);
1467
- } }, f = E(() => typeof e == "string" ? c?.querySelector(e) : t(e)), p = () => {
1467
+ } }, f = () => {
1468
1468
  s?.destroy(), s = void 0;
1469
- }, m = (e) => {
1469
+ }, p = (e) => {
1470
1470
  !e || s !== void 0 || (s = new Q(e, {
1471
1471
  ...d,
1472
1472
  ...u
1473
1473
  }));
1474
- }, h = () => {
1475
- let e = f.value;
1476
- e && m(e);
1477
- }, g = (e, t) => {
1474
+ }, m = () => {
1475
+ let n = typeof e == "string" ? c?.querySelector(e) : t(e);
1476
+ n && p(n);
1477
+ }, h = (e, t) => {
1478
1478
  if (t !== void 0) s?.option(e, t);
1479
1479
  else return s?.option(e);
1480
- }, _;
1481
- return l && typeof e != "string" ? _ = De(f, (e) => {
1482
- p(), e && m(e);
1480
+ }, g;
1481
+ return l && typeof e != "string" ? g = De(() => t(e), (e) => {
1482
+ f(), e && p(e);
1483
1483
  }, {
1484
1484
  immediate: !0,
1485
1485
  flush: "post"
1486
- }) : o(h), r(() => {
1487
- _?.(), p();
1486
+ }) : o(m), r(() => {
1487
+ g?.(), f();
1488
1488
  }), {
1489
1489
  stop: () => {
1490
- p();
1490
+ f();
1491
1491
  },
1492
- start: h,
1493
- option: g
1492
+ start: m,
1493
+ option: h
1494
1494
  };
1495
1495
  }
1496
1496
  function Hn(e, t, n) {
@@ -1521,9 +1521,9 @@ function Kn(e) {
1521
1521
  var qn = /* @__PURE__ */ k({
1522
1522
  __name: "XTableConfig",
1523
1523
  props: {
1524
+ config: {},
1524
1525
  data: {},
1525
1526
  fields: { type: Function },
1526
- config: {},
1527
1527
  cellClassName: { type: [Function, String] },
1528
1528
  cellStyle: { type: [Function, Object] },
1529
1529
  rowClassName: { type: [Function, String] },
@@ -1534,11 +1534,11 @@ var qn = /* @__PURE__ */ k({
1534
1534
  size: {},
1535
1535
  spanMethod: { type: Function },
1536
1536
  summaryMethod: { type: Function },
1537
+ align: {},
1537
1538
  border: { type: Boolean },
1538
- fit: { type: Boolean },
1539
1539
  emptyText: {},
1540
- headerAlign: {},
1541
- align: {}
1540
+ fit: { type: Boolean },
1541
+ headerAlign: {}
1542
1542
  },
1543
1543
  emits: [
1544
1544
  "rowClick",
@@ -1568,54 +1568,54 @@ var qn = /* @__PURE__ */ k({
1568
1568
  }
1569
1569
  });
1570
1570
  let { t: f } = T(fe(l, void 0)), p = () => O(Jn, {
1571
- data: e.data,
1572
- columns: u.value,
1573
- showOverflowTooltip: !0,
1574
1571
  border: !0,
1572
+ columns: u.value,
1573
+ data: e.data,
1575
1574
  onHeaderDragend: (e, t, n) => {
1576
1575
  let r = o.value.find((e) => e.code === n.columnKey);
1577
1576
  r && (r.width = e, _e(() => {
1578
1577
  c(o.value);
1579
1578
  }));
1580
1579
  },
1581
- onRowClick: (e) => a("rowClick", e)
1580
+ onRowClick: (e) => a("rowClick", e),
1581
+ showOverflowTooltip: !0
1582
1582
  }, null), m = () => O(ne, {
1583
+ "popper-class": "shadow-xl bg-(--el-bg-color)",
1583
1584
  trigger: "click",
1584
- width: "auto",
1585
- "popper-class": "shadow-xl bg-(--el-bg-color)"
1585
+ width: "auto"
1586
1586
  }, {
1587
1587
  default: () => {
1588
1588
  let e;
1589
1589
  return O("div", { class: "flex flex-col gap-2" }, [O(C, { size: "large" }, Kn(e = f("el.common.tableConfigTitle")) ? e : { default: () => [e] }), O(S, { "max-height": 500 }, { default: () => [O("div", {
1590
- ref: d,
1591
- class: "flex flex-col divide-y divide-[#f2f6fc]"
1590
+ class: "flex flex-col divide-y divide-[#f2f6fc]",
1591
+ ref: d
1592
1592
  }, { default: () => o.value.map((e) => O("div", { class: "flex w-50 items-center gap-2 py-2" }, [
1593
1593
  O(y, {
1594
- text: !0,
1595
- icon: Re,
1594
+ class: "cursor-grab",
1596
1595
  disabled: !1,
1597
- type: "primary",
1596
+ icon: Re,
1598
1597
  size: "small",
1599
- class: "cursor-grab"
1598
+ text: !0,
1599
+ type: "primary"
1600
1600
  }, null),
1601
1601
  O(C, { class: "flex-1 overflow-ellipsis" }, { default: () => [e.label] }),
1602
1602
  O(ie, {
1603
- size: "small",
1604
1603
  disabled: !1,
1605
1604
  modelValue: e.visible,
1606
1605
  "onUpdate:modelValue": (t) => {
1607
1606
  e.visible = t, _e(() => {
1608
1607
  c(o.value);
1609
1608
  });
1610
- }
1609
+ },
1610
+ size: "small"
1611
1611
  }, null)
1612
1612
  ])) })] })]);
1613
1613
  },
1614
1614
  reference: () => O(y, {
1615
- icon: ze,
1615
+ class: "absolute top-0 right-0 z-1000",
1616
1616
  disabled: !1,
1617
- text: !0,
1618
- class: "absolute top-0 right-0 z-1000"
1617
+ icon: ze,
1618
+ text: !0
1619
1619
  }, null)
1620
1620
  });
1621
1621
  return t({ data: e.data }), (e, t) => {
@@ -1638,21 +1638,21 @@ var qn = /* @__PURE__ */ k({
1638
1638
  size: {},
1639
1639
  spanMethod: {},
1640
1640
  summaryMethod: {},
1641
- showOverflowTooltip: {
1642
- type: [Boolean, Object],
1643
- default: void 0
1644
- },
1641
+ align: {},
1645
1642
  border: {
1646
1643
  type: Boolean,
1647
1644
  default: void 0
1648
1645
  },
1646
+ emptyText: {},
1649
1647
  fit: {
1650
1648
  type: Boolean,
1651
1649
  default: void 0
1652
1650
  },
1653
- emptyText: {},
1654
1651
  headerAlign: {},
1655
- align: {}
1652
+ showOverflowTooltip: {
1653
+ type: [Boolean, Object],
1654
+ default: void 0
1655
+ }
1656
1656
  },
1657
1657
  emits: [
1658
1658
  "headerDragend",
@@ -1697,15 +1697,15 @@ function Zn(e) {
1697
1697
  var Qn = /* @__PURE__ */ k({
1698
1698
  __name: "XTableRequestConfigNext",
1699
1699
  props: {
1700
- request: { type: Function },
1700
+ config: {},
1701
1701
  fields: { type: Function },
1702
1702
  header: { type: Function },
1703
- config: {},
1704
1703
  pagination: {
1705
1704
  type: Boolean,
1706
1705
  default: !0
1707
1706
  },
1708
1707
  paginationLayout: {},
1708
+ request: { type: Function },
1709
1709
  cellClassName: { type: [Function, String] },
1710
1710
  cellStyle: { type: [Function, Object] },
1711
1711
  rowClassName: { type: [Function, String] },
@@ -1717,11 +1717,11 @@ var Qn = /* @__PURE__ */ k({
1717
1717
  size: {},
1718
1718
  spanMethod: { type: Function },
1719
1719
  summaryMethod: { type: Function },
1720
+ align: {},
1720
1721
  border: { type: Boolean },
1721
- fit: { type: Boolean },
1722
1722
  emptyText: {},
1723
- headerAlign: {},
1724
- align: {}
1723
+ fit: { type: Boolean },
1724
+ headerAlign: {}
1725
1725
  },
1726
1726
  emits: [
1727
1727
  "prepare",
@@ -1759,17 +1759,14 @@ var Qn = /* @__PURE__ */ k({
1759
1759
  }
1760
1760
  });
1761
1761
  let he = fe(l, void 0), { t: ge } = T(he), ve = () => O(u, {
1762
- labelPosition: he?.value.name.toLowerCase() === "zh-cn" ? "left" : "top",
1763
- data: h.value,
1764
- disabled: ce.value || c.value,
1765
1762
  content: ({ data: t }) => O("div", { class: "grid grid-cols-2 md:grid-cols-3 lg:grid-cols-4 xl:grid-cols-5 gap-x-2" }, [[...de.value.map((n) => {
1766
1763
  let r = e.config[n.code];
1767
1764
  return O(_, {
1768
- label: r?.label ?? n.label,
1769
1765
  content: () => r?.search?.({ query: t }) ?? O(p, {
1770
1766
  disabled: !0,
1771
1767
  modelValue: n.code
1772
- }, null)
1768
+ }, null),
1769
+ label: r?.label ?? n.label
1773
1770
  }, null);
1774
1771
  }), O(x, null, {
1775
1772
  default: () => {
@@ -1780,7 +1777,10 @@ var Qn = /* @__PURE__ */ k({
1780
1777
  } }, Zn(e = ge("el.common.query")) ? e : { default: () => [e] }), O(y, { onClick: () => te() }, Zn(t = ge("el.common.reset")) ? t : { default: () => [t] })] });
1781
1778
  },
1782
1779
  label: () => O("div", { style: "height: 22px" }, null)
1783
- })]])
1780
+ })]]),
1781
+ data: h.value,
1782
+ disabled: ce.value || c.value,
1783
+ labelPosition: he?.value.name.toLowerCase() === "zh-cn" ? "left" : "top"
1784
1784
  }, null), be = () => e.header?.({
1785
1785
  data: o.value,
1786
1786
  isFetching: c.value,
@@ -1788,67 +1788,67 @@ var Qn = /* @__PURE__ */ k({
1788
1788
  path: m.value,
1789
1789
  query: h.value
1790
1790
  }), xe = () => O(Jn, {
1791
- data: o.value,
1792
- columns: k.value,
1793
- showOverflowTooltip: !0,
1794
1791
  border: !0,
1792
+ columns: k.value,
1793
+ data: o.value,
1795
1794
  onHeaderDragend: (e, t, n) => {
1796
1795
  let r = w.value.find((e) => e.code === n.columnKey);
1797
1796
  r && (r.width = e, _e(() => {
1798
1797
  le(w.value);
1799
1798
  }));
1800
- }
1799
+ },
1800
+ showOverflowTooltip: !0
1801
1801
  }, null), Ce = () => O(ne, {
1802
+ "popper-class": "shadow-xl bg-(--el-bg-color)",
1802
1803
  trigger: "click",
1803
- width: "auto",
1804
- "popper-class": "shadow-xl bg-(--el-bg-color)"
1804
+ width: "auto"
1805
1805
  }, {
1806
1806
  default: () => {
1807
1807
  let e;
1808
1808
  return O("div", { class: "flex flex-col gap-2" }, [O(C, { size: "large" }, Zn(e = ge("el.common.tableConfigTitle")) ? e : { default: () => [e] }), O(S, { "max-height": 500 }, { default: () => [O("div", {
1809
- ref: me,
1810
- class: "flex flex-col divide-y divide-[#f2f6fc]"
1809
+ class: "flex flex-col divide-y divide-[#f2f6fc]",
1810
+ ref: me
1811
1811
  }, { default: () => w.value.map((e) => O("div", { class: "flex w-50 items-center gap-2 py-2" }, [
1812
1812
  O(y, {
1813
- text: !0,
1814
- icon: Re,
1813
+ class: "cursor-grab",
1815
1814
  disabled: !1,
1816
- type: "primary",
1815
+ icon: Re,
1817
1816
  size: "small",
1818
- class: "cursor-grab"
1817
+ text: !0,
1818
+ type: "primary"
1819
1819
  }, null),
1820
- O(C, { class: "flex-1 overflow-ellipsis" }, { default: () => [e.label] }),
1820
+ O(C, { class: "flex-1 text-ellipsis" }, { default: () => [e.label] }),
1821
1821
  O(ie, {
1822
- size: "small",
1823
1822
  disabled: !1,
1824
1823
  modelValue: e.visible,
1825
1824
  "onUpdate:modelValue": (t) => {
1826
1825
  e.visible = t, _e(() => {
1827
1826
  le(w.value);
1828
1827
  });
1829
- }
1828
+ },
1829
+ size: "small"
1830
1830
  }, null)
1831
1831
  ])) })] })]);
1832
1832
  },
1833
1833
  reference: () => O(y, {
1834
- icon: ze,
1835
- text: !0,
1834
+ class: "absolute top-0 right-0 z-1000",
1836
1835
  disabled: !1,
1837
- class: "absolute top-0 right-0 z-1000"
1836
+ icon: ze,
1837
+ text: !0
1838
1838
  }, null)
1839
1839
  }), we = () => O(g, {
1840
- size: "small",
1841
- layout: e.paginationLayout,
1842
- total: d.value.itemCount,
1843
1840
  currentPage: d.value.pageIndex,
1844
- pageSize: d.value.pageSize,
1845
- "onUpdate:currentPage": (e) => h.value.pageIndex = e ?? 0,
1846
- "onUpdate:pageSize": (e) => h.value.pageSize = e ?? 0,
1841
+ layout: e.paginationLayout,
1847
1842
  onCurrentChange: () => s(),
1848
1843
  onSizeChange: () => {
1849
1844
  let e = h.value;
1850
1845
  e.pageIndex = 1, s();
1851
- }
1846
+ },
1847
+ "onUpdate:currentPage": (e) => h.value.pageIndex = e ?? 0,
1848
+ "onUpdate:pageSize": (e) => h.value.pageSize = e ?? 0,
1849
+ pageSize: d.value.pageSize,
1850
+ size: "small",
1851
+ total: d.value.itemCount
1852
1852
  }, null);
1853
1853
  return t({
1854
1854
  data: o,
@@ -1881,37 +1881,37 @@ var Qn = /* @__PURE__ */ k({
1881
1881
  }, tr = /* @__PURE__ */ k({
1882
1882
  __name: "XTableRequestNext",
1883
1883
  props: {
1884
- request: { type: Function },
1884
+ cellClassName: { type: [Function, String] },
1885
+ cellStyle: { type: [Function, Object] },
1886
+ columns: {},
1887
+ footer: { type: Function },
1888
+ header: { type: Function },
1885
1889
  pagination: {
1886
1890
  type: Boolean,
1887
1891
  default: !0
1888
1892
  },
1889
- columns: {},
1890
- header: { type: Function },
1891
- footer: { type: Function },
1892
- cellClassName: { type: [Function, String] },
1893
- cellStyle: { type: [Function, Object] },
1893
+ paginationLayout: {},
1894
+ request: { type: Function },
1894
1895
  rowClassName: { type: [Function, String] },
1895
1896
  rowStyle: { type: [Function, Object] },
1896
- paginationLayout: {},
1897
1897
  height: {},
1898
1898
  rowKey: { type: Function },
1899
1899
  showSummary: { type: Boolean },
1900
1900
  size: {},
1901
1901
  spanMethod: { type: Function },
1902
1902
  summaryMethod: { type: Function },
1903
- showOverflowTooltip: {
1904
- type: [Boolean, Object],
1905
- default: () => void 0
1906
- },
1903
+ align: {},
1907
1904
  border: { type: Boolean },
1905
+ emptyText: {},
1908
1906
  fit: {
1909
1907
  type: Boolean,
1910
1908
  default: () => void 0
1911
1909
  },
1912
- emptyText: {},
1913
1910
  headerAlign: {},
1914
- align: {}
1911
+ showOverflowTooltip: {
1912
+ type: [Boolean, Object],
1913
+ default: () => void 0
1914
+ }
1915
1915
  },
1916
1916
  emits: [
1917
1917
  "prepare",
@@ -1940,31 +1940,31 @@ var Qn = /* @__PURE__ */ k({
1940
1940
  url: u
1941
1941
  });
1942
1942
  let m = () => e.header?.({ query: l.value }), h = () => O(Jn, {
1943
- data: i.value,
1943
+ cellClassName: e.cellClassName,
1944
+ cellStyle: e.cellStyle,
1944
1945
  columns: e.columns,
1945
- showOverflowTooltip: e.showOverflowTooltip,
1946
+ data: i.value,
1946
1947
  fit: e.fit,
1948
+ onHeaderDragend: (e, t, n) => r("headerDragend", e, t, n),
1947
1949
  onRowClick: (e) => r("rowClick", e),
1948
1950
  onRowDblclick: (e) => r("rowDblclick", e),
1949
1951
  onSelectionChange: (e) => r("selectionChange", e),
1950
- onHeaderDragend: (e, t, n) => r("headerDragend", e, t, n),
1951
- cellClassName: e.cellClassName,
1952
- cellStyle: e.cellStyle,
1953
1952
  rowClassName: e.rowClassName,
1954
- rowStyle: e.rowStyle
1953
+ rowStyle: e.rowStyle,
1954
+ showOverflowTooltip: e.showOverflowTooltip
1955
1955
  }, null), _ = () => O(g, {
1956
- size: "small",
1957
- layout: e.paginationLayout,
1958
- total: s.value.itemCount,
1959
1956
  currentPage: s.value.pageIndex,
1960
- pageSize: s.value.pageSize,
1961
- "onUpdate:currentPage": (e) => l.value.pageIndex = e ?? 0,
1962
- "onUpdate:pageSize": (e) => l.value.pageSize = e ?? 0,
1957
+ layout: e.paginationLayout,
1963
1958
  onCurrentChange: () => a(),
1964
1959
  onSizeChange: () => {
1965
1960
  let e = l.value;
1966
1961
  e.pageIndex = 1, a();
1967
- }
1962
+ },
1963
+ "onUpdate:currentPage": (e) => l.value.pageIndex = e ?? 0,
1964
+ "onUpdate:pageSize": (e) => l.value.pageSize = e ?? 0,
1965
+ pageSize: s.value.pageSize,
1966
+ size: "small",
1967
+ total: s.value.itemCount
1968
1968
  }, null), v = () => e.footer?.({ query: l.value });
1969
1969
  return (t, n) => {
1970
1970
  let r = Se("loading");
@@ -1983,11 +1983,11 @@ var Qn = /* @__PURE__ */ k({
1983
1983
  accept: {},
1984
1984
  disabled: { type: Boolean },
1985
1985
  limit: {},
1986
- showFileList: { type: Boolean },
1987
1986
  multiple: { type: Boolean },
1988
- onSuccess: { type: Function },
1987
+ onPreview: { type: Function },
1989
1988
  onRemove: { type: Function },
1990
- onPreview: { type: Function }
1989
+ onSuccess: { type: Function },
1990
+ showFileList: { type: Boolean }
1991
1991
  }, {
1992
1992
  modelValue: {},
1993
1993
  modelModifiers: {}
@@ -2005,7 +2005,7 @@ var Qn = /* @__PURE__ */ k({
2005
2005
  }, o = (t) => (t.size > e.maxSize && ee.warning("文件过大,请重新选择"), t.size < e.maxSize), c = (e, t) => n.value = Array.isArray(n.value) ? t.map((e) => e.url) : void 0, u = () => n.value = Array.isArray(n.value) ? n.value.concat(i.value) : i.value, d = (e) => window.open(e.url), f = (e) => {
2006
2006
  if (!/^\d+$/.test(e)) return !1;
2007
2007
  let t = Number(e);
2008
- return !Number.isSafeInteger(t) || e.length < 12 || e.length > 16 ? !1 : (new Date(t), t >= Date.UTC(2e3, 0, 1) && t <= Date.UTC(2100, 0, 1));
2008
+ return !Number.isSafeInteger(t) || e.length < 12 || e.length > 16 ? !1 : t >= Date.UTC(2e3, 0, 1) && t <= Date.UTC(2100, 0, 1);
2009
2009
  }, p = E(() => [].concat(n.value ?? []).reverse().map((e) => {
2010
2010
  let t = e.split("/"), n = t.at(-1), r = n?.split("_").at(0);
2011
2011
  return (!r || !f(r)) && (r = t.at(-2)), r && !f(r) && (r = `${w()}`), {
@@ -2025,7 +2025,7 @@ var Qn = /* @__PURE__ */ k({
2025
2025
  onRemove: c,
2026
2026
  onSuccess: u,
2027
2027
  onPreview: d
2028
- }, { showFileList: "" }), le({
2028
+ }, { "show-file-list": "" }), le({
2029
2029
  default: Oe(() => [be(t.$slots, "default", {}, () => [O(i, {
2030
2030
  type: "primary",
2031
2031
  size: "small"