super-page-runtime 2.1.50 → 2.1.57

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 (36) hide show
  1. package/dist/es/components/runtime/utils/api/page-expose-util.js +110 -3
  2. package/dist/es/components/runtime/utils/charts/chart-columnline-util.js +12 -3
  3. package/dist/es/components/runtime/utils/charts/chart-util.d.ts +24 -0
  4. package/dist/es/components/runtime/utils/charts/chart-util.js +18 -1
  5. package/dist/es/components/runtime/utils/common-util.d.ts +1 -0
  6. package/dist/es/components/runtime/utils/common-util.js +6 -5
  7. package/dist/es/components/runtime/utils/events/event-util.d.ts +1 -0
  8. package/dist/es/components/runtime/utils/events/event-util.js +17 -4
  9. package/dist/es/components/runtime/utils/events/standard-event.d.ts +1 -1
  10. package/dist/es/components/runtime/utils/events/standard-event.js +6 -4
  11. package/dist/es/components/runtime/utils/events/validator-util.js +2 -1
  12. package/dist/es/components/runtime/utils/interfaces/page-design-types.d.ts +1 -0
  13. package/dist/es/components/runtime/utils/page-helper-util.d.ts +18 -0
  14. package/dist/es/components/runtime/utils/page-helper-util.js +23 -5
  15. package/dist/es/components/runtime/utils/page-init-util.js +14 -10
  16. package/dist/es/components/runtime/utils/table-utils.js +3 -7
  17. package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue2.js +3 -1
  18. package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +5 -3
  19. package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.js +108 -46
  20. package/dist/es/components/runtime/views/assemblys/chart/table/normal-column.vue.js +4 -1
  21. package/dist/es/components/runtime/views/assemblys/chart/table/table-pageination.vue.js +64 -0
  22. package/dist/es/components/runtime/views/assemblys/chart/table/table-pageination.vue2.js +4 -0
  23. package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +106 -20
  24. package/dist/es/components/runtime/views/assemblys/container/tools/tools-runtime.vue2.js +0 -2
  25. package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +107 -53
  26. package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +25 -8
  27. package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue2.js +18 -3
  28. package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +1 -1
  29. package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +0 -3
  30. package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +0 -2
  31. package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +3 -12
  32. package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +49 -26
  33. package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +19 -12
  34. package/dist/es/components/runtime/views/assemblys/object-render.vue.js +3 -5
  35. package/dist/es/components/runtime/views/super-page.vue.js +88 -26
  36. package/package.json +2 -2
@@ -29,7 +29,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
29
29
  ]);
30
30
  const props = __props;
31
31
  const thisRef = ref(null);
32
- const chartRef = ref(null);
32
+ const chartRef = ref();
33
33
  const headerRef = ref(null);
34
34
  const enableDrill = props.configure.props ? props.configure.props.enableDrill : null;
35
35
  const drillEndTrigger = props.configure.props ? props.configure.props.drillEndTrigger : null;
@@ -123,6 +123,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
123
123
  refresh(true);
124
124
  });
125
125
  function updateChartDatas(resultData) {
126
+ var _a;
126
127
  if (!resultData) {
127
128
  resultData = [];
128
129
  }
@@ -144,7 +145,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
144
145
  headerInfo.groupValue = hisGroupValue;
145
146
  }
146
147
  if (!dataConfig.autoRefresh || !enableDrill) {
147
- clearChartSelected(props.pageContext, props.configure, chartRef.value.chart);
148
+ clearChartSelected(props.pageContext, props.configure, (_a = chartRef.value) == null ? void 0 : _a.chart);
148
149
  }
149
150
  dataConfig.autoRefresh = false;
150
151
  updateChartOption(props.pageContext, props.configure, chartOption, resultData);
@@ -154,7 +155,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
154
155
  }
155
156
  __expose({
156
157
  updateChartDatas,
157
- exportChart
158
+ exportChart,
159
+ chartOption
158
160
  });
