index12.js 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. import { aX as A, aY as g, aZ as w, a_ as R, _ as v, d as _, a$ as m, b0 as j, b1 as M, b2 as U, b3 as G, b4 as D, b5 as F } from "./index2.js";
  2. import { defineComponent as a, createVNode as p } from "vue";
  3. const P = a({
  4. compatConfig: {
  5. MODE: 3
  6. },
  7. name: "ATableSummaryRow",
  8. setup(n, l) {
  9. let {
  10. slots: o
  11. } = l;
  12. return () => {
  13. var e;
  14. return p("tr", null, [(e = o.default) === null || e === void 0 ? void 0 : e.call(o)]);
  15. };
  16. }
  17. }), V = a({
  18. name: "ATableSummaryCell",
  19. props: ["index", "colSpan", "rowSpan", "align"],
  20. setup(n, l) {
  21. let {
  22. attrs: o,
  23. slots: e
  24. } = l;
  25. const b = A(), T = g();
  26. return () => {
  27. const {
  28. index: t,
  29. colSpan: s = 1,
  30. rowSpan: x,
  31. align: f
  32. } = n, {
  33. prefixCls: E,
  34. direction: I
  35. } = b, {
  36. scrollColumnIndex: N,
  37. stickyOffsets: O,
  38. flattenColumns: y
  39. } = T, S = t + s - 1 + 1 === N ? s + 1 : s, L = w(t, t + S - 1, y, O, I);
  40. return p(R, v({
  41. class: o.class,
  42. index: t,
  43. component: "td",
  44. prefixCls: E,
  45. record: null,
  46. dataIndex: null,
  47. align: f,
  48. colSpan: S,
  49. rowSpan: x,
  50. customRender: () => {
  51. var r;
  52. return (r = e.default) === null || r === void 0 ? void 0 : r.call(e);
  53. }
  54. }, L), null);
  55. };
  56. }
  57. }), u = a({
  58. name: "ATableColumn",
  59. slots: Object,
  60. render() {
  61. return null;
  62. }
  63. }), c = a({
  64. name: "ATableColumnGroup",
  65. slots: Object,
  66. __ANT_TABLE_COLUMN_GROUP: !0,
  67. render() {
  68. return null;
  69. }
  70. }), C = P, i = V, d = _(F, {
  71. Cell: i,
  72. Row: C,
  73. name: "ATableSummary"
  74. }), Y = _(m, {
  75. SELECTION_ALL: D,
  76. SELECTION_INVERT: G,
  77. SELECTION_NONE: U,
  78. SELECTION_COLUMN: M,
  79. EXPAND_COLUMN: j,
  80. Column: u,
  81. ColumnGroup: c,
  82. Summary: d,
  83. install: (n) => (n.component(d.name, d), n.component(i.name, i), n.component(C.name, C), n.component(m.name, m), n.component(u.name, u), n.component(c.name, c), n)
  84. });
  85. export {
  86. Y as _
  87. };