super-page-runtime 2.2.3 → 2.2.6

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 (110) hide show
  1. package/dist/es/_virtual/_plugin-vue_export-helper.js +1 -2
  2. package/dist/es/components/runtime/index.d.ts +2 -1
  3. package/dist/es/components/runtime/utils/api/page-expose-util.js +70 -72
  4. package/dist/es/components/runtime/utils/assemblys-config.js +2 -4
  5. package/dist/es/components/runtime/utils/barcode-util.js +1 -2
  6. package/dist/es/components/runtime/utils/charts/chart-columnline-util.js +59 -81
  7. package/dist/es/components/runtime/utils/charts/chart-gauge-util.js +2 -4
  8. package/dist/es/components/runtime/utils/charts/chart-pie-util.js +8 -16
  9. package/dist/es/components/runtime/utils/charts/chart-radar-util.js +10 -18
  10. package/dist/es/components/runtime/utils/charts/chart-scatter-util.js +20 -25
  11. package/dist/es/components/runtime/utils/charts/chart-util.d.ts +1 -0
  12. package/dist/es/components/runtime/utils/charts/chart-util.js +200 -218
  13. package/dist/es/components/runtime/utils/common-util.js +7 -14
  14. package/dist/es/components/runtime/utils/events/event-util.js +97 -115
  15. package/dist/es/components/runtime/utils/events/print-label.js +20 -21
  16. package/dist/es/components/runtime/utils/events/standard-event.js +276 -326
  17. package/dist/es/components/runtime/utils/events/validator-util.js +85 -116
  18. package/dist/es/components/runtime/utils/form/date-shortcuts.js +1 -2
  19. package/dist/es/components/runtime/utils/form/scan-util.js +10 -17
  20. package/dist/es/components/runtime/utils/global-refs.js +7 -14
  21. package/dist/es/components/runtime/utils/i18n-util.js +1 -2
  22. package/dist/es/components/runtime/utils/page-helper-util.js +58 -104
  23. package/dist/es/components/runtime/utils/page-init-util.js +30 -37
  24. package/dist/es/components/runtime/utils/page-permission-util.js +2 -4
  25. package/dist/es/components/runtime/utils/page-store.d.ts +2 -2
  26. package/dist/es/components/runtime/utils/table-utils.js +4 -8
  27. package/dist/es/components/runtime/utils/tree-utils.js +13 -15
  28. package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue2.js +2 -2
  29. package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue2.js +2 -2
  30. package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue2.js +3 -4
  31. package/dist/es/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime.vue2.js +2 -2
  32. package/dist/es/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue2.js +2 -2
  33. package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +24 -28
  34. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb.vue.js +2 -2
  35. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.js +2 -2
  36. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue.js +44 -40
  37. package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue.js +44 -0
  38. package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue2.js +4 -0
  39. package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +20 -20
  40. package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +20 -20
  41. package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +20 -20
  42. package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +22 -22
  43. package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.d.ts +33 -1
  44. package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.js +114 -113
  45. package/dist/es/components/runtime/views/assemblys/chart/table/group-column-item.vue.js +2 -2
  46. package/dist/es/components/runtime/views/assemblys/chart/table/group-column.vue.js +2 -2
  47. package/dist/es/components/runtime/views/assemblys/chart/table/normal-column.vue.js +2 -2
  48. package/dist/es/components/runtime/views/assemblys/chart/table/table-pageination.vue.js +2 -2
  49. package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +123 -116
  50. package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.d.ts +4 -4
  51. package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +2 -2
  52. package/dist/es/components/runtime/views/assemblys/common/remove-signer-dialog.vue.d.ts +6 -6
  53. package/dist/es/components/runtime/views/assemblys/common/remove-signer-dialog.vue.js +9 -11
  54. package/dist/es/components/runtime/views/assemblys/common/task-informition-dialog.vue.d.ts +6 -6
  55. package/dist/es/components/runtime/views/assemblys/common/task-informition-dialog.vue.js +2 -2
  56. package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue2.js +2 -2
  57. package/dist/es/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue2.js +2 -2
  58. package/dist/es/components/runtime/views/assemblys/container/container/container-runtime.vue2.js +2 -2
  59. package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime.vue2.js +2 -2
  60. package/dist/es/components/runtime/views/assemblys/container/form/form-runtime.vue2.js +2 -2
  61. package/dist/es/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue2.js +2 -2
  62. package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +2 -2
  63. package/dist/es/components/runtime/views/assemblys/container/tools/tools-runtime.vue2.js +2 -2
  64. package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue2.js +7 -7
  65. package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +46 -57
  66. package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +13 -21
  67. package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue2.js +6 -9
  68. package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue2.js +5 -5
  69. package/dist/es/components/runtime/views/assemblys/error-render.vue.d.ts +4 -4
  70. package/dist/es/components/runtime/views/assemblys/error-render.vue.js +2 -2
  71. package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +6 -8
  72. package/dist/es/components/runtime/views/assemblys/form/common/title-suffix-element.vue.js +4 -6
  73. package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue2.js +7 -9
  74. package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +10 -13
  75. package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +5 -5
  76. package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime.vue2.js +3 -4
  77. package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +3 -4
  78. package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js +5 -5
  79. package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +9 -10
  80. package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +9 -11
  81. package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +2 -2
  82. package/dist/es/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue.js +1 -1
  83. package/dist/es/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue2.js +2 -2
  84. package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +15 -20
  85. package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +20 -25
  86. package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +15 -20
  87. package/dist/es/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue2.js +2 -2
  88. package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue2.js +2 -2
  89. package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime.vue2.js +4 -5
  90. package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.js +5 -5
  91. package/dist/es/components/runtime/views/assemblys/home-chart-render.vue.d.ts +17 -0
  92. package/dist/es/components/runtime/views/assemblys/home-chart-render.vue.js +97 -0
  93. package/dist/es/components/runtime/views/assemblys/home-chart-render.vue2.js +4 -0
  94. package/dist/es/components/runtime/views/assemblys/object-render.vue.d.ts +1 -1
  95. package/dist/es/components/runtime/views/assemblys/object-render.vue.js +33 -43
  96. package/dist/es/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-runtime.vue2.js +3 -4
  97. package/dist/es/components/runtime/views/assemblys/workflow/text-history/textflow-runtime.vue2.js +3 -4
  98. package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +3 -4
  99. package/dist/es/components/runtime/views/assemblys/workflow/workflow-node/workflownode-runtime.vue2.js +2 -2
  100. package/dist/es/components/runtime/views/home-chart.vue.d.ts +23 -0
  101. package/dist/es/components/runtime/views/home-chart.vue.js +36 -0
  102. package/dist/es/components/runtime/views/home-chart.vue2.js +4 -0
  103. package/dist/es/components/runtime/views/super-page-dialog.vue.d.ts +3 -3
  104. package/dist/es/components/runtime/views/super-page-dialog.vue.js +2 -2
  105. package/dist/es/components/runtime/views/super-page.vue.d.ts +6 -6
  106. package/dist/es/components/runtime/views/super-page.vue.js +25 -38
  107. package/dist/es/index.d.ts +2 -2
  108. package/dist/es/index.js +6 -4
  109. package/package.json +74 -74
  110. package/dist/es/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue3.js +0 -1