159
161
  return (_ctx, _cache) => {
160
162
  return openBlock(), createElementBlock("div", {
@@ -1,20 +1,22 @@
1
- import { getValueFromVariable } from "../../../../utils/page-helper-util.js";
1
+ import { getParamNames, getValueFromVariable } from "../../../../utils/page-helper-util.js";
2
2
  import { getCustomFunc } from "../../../../utils/events/event-util.js";
3
+ import { getMinValue, getMaxValue, getSumValue, getAvgValue } from "../../../../utils/charts/chart-util.js";
4
+ import "element-plus/es/locale/index.mjs";
3
5
  class ExpressionEvaluator {
4
- static evaluate(pageContext, conditions, data) {
6
+ static evaluate(pageContext, conditions, data2) {
5
7
  const expressions = conditions.map(
6
- (condition) => this.createExpression(pageContext, condition, data)
8
+ (condition) => this.createExpression(pageContext, condition, data2)
7
9
  );
8
10
  const joinedExpression = expressions.join(" ");
9
11
  return this.evaluateExpression(joinedExpression);
10
12
  }
11
- static createExpression(pageContext, condition, data) {
13
+ static createExpression(pageContext, condition, data2) {
12
14
  const { propName, operator, propValue, leftBracket, rightBracket, joinSign, dataType } = condition;
13
15
  if (!propName || propName === "") {
14
16
  return "";
15
17
  }
16
- let value = getValueFromVariable(pageContext.entity, propName, data);
17
- let expression2 = `${leftBracket} ${this.getComparisonExpression(value, operator, getValueFromVariable(pageContext.entity, propValue, data), dataType)} ${rightBracket}`;
18
+ const value = getValueFromVariable(pageContext.entity, propName, data2);
19
+ let expression2 = `${leftBracket} ${this.getComparisonExpression(value, operator, getValueFromVariable(pageContext.entity, propValue, data2), dataType)} ${rightBracket}`;
18
20
  if (joinSign) {
19
21
  if (joinSign === "and" || joinSign === "AND") {
20
22
  expression2 += "&&";
@@ -91,8 +93,9 @@ class ExpressionEvaluator {
91
93
  }
92
94
  }
93
95
  function getSummaryTitleColumn(configure) {
96
+ var _a;
94
97
  const result = {};
95
- if (configure.props.summaries.titleColumn && configure.props.summaries.titleColumn.length > 0) {
98
+ if (((_a = configure.props.summaries) == null ? void 0 : _a.titleColumn) && configure.props.summaries.titleColumn.length > 0) {
96
99
  configure.props.summaries.titleColumn.forEach((item) => {
97
100
  result[item.prop] = item;
98
101
  });
@@ -100,11 +103,12 @@ function getSummaryTitleColumn(configure) {
100
103
  return result;
101
104
  }
102
105
  function getSummaryDataColumn(configure, type) {
106
+ var _a;
103
107
  const result = {};
104
- if (configure.props.summaries.dataColumn && configure.props.summaries.dataColumn.length > 0) {
108
+ if (((_a = configure.props.summaries) == null ? void 0 : _a.dataColumn) && configure.props.summaries.dataColumn.length > 0) {
105
109
  configure.props.summaries.dataColumn.forEach((item) => {
106
- var _a;
107
- const columnConfigs = (_a = configure.items) == null ? void 0 : _a.find(
110
+ var _a2;
111
+ const columnConfigs = (_a2 = configure.items) == null ? void 0 : _a2.find(
108
112
  (columnItem) => item.prop === columnItem.props.base.prop
109
113
  );
110
114
  if (columnConfigs) {
@@ -118,15 +122,15 @@ function getSummaryDataColumn(configure, type) {
118
122
  }
119
123
  return result;
120
124
  }
121
- function summaryStatistics(summaryColumn, data, prop, pageContext) {
125
+ function summaryStatistics(summaryColumn, data2, prop, pageContext) {
122
126
  let sumsIndex = "";
123
127
  const summaryMode = summaryColumn.summaryMode;
124
- const values = data.map((item) => Number(item[prop])).filter((value) => !Number.isNaN(value));
128
+ const values = data2.map((item) => Number(item[prop])).filter((value) => !Number.isNaN(value));
125
129
  if (values.length > 0) {
126
130
  if (summaryMode === "custom") {
127
131
  const func = getCustomFunc(pageContext, summaryColumn.customFunc);
128
132
  if (func) {
129
- const resultValue = func.apply(func, [{ data, prop }]);
133
+ const resultValue = func.apply(func, [{ data: data2, prop }]);
130
134
  if (resultValue) {
131
135
  sumsIndex = ` ${resultValue}`;
132
136
  } else {
@@ -158,23 +162,23 @@ function summaryStatistics(summaryColumn, data, prop, pageContext) {
158
162
  }
159
163
  return sumsIndex;
160
164
  }
161
- function replacePlaceholders(template, data) {
165
+ function replacePlaceholders(template, data2) {
162
166
  if (template) {
163
167
  return template.replace(/\$\{row\.(\w+)\}/g, (match, p1) => {
164
- return Object.prototype.hasOwnProperty.call(data, p1) ? data[p1] : "";
168
+ return Object.prototype.hasOwnProperty.call(data2, p1) ? data2[p1] : "";
165
169
  });
166
170
  }
167
171
  }
168
- function getHeaderCellStyleUtil(data, runtimeStyle, props) {
172
+ function getHeaderCellStyleUtil(data2, runtimeStyle, props) {
169
173
  var _a;
170
174
  const headerStyle = {};
171
- if (data.column.property) {
175
+ if (data2.column.property) {
172
176
  (_a = runtimeStyle.titleStyle) == null ? void 0 : _a.forEach((item) => {
173
- if (item.field && item.field.includes(data.column.property)) {
177
+ if (item.field && item.field.includes(data2.column.property)) {
174
178
  if (item.scopeFunc) {
175
179
  const func = getCustomFunc(props.pageContext, item.scopeFunc);
176
180
  if (func) {
177
- const funcResult = func.apply(func, [{ item, data }]);
181
+ const funcResult = func.apply(func, [{ item, data: data2 }]);
178
182
  if (funcResult !== false) {
179
183
  copyStyle(headerStyle, item);
180
184
  }
@@ -185,22 +189,22 @@ function getHeaderCellStyleUtil(data, runtimeStyle, props) {
185
189
  }
186
190
  });
187
191
  }
188
- const cellTitleStytle = getCellStyleUtil(data, runtimeStyle.cellTitleStyle, props);
192
+ const cellTitleStytle = getCellStyleUtil(data2, runtimeStyle.cellTitleStyle, props);
189
193
  if (cellTitleStytle) {
190
194
  Object.assign(headerStyle, cellTitleStytle);
191
195
  }
192
196
  return headerStyle;
193
197
  }
194
- function getRowStyleUtil(data, groupSummaryDataRowIndex, props) {
198
+ function getRowStyleUtil(data2, groupSummaryDataRowIndex, props) {
195
199
  const returnStyle = {};
200
+ console.log("getRowStyleUtil---props.configure---", props.configure);
196
201
  if (props.configure.style.rowStyle) {
197
202
  for (let i = 0; i < props.configure.style.rowStyle.length; i++) {
198
203
  const rowStyle = props.configure.style.rowStyle[i];
199
- debugger;
200
204
  if (rowStyle.scopeFunc) {
201
205
  const func = getCustomFunc(props.pageContext, rowStyle.scopeFunc);
202
206
  if (func) {
203
- const funcResult = func.apply(func, [{ data }]);
207
+ const funcResult = func.apply(func, [{ data: data2 }]);
204
208
  if (funcResult !== void 0 && funcResult !== null && funcResult !== false) {
205
209
  copyStyle(returnStyle, rowStyle);
206
210
  }
@@ -209,17 +213,19 @@ function getRowStyleUtil(data, groupSummaryDataRowIndex, props) {
209
213
  const result = ExpressionEvaluator.evaluate(
210
214
  props.pageContext,
211
215
  rowStyle.matchingCondition,
212
- data.row
216
+ data2.row
213
217
  );
214
218
  if (result || result === void 0) {
215
219
  copyStyle(returnStyle, rowStyle);
216
220
  }
217
221
  } else {
222
+ console.log("getRowStyleUtil---rowStyle---", rowStyle);
218
223
  copyStyle(returnStyle, rowStyle);
219
224
  }
220
225
  }
221
226
  }
222
- if (groupSummaryDataRowIndex && groupSummaryDataRowIndex.length > 0 && groupSummaryDataRowIndex.indexOf(data.rowIndex) !== -1) {
227
+ if (groupSummaryDataRowIndex && groupSummaryDataRowIndex.length > 0 && groupSummaryDataRowIndex.indexOf(data2.rowIndex) !== -1) {
228
+ console.log("getRowStyleUtil---groupSummaryDataRowIndex---", groupSummaryDataRowIndex);
223
229
  const result = {};
224
230
  if (props.configure.style.collectStyle && props.configure.style.collectStyle.length > 0) {
225
231
  for (let i = 0; i < props.configure.style.collectStyle.length; i++) {
@@ -232,9 +238,10 @@ function getRowStyleUtil(data, groupSummaryDataRowIndex, props) {
232
238
  }
233
239
  return result;
234
240
  }
241
+ console.log("getRowStyleUtil---returnStyle---", returnStyle);
235
242
  return returnStyle;
236
243
  }
237
- function getCellStyleUtil(data, cellStyles, props) {
244
+ function getCellStyleUtil(data2, cellStyles, props) {
238
245
  const cellStyle = {};
239
246
  if (cellStyles) {
240
247
  for (let i = 0; i < cellStyles.length; i++) {
@@ -242,7 +249,7 @@ function getCellStyleUtil(data, cellStyles, props) {
242
249
  if (columnsStyleSetting.scopeFunc) {
243
250
  const func = getCustomFunc(props.pageContext, columnsStyleSetting.scopeFunc);
244
251
  if (func) {
245
- const funcResult = func.apply(func, [{ data }]);
252
+ const funcResult = func.apply(func, [{ data: data2 }]);
246
253
  if (funcResult !== false) {
247
254
  copyStyle(cellStyle, columnsStyleSetting);
248
255
  }
@@ -251,7 +258,7 @@ function getCellStyleUtil(data, cellStyles, props) {
251
258
  const result = ExpressionEvaluator.evaluate(
252
259
  props.pageContext,
253
260
  columnsStyleSetting.matchingCondition,
254
- data.row
261
+ data2.row
255
262
  );
256
263
  if (result || result === void 0) {
257
264
  copyStyle(cellStyle, columnsStyleSetting);
@@ -269,39 +276,39 @@ function copyStyle(target, source) {
269
276
  Object.assign(target, JSON.parse(source.customStyle));
270
277
  }
271
278
  }
272
- function rowDataToColumn(data, configure) {
279
+ function rowDataToColumn(data2, configure) {
273
280
  const groupByFields = configure.props.dataOrigin.groupField;
274
281
  const titleColumns = configure.props.dataOrigin.rowToColumn.titleColumns;
275
282
  const dataColumns = configure.props.dataOrigin.rowToColumn.dataColumns;
276
283
  const result = [];
277
284
  const groupedData = {};
278
- data.forEach((item) => {
279
- const key = groupByFields.map((field) => item[field]).join("|");
280
- if (!groupedData[key]) {
285
+ data2.forEach((item) => {
286
+ const key2 = groupByFields.map((field) => item[field]).join("|");
287
+ if (!groupedData[key2]) {
281
288
  const group = {};
282
289
  groupByFields.forEach((field) => group[field] = item[field]);
283
- groupedData[key] = group;
290
+ groupedData[key2] = group;
284
291
  result.push(group);
285
292
  }
286
293
  dataColumns.forEach((valueField) => {
287
294
  const columnNameParts = titleColumns.map((field) => item[field]);
288
295
  const columnName = `${columnNameParts.join("")}${valueField}`;
289
- groupedData[key][columnName] = item[valueField];
296
+ groupedData[key2][columnName] = item[valueField];
290
297
  });
291
298
  });
292
299
  return result;
293
300
  }
294
- function colDataToRow(data, configure) {
301
+ function colDataToRow(data2, configure) {
295
302
  const groupByFields = configure.props.dataOrigin.groupField;
296
303
  const titleColumns = configure.props.dataOrigin.columnToRow.titleColumns;
297
304
  const dataColumns = configure.props.dataOrigin.columnToRow.dataColumns;
298
305
  const transColumns = configure.props.dataOrigin.columnToRow.transColumns;
299
306
  const dataColumnsMapping = configure.props.dataOrigin.columnToRow.dataColumnsMapping;
300
- if (data.length === 0) {
301
- return data;
307
+ if (data2.length === 0) {
308
+ return data2;
302
309
  }
303
310
  const result = [];
304
- const newData = groupBy(data, groupByFields);
311
+ const newData = groupBy(data2, groupByFields);
305
312
  const dataColumnsConfig = dataColumns.reduce((max, current) => {
306
313
  return current.columns.length > max.columns.length ? current : max;
307
314
  }, dataColumns[0]);
@@ -411,22 +418,22 @@ function getColumnToRowTableConfig(configure) {
411
418
  });
412
419
  return newTableColumns;
413
420
  }
414
- function groupBy(data, groupFields) {
421
+ function groupBy(data2, groupFields) {
415
422
  const grouped = {};
416
- data.forEach((item) => {
417
- const key = groupFields.map((field) => item[field]).join("|");
418
- if (!grouped[key]) {
419
- grouped[key] = {
423
+ data2.forEach((item) => {
424
+ const key2 = groupFields.map((field) => item[field]).join("|");
425
+ if (!grouped[key2]) {
426
+ grouped[key2] = {
420
427
  ...item,
421
428
  // 复制所有字段
422
429
  records: []
423
430
  // 初始化记录数组
424
431
  };
425
- groupFields.forEach((field, index) => {
426
- grouped[key][field] = item[field];
432
+ groupFields.forEach((field, index2) => {
433
+ grouped[key2][field] = item[field];
427
434
  });
428
435
  }
429
- grouped[key].records.push(item);
436
+ grouped[key2].records.push(item);
430
437
  });
431
438
  return Object.values(grouped).map((group) => ({
432
439
  ...group,
@@ -464,9 +471,64 @@ function getIndexColumn() {
464
471
  }
465
472
  };
466
473
  }
474
+ function computeFormula(itemConfs, datas) {
475
+ Object.keys(itemConfs).forEach((key) => {
476
+ const paramNames = getParamNames(itemConfs[key]);
477
+ datas.forEach((data, index) => {
478
+ const totalValueMap = {};
479
+ for (const paramName of paramNames) {
480
+ if (paramName.startsWith("${min.")) {
481
+ totalValueMap[paramName] = getMinValue(datas, getFieldName(paramName));
482
+ } else if (paramName.startsWith("${max.")) {
483
+ totalValueMap[paramName] = getMaxValue(datas, getFieldName(paramName));
484
+ } else if (paramName.startsWith("${sum.")) {
485
+ totalValueMap[paramName] = getSumValue(datas, getFieldName(paramName));
486
+ } else if (paramName.startsWith("${avg.")) {
487
+ totalValueMap[paramName] = getAvgValue(datas, getFieldName(paramName));
488
+ } else if (paramName.startsWith("${add.")) {
489
+ const fieldName = getFieldName(paramName);
490
+ let currentRowValue = 0;
491
+ try {
492
+ currentRowValue = Number(data[fieldName]);
493
+ datas.slice(0, index).forEach((item) => {
494
+ currentRowValue += Number(item[fieldName]);
495
+ });
496
+ } catch (e) {
497
+ console.error("计算错误:", e);
498
+ currentRowValue = 0;
499
+ }
500
+ totalValueMap[paramName] = currentRowValue;
501
+ } else if (paramName.startsWith("${row.")) {
502
+ totalValueMap[paramName] = data[getFieldName(paramName)];
503
+ }
504
+ }
505
+ let expr = itemConfs[key];
506
+ Object.keys(totalValueMap).forEach((exprParam) => {
507
+ if (expr.indexOf(exprParam) > -1) {
508
+ expr = expr.replaceAll(exprParam, totalValueMap[exprParam]);
509
+ }
510
+ });
511
+ for (const paramName of paramNames) {
512
+ if (expr.indexOf(paramName) > -1) {
513
+ expr = expr.replaceAll(paramName, 0);
514
+ }
515
+ }
516
+ try {
517
+ data[key] = eval(expr);
518
+ } catch (e) {
519
+ console.error(itemConfs[key] + " 计算错误, 替换后表达式为:" + expr, e);
520
+ data[key] = 0;
521
+ }
522
+ });
523
+ });
524
+ }
525
+ function getFieldName(paramName) {
526
+ return paramName.substring(6, paramName.length - 1);
527
+ }
467
528
  export {
468
529
  ExpressionEvaluator,
469
530
  colDataToRow,
531
+ computeFormula,
470
532
  getCellStyleUtil,
471
533
  getColumnToRowTableConfig,
472
534
  getHeaderCellStyleUtil,
@@ -35,6 +35,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
35
35
  if (props.column.linkPage && props.column.linkPage.length > 0) {
36
36
  resloveLinkText.value = true;
37
37
  }
38
+ function formatter(row, column, cellValue, index) {
39
+ }
38
40
  function showLink(row) {
39
41
  var _a;
40
42
  const show = (_a = props.column.linkPage) == null ? void 0 : _a.some((item) => {
@@ -177,7 +179,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
177
179
  label: __props.column.props.base.name,
178
180
  "header-align": __props.column.props.base.headerAlign,
179
181
  align: __props.column.props.base.align,
180
- fixed: __props.column.props.base.fixed ? __props.column.props.base.fixed : false
182
+ fixed: __props.column.props.base.fixed ? __props.column.props.base.fixed : false,
183
+ formatter
181
184
  }, {
182
185
  default: withCtx((scope) => [
183
186
  __props.column.props.format && __props.column.props.format.type ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
@@ -0,0 +1,64 @@
1
+ import { defineComponent, ref, resolveComponent, openBlock, createElementBlock, createVNode } from "vue";
2
+ const _hoisted_1 = { style: { "padding": "5px", "text-align": "center" } };
3
+ const _sfc_main = /* @__PURE__ */ defineComponent({
4
+ __name: "table-pageination",
5
+ props: {
6
+ configure: {
7
+ type: Object,
8
+ default: () => {
9
+ return {};
10
+ }
11
+ },
12
+ pageContext: {
13
+ type: Object,
14
+ default: () => {
15
+ return {};
16
+ }
17
+ },
18
+ column: {
19
+ type: Object,
20
+ default: () => {
21
+ return {};
22
+ }
23
+ },
24
+ total: {
25
+ type: Number,
26
+ default: 0
27
+ }
28
+ },
29
+ emits: ["pageChange", "pageSizeChange"],
30
+ setup(__props, { emit: __emit }) {
31
+ const props = __props;
32
+ const emits = __emit;
33
+ const currentPage = ref(1);
34
+ const pageSize = ref(props.configure.pageination.pageSize);
35
+ const handleCurrentChange = (val) => {
36
+ currentPage.value = val;
37
+ emits("pageChange", currentPage.value, pageSize.value);
38
+ };
39
+ const handleSizeChange = (val) => {
40
+ pageSize.value = val;
41
+ emits("pageSizeChange", currentPage.value, pageSize.value);
42
+ };
43
+ return (_ctx, _cache) => {
44
+ const _component_el_pagination = resolveComponent("el-pagination");
45
+ return openBlock(), createElementBlock("div", _hoisted_1, [
46
+ createVNode(_component_el_pagination, {
47
+ "current-page": currentPage.value,
48
+ "onUpdate:currentPage": _cache[0] || (_cache[0] = ($event) => currentPage.value = $event),
49
+ "page-size": pageSize.value,
50
+ "onUpdate:pageSize": _cache[1] || (_cache[1] = ($event) => pageSize.value = $event),
51
+ "page-sizes": [10, 30, 50, 100],
52
+ size: "small",
53
+ layout: "total, sizes, prev, pager, next, jumper",
54
+ total: __props.total,
55
+ onCurrentChange: handleCurrentChange,
56
+ onSizeChange: handleSizeChange
57
+ }, null, 8, ["current-page", "page-size", "total"])
58
+ ]);
59
+ };
60
+ }
61
+ });
62
+ export {
63
+ _sfc_main as default
64
+ };
@@ -0,0 +1,4 @@
1
+ import _sfc_main from "./table-pageination.vue.js";
2
+ export {
3
+ _sfc_main as default
4
+ };