@@ -1,35 +1,35 @@
1
- import { defineComponent as e, ref as r, onMounted as t, watch as o, openBlock as a, createElementBlock as n, normalizeStyle as s, unref as u, normalizeClass as i, withDirectives as c, createVNode as p, vShow as f } from "vue";
2
- import { getCustomTheme as m, initChartOption as l, exportCommonChart as h } from "../../../../utils/charts/chart-util.js";
1
+ import { defineComponent as e, ref as r, onMounted as t, watch as o, createElementBlock as a, openBlock as n, normalizeClass as u, normalizeStyle as s, unref as i, withDirectives as c, createVNode as p, vShow as f } from "vue";
2
+ import { getCustomTheme as m, initChartOption as h, exportCommonChart as l } from "../../../../utils/charts/chart-util.js";
3
3
  import { getChartDatasFromPage as g, updateChartDatasources as d, monitorFieldChange as x } from "../../../../utils/page-helper-util.js";
4
4
  import { updateChartOption as C } from "../../../../utils/charts/chart-scatter-util.js";
5
5
  import v from "../common/common-chart-header.vue.js";
6
6
  import { use as R } from "echarts/core";
7
7
  import { CanvasRenderer as y } from "echarts/renderers";
8
8
  import { ScatterChart as V } from "echarts/charts";
9
- import { GridComponent as _, LegendComponent as j, TitleComponent as I, TooltipComponent as k, ToolboxComponent as w, DataZoomComponent as b } from "echarts/components";
10
- import z from "vue-echarts";
11
- const D = e({ __name: "scatter-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: D2 }) {
12
- R([y, V, _, j, I, k, w, b]);
13
- const F = e2, H = r(null), O = r(null), P = r(null), T = F.configure.runtime ? F.configure.runtime : {}, q = T.style, A = T.class, B = T.dataConfig, E = T.headerInfo ? T.headerInfo : {}, G = T.chartOption, J = F.configure.props ? F.configure.props : {}, K = m(J.customTheme);
14
- l(F.configure, G), t(() => {
15
- const e3 = g(F.pageContext, F.configure);
16
- e3 && Q(e3);
9
+ import { GridComponent as _, LegendComponent as j, TitleComponent as I, TooltipComponent as k, ToolboxComponent as w, DataZoomComponent as H } from "echarts/components";
10
+ import b from "vue-echarts";
11
+ const z = e({ __name: "scatter-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: z2 }) {
12
+ R([y, V, _, j, I, k, w, H]);
13
+ const D = e2, F = r(null), O = r(null), P = r(null), S = D.configure.runtime ? D.configure.runtime : {}, T = S.style, q = S.class, A = S.dataConfig, B = S.headerInfo ? S.headerInfo : {}, E = S.chartOption, G = D.configure.props ? D.configure.props : {}, J = m(G.customTheme);
14
+ h(D.configure, E), t(() => {
15
+ const e3 = g(D.pageContext, D.configure);
16
+ e3 && N(e3);
17
17
  });
18
- let L = E.groupValue;
19
- function M() {
20
- B && d(F.pageContext, [B], E.drillParams);
18
+ let K = B.groupValue;
19
+ function L() {
20
+ A && d(D.pageContext, [A], B.drillParams);
21
21
  }
22
- o(E, () => {
23
- L != E.groupValue && (L = E.groupValue, B && (B.services[0].groupValue = E.groupValue), M());
22
+ o(B, () => {
23
+ K != B.groupValue && (K = B.groupValue, A && (A.services[0].groupValue = B.groupValue), L());
24
24
  });
25
- const N = E.monitorFields;
26
- function Q(e3) {
27
- e3 || (e3 = []), (e3 = e3.length > 0 ? e3[0] : {}) || (e3 = {}), e3.hasRender ? e3.hasRender = true : (e3.hasRender = true, C(F.pageContext, F.configure, G, e3));
25
+ const M = B.monitorFields;
26
+ function N(e3) {
27
+ e3 || (e3 = []), (e3 = e3.length > 0 ? e3[0] : {}) || (e3 = {}), e3.hasRender ? e3.hasRender = true : (e3.hasRender = true, C(D.pageContext, D.configure, E, e3));
28
28
  }
29
- return x(F.pageContext, N, M), D2({ updateChartDatas: Q, exportChart: function() {
30
- return h(O.value);
31
- } }), (e3, r2) => (a(), n("div", { style: s(u(q)), class: i([u(A), "amb-widget-chart"]), ref_key: "thisRef", ref: H }, [c(p(v, { ref_key: "headerRef", ref: P, headerInfo: u(E) }, null, 8, ["headerInfo"]), [[f, u(E).showHeader]]), p(u(z), { ref_key: "chartRef", ref: O, theme: u(K), option: u(G), autoresize: "" }, null, 8, ["theme", "option"])], 6));
29
+ return x(D.pageContext, M, L), z2({ updateChartDatas: N, exportChart: function() {
30
+ return l(O.value);
31
+ } }), (e3, r2) => (n(), a("div", { style: s(i(T)), class: u([i(q), "amb-widget-chart"]), ref_key: "thisRef", ref: F }, [c(p(v, { ref_key: "headerRef", ref: P, headerInfo: i(B), configure: e3.configure, pageContext: e3.pageContext }, null, 8, ["headerInfo", "configure", "pageContext"]), [[f, i(B).showHeader || e3.pageContext.showHomepageSearch]]), p(i(b), { ref_key: "chartRef", ref: O, theme: i(J), option: i(E), autoresize: "" }, null, 8, ["theme", "option"])], 6));
32
32
  } });
33
33
  export {
34
- D as default
34
+ z as default
35
35
  };
@@ -36,7 +36,7 @@ export declare function replacePlaceholders(template: string, data: {
36
36
  export declare function getHeaderCellStyleUtil(data: any, runtimeStyle: any, props: any): any;
37
37
  export declare function getRowStyleUtil(data: any, groupSummaryDataRowIndex: number[], props: any): any;
38
38
  export declare function getCellStyleUtil(data: any, cellStyles: any, props: any): {};
39
- export declare function rowDataToColumn(data: any, configure: Component): any;
39
+ export declare function rowDataToColumn(data: any, configure: Component, sourceTableColumnsConfig: any): any;
40
40
  /**
41
41
  *
42
42
  * @param data 数据
@@ -75,6 +75,38 @@ export declare function getIndexColumn(): {
75
75
  tittleClass: string;
76
76
  };
77
77
  };
78
+ export declare function getNewColumnConfig(prop: string, name: string, displayOrder: number, dataType: string): {
79
+ uuid: number;
80
+ name: string;
81
+ props: {
82
+ base: {
83
+ prop: string;
84
+ name: string;
85
+ displayOrder: number;
86
+ sortable: boolean;
87
+ headerAlign: string;
88
+ align: string;
89
+ fixed: boolean;
90
+ visible: boolean;
91
+ dataType: string;
92
+ };
93
+ format: {};
94
+ size: {
95
+ pc: {};
96
+ };
97
+ };
98
+ style: {};
99
+ componentIndex: number;
100
+ runtime: {
101
+ common: {
102
+ class: string;
103
+ style: {
104
+ pc_style: {};
105
+ pc_class: string;
106
+ };
107
+ };
108
+ };
109
+ };
78
110
  export declare function computeFormula(itemConfs: any, datas: any, entity: any): void;
79
111
  export declare function formatColContent(row: any, format: any, column: any, pageContext: any, configure: any): any;
80
112
  export {};
@@ -8,8 +8,7 @@ class ExpressionEvaluator {
8
8
  }
9
9
  static createExpression(e, t, o) {
10
10
  const { propName: a, operator: r, propValue: n, leftBracket: s, rightBracket: l, joinSign: i, dataType: c } = t;
11
- if (!a || "" === a)
12
- return "";
11
+ if (!a || "" === a) return "";
13
12
  const u = getValueFromVariable(e.entity, a, o);
14
13
  let p = `${s} ${this.getComparisonExpression(u, r, getValueFromVariable(e.entity, n, o), c)} ${l}`;
15
14
  return i && ("and" === i || "AND" === i ? p += "&&" : "or" !== i && "OR" !== i || (p += "||")), p.trim();
@@ -85,99 +84,86 @@ function getSummaryDataColumn(e, t) {
85
84
  function summaryStatistics(e, t, o, a) {
86
85
  let r = "";
87
86
  const n = e.summaryMode, s = t.map((e2) => Number(e2[o])).filter((e2) => !Number.isNaN(e2));
88
- if (s.length > 0)
89
- if ("custom" === n) {
90
- const n2 = getCustomFunc(a, e.customFunc);
91
- if (n2) {
92
- const e2 = n2.apply(n2, [{ data: t, prop: o }]);
93
- r = e2 ? ` ${e2}` : " N/A";
94
- } else
95
- r = " N/A";
96
- } else
97
- switch (n) {
98
- case "sum":
99
- r = ` ${s.reduce((e2, t2) => e2 + t2, 0)}`;
100
- break;
101
- case "avg":
102
- r = " " + s.reduce((e2, t2) => e2 + t2, 0) / s.length;
103
- break;
104
- case "min":
105
- r = ` ${Math.min(...s)}`;
106
- break;
107
- case "max":
108
- r = ` ${Math.max(...s)}`;
109
- break;
110
- default:
111
- r = " N/A";
112
- }
113
- else
114
- r = " N/A";
87
+ if (s.length > 0) if ("custom" === n) {
88
+ const n2 = getCustomFunc(a, e.customFunc);
89
+ if (n2) {
90
+ const e2 = n2.apply(n2, [{ data: t, prop: o }]);
91
+ r = e2 ? ` ${e2}` : " N/A";
92
+ } else r = " N/A";
93
+ } else switch (n) {
94
+ case "sum":
95
+ r = ` ${s.reduce((e2, t2) => e2 + t2, 0)}`;
96
+ break;
97
+ case "avg":
98
+ r = " " + s.reduce((e2, t2) => e2 + t2, 0) / s.length;
99
+ break;
100
+ case "min":
101
+ r = ` ${Math.min(...s)}`;
102
+ break;
103
+ case "max":
104
+ r = ` ${Math.max(...s)}`;
105
+ break;
106
+ default:
107
+ r = " N/A";
108
+ }
109
+ else r = " N/A";
115
110
  return r;
116
111
  }
117
112
  function replacePlaceholders(e, t) {
118
- if (e)
119
- return e.replace(/\$\{row\.(\w+)\}/g, (e2, o) => Object.prototype.hasOwnProperty.call(t, o) ? t[o] : "");
113
+ if (e) return e.replace(/\$\{row\.(\w+)\}/g, (e2, o) => Object.prototype.hasOwnProperty.call(t, o) ? t[o] : "");
120
114
  }
121
115
  function getHeaderCellStyleUtil(e, t, o) {
122
116
  var _a;
123
117
  const a = {};
124
118
  e.column.property && ((_a = t.titleStyle) == null ? void 0 : _a.forEach((t2) => {
125
- if (t2.field && t2.field.includes(e.column.property))
126
- if (t2.scopeFunc) {
127
- const r2 = getCustomFunc(o.pageContext, t2.scopeFunc);
128
- if (r2) {
129
- false !== r2.apply(r2, [{ item: t2, data: e }]) && copyStyle(a, t2);
130
- }
131
- } else
132
- copyStyle(a, t2);
119
+ if (t2.field && t2.field.includes(e.column.property)) if (t2.scopeFunc) {
120
+ const r2 = getCustomFunc(o.pageContext, t2.scopeFunc);
121
+ if (r2) {
122
+ false !== r2.apply(r2, [{ item: t2, data: e }]) && copyStyle(a, t2);
123
+ }
124
+ } else copyStyle(a, t2);
133
125
  }));
134
126
  const r = getCellStyleUtil(e, t.cellTitleStyle, o);
135
127
  return r && Object.assign(a, r), a;
136
128
  }
137
129
  function getRowStyleUtil(e, t, o) {
138
130
  const a = {};
139
- if (o.configure.style.rowStyle)
140
- for (let t2 = 0; t2 < o.configure.style.rowStyle.length; t2++) {
141
- const r = o.configure.style.rowStyle[t2];
142
- if (r.scopeFunc) {
143
- const t3 = getCustomFunc(o.pageContext, r.scopeFunc);
144
- if (t3) {
145
- const o2 = t3.apply(t3, [{ data: e }]);
146
- null != o2 && false !== o2 && copyStyle(a, r);
147
- }
148
- } else if (r.matchingCondition) {
149
- const t3 = ExpressionEvaluator.evaluate(o.pageContext, r.matchingCondition, e.row);
150
- (t3 || void 0 === t3) && copyStyle(a, r);
151
- } else
152
- copyStyle(a, r);
153
- }
131
+ if (o.configure.style.rowStyle) for (let t2 = 0; t2 < o.configure.style.rowStyle.length; t2++) {
132
+ const r = o.configure.style.rowStyle[t2];
133
+ if (r.scopeFunc) {
134
+ const t3 = getCustomFunc(o.pageContext, r.scopeFunc);
135
+ if (t3) {
136
+ const o2 = t3.apply(t3, [{ data: e }]);
137
+ null != o2 && false !== o2 && copyStyle(a, r);
138
+ }
139
+ } else if (r.matchingCondition) {
140
+ const t3 = ExpressionEvaluator.evaluate(o.pageContext, r.matchingCondition, e.row);
141
+ (t3 || void 0 === t3) && copyStyle(a, r);
142
+ } else copyStyle(a, r);
143
+ }
154
144
  if (t && t.length > 0 && -1 !== t.indexOf(e.rowIndex)) {
155
145
  const e2 = {};
156
- if (o.configure.style.collectStyle && o.configure.style.collectStyle.length > 0)
157
- for (let t2 = 0; t2 < o.configure.style.collectStyle.length; t2++) {
158
- copyStyle(e2, o.configure.style.collectStyle[t2]);
159
- }
146
+ if (o.configure.style.collectStyle && o.configure.style.collectStyle.length > 0) for (let t2 = 0; t2 < o.configure.style.collectStyle.length; t2++) {
147
+ copyStyle(e2, o.configure.style.collectStyle[t2]);
148
+ }
160
149
  return 0 === Object.keys(e2).length && (e2["background-color"] = "var(--el-table-row-hover-bg-color)"), e2;
161
150
  }
162
151
  return a;
163
152
  }
164
153
  function getCellStyleUtil(e, t, o) {
165
154
  const a = {};
166
- if (t)
167
- for (let r = 0; r < t.length; r++) {
168
- const n = t[r];
169
- if (isSetStyle(n))
170
- if (n.scopeFunc) {
171
- const t2 = getCustomFunc(o.pageContext, n.scopeFunc);
172
- if (t2) {
173
- false !== t2.apply(t2, [{ data: e }]) && copyStyle(a, n);
174
- }
175
- } else if (n.matchingCondition) {
176
- const t2 = ExpressionEvaluator.evaluate(o.pageContext, n.matchingCondition, e.row);
177
- (t2 || void 0 === t2) && copyStyle(a, n);
178
- } else
179
- copyStyle(a, n);
180
- }
155
+ if (t) for (let r = 0; r < t.length; r++) {
156
+ const n = t[r];
157
+ if (isSetStyle(n)) if (n.scopeFunc) {
158
+ const t2 = getCustomFunc(o.pageContext, n.scopeFunc);
159
+ if (t2) {
160
+ false !== t2.apply(t2, [{ data: e }]) && copyStyle(a, n);
161
+ }
162
+ } else if (n.matchingCondition) {
163
+ const t2 = ExpressionEvaluator.evaluate(o.pageContext, n.matchingCondition, e.row);
164
+ (t2 || void 0 === t2) && copyStyle(a, n);
165
+ } else copyStyle(a, n);
166
+ }
181
167
  return a;
182
168
  }
183
169
  function isSetStyle(e) {
@@ -187,24 +173,43 @@ function isSetStyle(e) {
187
173
  function copyStyle(e, t) {
188
174
  Object.assign(e, t.style), t.customStyle && Object.assign(e, JSON.parse(t.customStyle));
189
175
  }
190
- function rowDataToColumn(e, t) {
191
- const o = t.props.dataOrigin.groupField, a = t.props.dataOrigin.rowToColumn.titleColumns, r = t.props.dataOrigin.rowToColumn.dataColumns, n = [], s = {};
192
- return e.forEach((e2) => {
193
- const t2 = o.map((t3) => e2[t3]).join("|");
194
- if (!s[t2]) {
195
- const a2 = {};
196
- o.forEach((t3) => a2[t3] = e2[t3]), s[t2] = a2, n.push(a2);
176
+ function rowDataToColumn(e, t, o) {
177
+ const a = t.props.dataOrigin.groupField, r = t.props.dataOrigin.rowToColumn.titleColumns, n = t.props.dataOrigin.rowToColumn.dataColumns, s = [], l = {};
178
+ if (a && a.length > 0) e.forEach((e2) => {
179
+ const t2 = a.map((t3) => e2[t3]).join("|");
180
+ if (!l[t2]) {
181
+ const o2 = {};
182
+ a.forEach((t3) => o2[t3] = e2[t3]), l[t2] = o2, s.push(o2);
197
183
  }
198
- r.forEach((o2) => {
199
- const r2 = `${a.map((t3) => e2[t3]).join("")}${o2}`;
200
- s[t2][r2] = e2[o2];
184
+ n.forEach((o2) => {
185
+ const a2 = `${r.map((t3) => e2[t3]).join("")}${o2}`;
186
+ l[t2][a2] = e2[o2];
201
187
  });
202
- }), n;
188
+ });
189
+ else {
190
+ const t2 = [];
191
+ e.forEach((e2) => {
192
+ r.forEach((o2) => {
193
+ e2[o2] && t2.push(e2[o2]);
194
+ });
195
+ }), n.forEach((t3) => {
196
+ const a2 = {}, n2 = o.find((e2) => {
197
+ var _a, _b;
198
+ return ((_b = (_a = e2.props) == null ? void 0 : _a.base) == null ? void 0 : _b.prop) === t3;
199
+ });
200
+ n2 && (a2.$GroupColumn = n2.props.base.name), e.forEach((e2) => {
201
+ r.forEach((o2) => {
202
+ const r2 = e2[o2], n3 = e2[t3];
203
+ a2[r2] = n3;
204
+ });
205
+ }), s.push(a2);
206
+ });
207
+ }
208
+ return s;
203
209
  }
204
210
  function colDataToRow(e, t) {
205
211
  const o = t.props.dataOrigin.groupField, a = t.props.dataOrigin.columnToRow.titleColumns, r = t.props.dataOrigin.columnToRow.dataColumns, n = t.props.dataOrigin.columnToRow.transColumns, s = t.props.dataOrigin.columnToRow.dataColumnsMapping;
206
- if (0 === e.length)
207
- return e;
212
+ if (0 === e.length) return e;
208
213
  const l = [], i = groupBy(e, o), c = r.reduce((e2, t2) => t2.columns.length > e2.columns.length ? t2 : e2, r[0]), u = r.reduce((e2, t2) => (t2.columns.forEach((o2) => {
209
214
  e2[o2] = t2.prop;
210
215
  }), e2), {});
@@ -223,8 +228,7 @@ function colDataToRow(e, t) {
223
228
  const o2 = n.filter((t3) => t3.relatedTitle === e3.prop);
224
229
  let a2 = false;
225
230
  o2 && o2.length > 0 && o2.forEach((o3) => {
226
- if (o3.columns.includes(t2))
227
- return p[e3.prop] = o3.label, void (a2 = true);
231
+ if (o3.columns.includes(t2)) return p[e3.prop] = o3.label, void (a2 = true);
228
232
  }), a2 || (p[e3.prop] = t2);
229
233
  }), l.push(p);
230
234
  });
@@ -232,7 +236,7 @@ function colDataToRow(e, t) {
232
236
  }
233
237
  function getColumnToRowTableConfig(e) {
234
238
  const t = e.items, o = e.props.dataOrigin.groupField, a = e.props.dataOrigin.columnToRow.titleColumns, r = e.props.dataOrigin.columnToRow.dataColumns, n = [];
235
- o.forEach((e2) => {
239
+ o && o.length > 0 && o.forEach((e2) => {
236
240
  if (t) {
237
241
  const o2 = t.find((t2) => t2.props.base.prop === e2);
238
242
  o2 && n.push(o2);
@@ -257,39 +261,35 @@ function groupBy(e, t) {
257
261
  function getIndexColumn() {
258
262
  return { props: { base: { name: "序号", prop: "$index", columnWidth: 80, sortable: true, visible: true, displayOrder: 1, alignTitle: "center", alignContent: "center" } }, events: [], style: { titleFont: {}, contentFont: {}, width: {}, background: {}, tableCell: [{ type: "", model: "" }], conentPadding: {}, tittlePadding: {}, border: {}, shadow: {}, tittleClass: "" } };
259
263
  }
264
+ function getNewColumnConfig(e, t, o, a) {
265
+ return { uuid: (/* @__PURE__ */ new Date()).getTime(), name: "", props: { base: { prop: e, name: t, displayOrder: o, sortable: true, headerAlign: "center", align: "center", fixed: false, visible: true, dataType: a }, format: {}, size: { pc: {} } }, style: {}, componentIndex: 0, runtime: { common: { class: "", style: { pc_style: {}, pc_class: "" } } } };
266
+ }
260
267
  function computeFormula(itemConfs, datas, entity) {
261
268
  Object.keys(itemConfs).forEach((key) => {
262
269
  const paramNames = getParamNames(itemConfs[key]);
263
270
  datas.forEach((data, index) => {
264
271
  const totalValueMap = {};
265
- for (const e of paramNames)
266
- if (e.startsWith("${min."))
267
- totalValueMap[e] = getMinValue(datas, getFieldName(e));
268
- else if (e.startsWith("${max."))
269
- totalValueMap[e] = getMaxValue(datas, getFieldName(e));
270
- else if (e.startsWith("${sum."))
271
- totalValueMap[e] = getSumValue(datas, getFieldName(e));
272
- else if (e.startsWith("${avg."))
273
- totalValueMap[e] = getAvgValue(datas, getFieldName(e));
274
- else if (e.startsWith("${add.")) {
275
- const t = getFieldName(e);
276
- let o = 0;
277
- try {
278
- o = Number(data[t]), datas.slice(0, index).forEach((e2) => {
279
- o += Number(e2[t]);
280
- });
281
- } catch (e2) {
282
- o = 0;
283
- }
284
- totalValueMap[e] = o;
285
- } else
286
- (e.startsWith("${page.") || e.startsWith("${data.") || e.startsWith("${row.") || e.startsWith("${request.") || e.startsWith("${context.") || e.startsWith("${system.") || e.startsWith("${fixed.")) && (totalValueMap[e] = getValueFromVariable(entity, e, data));
272
+ for (const e of paramNames) if (e.startsWith("${min.")) totalValueMap[e] = getMinValue(datas, getFieldName(e));
273
+ else if (e.startsWith("${max.")) totalValueMap[e] = getMaxValue(datas, getFieldName(e));
274
+ else if (e.startsWith("${sum.")) totalValueMap[e] = getSumValue(datas, getFieldName(e));
275
+ else if (e.startsWith("${avg.")) totalValueMap[e] = getAvgValue(datas, getFieldName(e));
276
+ else if (e.startsWith("${add.")) {
277
+ const t = getFieldName(e);
278
+ let o = 0;
279
+ try {
280
+ o = Number(data[t]), datas.slice(0, index).forEach((e2) => {
281
+ o += Number(e2[t]);
282
+ });
283
+ } catch (e2) {
284
+ o = 0;
285
+ }
286
+ totalValueMap[e] = o;
287
+ } else (e.startsWith("${page.") || e.startsWith("${data.") || e.startsWith("${row.") || e.startsWith("${request.") || e.startsWith("${context.") || e.startsWith("${system.") || e.startsWith("${fixed.")) && (totalValueMap[e] = getValueFromVariable(entity, e, data));
287
288
  let expr = itemConfs[key];
288
289
  Object.keys(totalValueMap).forEach((e) => {
289
290
  expr.indexOf(e) > -1 && (expr = expr.replaceAll(e, totalValueMap[e]));
290
291
  });
291
- for (const e of paramNames)
292
- expr.indexOf(e) > -1 && (expr = expr.replaceAll(e, 0));
292
+ for (const e of paramNames) expr.indexOf(e) > -1 && (expr = expr.replaceAll(e, 0));
293
293
  try {
294
294
  data[key] = eval(expr);
295
295
  } catch (e) {
@@ -343,6 +343,7 @@ export {
343
343
  getColumnToRowTableConfig,
344
344
  getHeaderCellStyleUtil,
345
345
  getIndexColumn,
346
+ getNewColumnConfig,
346
347
  getRowStyleUtil,
347
348
  getSummaryDataColumn,
348
349
  getSummaryTitleColumn,
@@ -1,6 +1,6 @@
1
- import { defineComponent as e, openBlock as o, createBlock as u } from "vue";
1
+ import { defineComponent as e, createBlock as o, openBlock as u } from "vue";
2
2
  import t from "./group-column.vue.js";
3
- const n = e({ __name: "group-column-item", props: { configure: { type: Object, default: () => ({}) }, pageContext: { type: Object, default: () => ({}) }, groupColumnItem: { type: Object, default: () => ({}) }, columnsConfigKeyValues: { type: Object, default: () => ({}) } }, setup: (e2) => (n2, l) => (o(), u(t, { configure: e2.configure, pageContext: e2.pageContext, groupColumn: e2.groupColumnItem, columnsConfigKeyValues: e2.columnsConfigKeyValues }, null, 8, ["configure", "pageContext", "groupColumn", "columnsConfigKeyValues"])) });
3
+ const n = e({ __name: "group-column-item", props: { configure: { type: Object, default: () => ({}) }, pageContext: { type: Object, default: () => ({}) }, groupColumnItem: { type: Object, default: () => ({}) }, columnsConfigKeyValues: { type: Object, default: () => ({}) } }, setup: (e2) => (n2, l) => (u(), o(t, { configure: e2.configure, pageContext: e2.pageContext, groupColumn: e2.groupColumnItem, columnsConfigKeyValues: e2.columnsConfigKeyValues }, null, 8, ["configure", "pageContext", "groupColumn", "columnsConfigKeyValues"])) });
4
4
  export {
5
5
  n as default
6
6
  };
@@ -1,9 +1,9 @@
1
- import { defineComponent as e, resolveComponent as o, openBlock as n, createBlock as u, withCtx as l, createTextVNode as t, toDisplayString as r, createElementBlock as c, Fragment as g, renderList as m, createCommentVNode as p } from "vue";
1
+ import { defineComponent as e, resolveComponent as o, createBlock as n, openBlock as u, withCtx as l, createElementBlock as t, createCommentVNode as r, Fragment as c, renderList as g, createTextVNode as m, toDisplayString as p } from "vue";
2
2
  import a from "./normal-column.vue.js";
3
3
  import i from "./group-column-item.vue.js";
4
4
  const f = e({ __name: "group-column", props: { configure: { type: Object, default: () => ({}) }, pageContext: { type: Object, default: () => ({}) }, groupColumn: { type: Object, default: () => ({}) }, columnsConfigKeyValues: { type: Object, default: () => ({}) } }, setup: (e2) => (f2, C) => {
5
5
  const s = o("el-table-column");
6
- return n(), u(s, { "header-align": "center" }, { header: l(() => [t(r(e2.groupColumn.titleText), 1)]), default: l(() => [e2.groupColumn.children && e2.groupColumn.children.length > 0 ? (n(true), c(g, { key: 0 }, m(e2.groupColumn.children, (o2, l2) => (n(), c(g, { key: l2 }, [o2.children && o2.children.length > 0 ? (n(), u(i, { key: l2, configure: e2.configure, pageContext: e2.pageContext, groupColumnItem: o2, columnsConfigKeyValues: e2.columnsConfigKeyValues }, null, 8, ["configure", "pageContext", "groupColumnItem", "columnsConfigKeyValues"])) : (n(), u(a, { key: 1, pageContext: e2.pageContext, configure: e2.configure, column: e2.columnsConfigKeyValues[o2.columnUuid] }, null, 8, ["pageContext", "configure", "column"]))], 64))), 128)) : p("", true)]), _: 1 });
6
+ return u(), n(s, { "header-align": "center" }, { header: l(() => [m(p(e2.groupColumn.titleText), 1)]), default: l(() => [e2.groupColumn.children && e2.groupColumn.children.length > 0 ? (u(true), t(c, { key: 0 }, g(e2.groupColumn.children, (o2, l2) => (u(), t(c, { key: l2 }, [o2.children && o2.children.length > 0 ? (u(), n(i, { key: l2, configure: e2.configure, pageContext: e2.pageContext, groupColumnItem: o2, columnsConfigKeyValues: e2.columnsConfigKeyValues }, null, 8, ["configure", "pageContext", "groupColumnItem", "columnsConfigKeyValues"])) : (u(), n(a, { key: 1, pageContext: e2.pageContext, configure: e2.configure, column: e2.columnsConfigKeyValues[o2.columnUuid] }, null, 8, ["pageContext", "configure", "column"]))], 64))), 128)) : r("", true)]), _: 1 });
7
7
  } });
8
8
  export {
9
9
  f as default
@@ -1,4 +1,4 @@
1
- import { defineComponent as o, ref as e, resolveComponent as t, openBlock as r, createBlock as p, withCtx as l, createElementBlock as s, Fragment as n, createTextVNode as a, toDisplayString as u, resolveDynamicComponent as i, createVNode as c, normalizeClass as m, createCommentVNode as f, createElementVNode as g } from "vue";
1
+ import { defineComponent as o, ref as e, resolveComponent as t, createBlock as r, openBlock as p, withCtx as l, createElementBlock as s, Fragment as n, createTextVNode as a, toDisplayString as u, resolveDynamicComponent as i, createVNode as c, createCommentVNode as m, createElementVNode as f, normalizeClass as g } from "vue";
2
2
  import "agilebuilder-ui/src/utils/common-util";
3
3
  import "agilebuilder-ui/src/utils/util";
4
4
  import "agilebuilder-ui/src/utils/request";
@@ -36,7 +36,7 @@ const k = { key: 0 }, w = { key: 1 }, h = { key: 1 }, x = { key: 2 }, C = o({ __
36
36
  }
37
37
  return C2.column.linkPage && C2.column.linkPage.length > 0 && (j.value = true), (e2, d2) => {
38
38
  const y2 = t("el-table-column"), b2 = t("el-progress"), C3 = t("el-tag"), v2 = t("el-link");
39
- return "$index" === o2.column.props.base.prop ? (r(), p(y2, { key: 0, label: o2.column.props.base.name, type: "index", align: "center", "header-align": "center", width: "80" }, null, 8, ["label"])) : (r(), p(y2, { key: 1, prop: o2.column.props.base.prop, width: o2.column.props.base.width ? o2.column.props.base.width : "", label: o2.column.props.base.name, "header-align": o2.column.props.base.headerAlign, align: o2.column.props.base.align, fixed: !!o2.column.props.base.fixed && o2.column.props.base.fixed, formatter: O }, { default: l((e3) => [o2.column.props.format && o2.column.props.format.type ? (r(), s(n, { key: 0 }, [a(u(o2.column.props.format.status) + " ", 1), "customControl" === o2.column.props.format.type ? (r(), p(i(o2.column.props.format.customControl), { key: 0, scope: e3, column: o2.column, configure: o2.configure, pageContext: o2.pageContext }, null, 8, ["scope", "column", "configure", "pageContext"])) : "progress" === o2.column.props.format.type ? (r(), p(b2, { key: 1, type: o2.column.props.format.progressType, percentage: e3.row[o2.column.props.base.prop], status: o2.column.props.format.status, "text-inside": o2.column.props.format.showText, "stroke-width": o2.column.props.format.strokeWidth, color: "custom" === o2.column.props.format.colorType ? o2.column.props.format.color : "" }, null, 8, ["type", "percentage", "status", "text-inside", "stroke-width", "color"])) : "icon" === o2.column.props.format.type ? (r(), s(n, { key: 2 }, [o2.column.props.format.isTag ? (r(), s("span", k, [c(C3, { type: o2.column.props.format.tagType, effect: o2.column.props.format.tagEffect, hit: o2.column.props.format.hit, size: o2.column.props.format.size }, { default: l(() => [a(u(e3.row[o2.column.props.base.prop]), 1)]), _: 2 }, 1032, ["type", "effect", "hit", "size"])])) : (r(), s("span", w, ["pre" === o2.column.props.format.position ? (r(), s("i", { key: 0, class: m(o2.column.props.format.icon) }, null, 2)) : f("", true), g("span", null, u(e3.row[o2.column.props.base.prop]), 1), "suf" === o2.column.props.format.position ? (r(), s("i", { key: 1, class: m(o2.column.props.format.icon) }, null, 2)) : f("", true)]))], 64)) : (r(), s(n, { key: 3 }, [j.value && _(e3.row) ? (r(), p(v2, { key: 0, type: "primary", onClick: (o3) => P(e3.row) }, { default: l(() => [a(u(T(e3.row, o2.column.props.format)), 1)]), _: 2 }, 1032, ["onClick"])) : (r(), s("span", h, u(T(e3.row, o2.column.props.format)), 1))], 64))], 64)) : j.value && _(e3.row) ? (r(), p(v2, { key: 1, type: "primary", onClick: (o3) => P(e3.row) }, { default: l(() => [a(u(e3.row[o2.column.props.base.prop]), 1)]), _: 2 }, 1032, ["onClick"])) : (r(), s("span", x, u(e3.row[o2.column.props.base.prop]), 1))]), _: 1 }, 8, ["prop", "width", "label", "header-align", "align", "fixed"]));
39
+ return "$index" === o2.column.props.base.prop ? (p(), r(y2, { key: 0, label: o2.column.props.base.name, type: "index", align: "center", "header-align": "center", width: "80" }, null, 8, ["label"])) : (p(), r(y2, { key: 1, prop: o2.column.props.base.prop, width: o2.column.props.base.width ? o2.column.props.base.width : "", label: o2.column.props.base.name, "header-align": o2.column.props.base.headerAlign, align: o2.column.props.base.align, fixed: !!o2.column.props.base.fixed && o2.column.props.base.fixed, formatter: O }, { default: l((e3) => [o2.column.props.format && o2.column.props.format.type ? (p(), s(n, { key: 0 }, [a(u(o2.column.props.format.status) + " ", 1), "customControl" === o2.column.props.format.type ? (p(), r(i(o2.column.props.format.customControl), { key: 0, scope: e3, column: o2.column, configure: o2.configure, pageContext: o2.pageContext }, null, 8, ["scope", "column", "configure", "pageContext"])) : "progress" === o2.column.props.format.type ? (p(), r(b2, { key: 1, type: o2.column.props.format.progressType, percentage: e3.row[o2.column.props.base.prop], status: o2.column.props.format.status, "text-inside": o2.column.props.format.showText, "stroke-width": o2.column.props.format.strokeWidth, color: "custom" === o2.column.props.format.colorType ? o2.column.props.format.color : "" }, null, 8, ["type", "percentage", "status", "text-inside", "stroke-width", "color"])) : "icon" === o2.column.props.format.type ? (p(), s(n, { key: 2 }, [o2.column.props.format.isTag ? (p(), s("span", k, [c(C3, { type: o2.column.props.format.tagType, effect: o2.column.props.format.tagEffect, hit: o2.column.props.format.hit, size: o2.column.props.format.size }, { default: l(() => [a(u(e3.row[o2.column.props.base.prop]), 1)]), _: 2 }, 1032, ["type", "effect", "hit", "size"])])) : (p(), s("span", w, ["pre" === o2.column.props.format.position ? (p(), s("i", { key: 0, class: g(o2.column.props.format.icon) }, null, 2)) : m("", true), f("span", null, u(e3.row[o2.column.props.base.prop]), 1), "suf" === o2.column.props.format.position ? (p(), s("i", { key: 1, class: g(o2.column.props.format.icon) }, null, 2)) : m("", true)]))], 64)) : (p(), s(n, { key: 3 }, [j.value && _(e3.row) ? (p(), r(v2, { key: 0, type: "primary", onClick: (o3) => P(e3.row) }, { default: l(() => [a(u(T(e3.row, o2.column.props.format)), 1)]), _: 2 }, 1032, ["onClick"])) : (p(), s("span", h, u(T(e3.row, o2.column.props.format)), 1))], 64))], 64)) : j.value && _(e3.row) ? (p(), r(v2, { key: 1, type: "primary", onClick: (o3) => P(e3.row) }, { default: l(() => [a(u(e3.row[o2.column.props.base.prop]), 1)]), _: 2 }, 1032, ["onClick"])) : (p(), s("span", x, u(e3.row[o2.column.props.base.prop]), 1))]), _: 1 }, 8, ["prop", "width", "label", "header-align", "align", "fixed"]));
40
40
  };
41
41
  } });
42
42
  export {
@@ -1,4 +1,4 @@
1
- import { defineComponent as e, ref as a, resolveComponent as t, openBlock as n, createElementBlock as p, createVNode as l } from "vue";
1
+ import { defineComponent as e, ref as a, resolveComponent as t, createElementBlock as n, openBlock as p, createVNode as l } from "vue";
2
2
  const u = { style: { padding: "5px", "text-align": "center" } }, g = e({ __name: "table-pageination", props: { configure: { type: Object, default: () => ({}) }, pageContext: { type: Object, default: () => ({}) }, column: { type: Object, default: () => ({}) }, total: { type: Number, default: 0 } }, emits: ["pageChange", "pageSizeChange"], setup(e2, { emit: g2 }) {
3
3
  const i = e2, o = g2, r = a(1), s = a(i.configure.pageination.pageSize), c = (e3) => {
4
4
  r.value = e3, o("pageChange", r.value, s.value);
@@ -7,7 +7,7 @@ const u = { style: { padding: "5px", "text-align": "center" } }, g = e({ __name:
7
7
  };
8
8
  return (a2, g3) => {
9
9
  const i2 = t("el-pagination");
10
- return n(), p("div", u, [l(i2, { "current-page": r.value, "onUpdate:currentPage": g3[0] || (g3[0] = (e3) => r.value = e3), "page-size": s.value, "onUpdate:pageSize": g3[1] || (g3[1] = (e3) => s.value = e3), "page-sizes": [10, 30, 50, 100], size: "small", layout: "total, sizes, prev, pager, next, jumper", total: e2.total, onCurrentChange: c, onSizeChange: v }, null, 8, ["current-page", "page-size", "total"])]);
10
+ return p(), n("div", u, [l(i2, { "current-page": r.value, "onUpdate:currentPage": g3[0] || (g3[0] = (e3) => r.value = e3), "page-size": s.value, "onUpdate:pageSize": g3[1] || (g3[1] = (e3) => s.value = e3), "page-sizes": [10, 30, 50, 100], size: "small", layout: "total, sizes, prev, pager, next, jumper", total: e2.total, onCurrentChange: c, onSizeChange: v }, null, 8, ["current-page", "page-size", "total"])]);
11
11
  };
12
12
  } });
13
13
  export {