ele-admin-plus 1.1.9-beta.8 → 1.1.9-beta.9
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.
- package/es/ele-app/el.d.ts +6 -1
- package/es/ele-app/plus.d.ts +9 -0
- package/es/ele-config-provider/index.d.ts +2 -2
- package/es/ele-config-provider/props.d.ts +3 -3
- package/es/ele-config-provider/props.js +2 -2
- package/es/ele-config-provider/types.d.ts +2 -0
- package/es/ele-data-table/index.d.ts +2 -2
- package/es/ele-data-table/index.js +8 -0
- package/es/ele-data-table/style/index.scss +4 -0
- package/es/ele-data-table/types.d.ts +10 -0
- package/es/ele-data-table/util.d.ts +5 -0
- package/es/ele-data-table/util.js +14 -0
- package/es/ele-modal/style/index.scss +18 -29
- package/es/ele-pagination/index.d.ts +4 -2
- package/es/ele-pagination/index.js +17 -5
- package/es/ele-pagination/props.d.ts +3 -2
- package/es/ele-pagination/props.js +2 -0
- package/es/ele-pagination/style/index.scss +9 -0
- package/es/ele-pagination/types.d.ts +6 -1
- package/es/ele-printer/util.js +1 -1
- package/es/ele-pro-table/components/table-tools.d.ts +99 -8
- package/es/ele-pro-table/components/table-tools.js +125 -8
- package/es/ele-pro-table/components/tool-column-list.js +1 -0
- package/es/ele-pro-table/components/tool-column.js +6 -2
- package/es/ele-pro-table/components/tool-export.d.ts +457 -0
- package/es/ele-pro-table/components/tool-export.js +451 -0
- package/es/ele-pro-table/components/tool-print-body-cell.d.ts +34 -0
- package/es/ele-pro-table/components/tool-print-body-cell.js +88 -0
- package/es/ele-pro-table/components/tool-print-header-cell.d.ts +34 -0
- package/es/ele-pro-table/components/tool-print-header-cell.js +88 -0
- package/es/ele-pro-table/components/tool-print.d.ts +899 -0
- package/es/ele-pro-table/components/tool-print.js +547 -0
- package/es/ele-pro-table/index.d.ts +28 -9
- package/es/ele-pro-table/index.js +56 -8
- package/es/ele-pro-table/props.d.ts +11 -5
- package/es/ele-pro-table/props.js +6 -2
- package/es/ele-pro-table/style/index.js +9 -0
- package/es/ele-pro-table/style/index.scss +33 -5
- package/es/ele-pro-table/types.d.ts +147 -5
- package/es/ele-pro-table/util.d.ts +47 -3
- package/es/ele-pro-table/util.js +119 -13
- package/es/ele-table/index.d.ts +3 -0
- package/es/ele-table/index.js +2 -1
- package/es/ele-table/props.d.ts +2 -0
- package/es/ele-table/props.js +3 -1
- package/es/ele-table/style/index.scss +35 -0
- package/es/ele-tool/index.d.ts +1 -1
- package/es/ele-tool/index.js +2 -4
- package/es/ele-tool/props.d.ts +7 -0
- package/es/ele-tool/props.js +5 -0
- package/es/ele-virtual-table/components/body-cell.d.ts +0 -1
- package/es/ele-virtual-table/components/body-cell.js +32 -47
- package/es/ele-virtual-table/components/footer-row.d.ts +2 -2
- package/es/ele-virtual-table/components/footer-row.js +15 -10
- package/es/ele-virtual-table/types.d.ts +15 -1
- package/es/ele-virtual-table/util.d.ts +26 -3
- package/es/ele-virtual-table/util.js +44 -0
- package/es/icons/PrinterOutlined.d.ts +2 -0
- package/es/icons/PrinterOutlined.js +29 -0
- package/es/icons/VerticalLeftOutlined.js +2 -2
- package/es/icons/VerticalRightOutlined.js +2 -2
- package/es/icons/index.d.ts +1 -0
- package/es/icons/index.js +58 -56
- package/es/lang/en_US.js +13 -2
- package/es/lang/zh_CN.js +13 -2
- package/es/lang/zh_TW.js +12 -1
- package/es/utils/resolvers.js +2 -2
- package/lib/ele-app/el.d.ts +6 -1
- package/lib/ele-app/plus.d.ts +9 -0
- package/lib/ele-config-provider/index.d.ts +2 -2
- package/lib/ele-config-provider/props.cjs +2 -2
- package/lib/ele-config-provider/props.d.ts +3 -3
- package/lib/ele-config-provider/types.d.ts +2 -0
- package/lib/ele-data-table/index.cjs +8 -0
- package/lib/ele-data-table/index.d.ts +2 -2
- package/lib/ele-data-table/style/index.scss +4 -0
- package/lib/ele-data-table/types.d.ts +10 -0
- package/lib/ele-data-table/util.cjs +14 -0
- package/lib/ele-data-table/util.d.ts +5 -0
- package/lib/ele-modal/style/index.scss +18 -29
- package/lib/ele-pagination/index.cjs +16 -4
- package/lib/ele-pagination/index.d.ts +4 -2
- package/lib/ele-pagination/props.cjs +2 -0
- package/lib/ele-pagination/props.d.ts +3 -2
- package/lib/ele-pagination/style/index.scss +9 -0
- package/lib/ele-pagination/types.d.ts +6 -1
- package/lib/ele-printer/util.cjs +1 -1
- package/lib/ele-pro-table/components/table-tools.cjs +124 -7
- package/lib/ele-pro-table/components/table-tools.d.ts +99 -8
- package/lib/ele-pro-table/components/tool-column-list.cjs +1 -0
- package/lib/ele-pro-table/components/tool-column.cjs +6 -2
- package/lib/ele-pro-table/components/tool-export.cjs +450 -0
- package/lib/ele-pro-table/components/tool-export.d.ts +457 -0
- package/lib/ele-pro-table/components/tool-print-body-cell.cjs +87 -0
- package/lib/ele-pro-table/components/tool-print-body-cell.d.ts +34 -0
- package/lib/ele-pro-table/components/tool-print-header-cell.cjs +87 -0
- package/lib/ele-pro-table/components/tool-print-header-cell.d.ts +34 -0
- package/lib/ele-pro-table/components/tool-print.cjs +546 -0
- package/lib/ele-pro-table/components/tool-print.d.ts +899 -0
- package/lib/ele-pro-table/index.cjs +56 -8
- package/lib/ele-pro-table/index.d.ts +28 -9
- package/lib/ele-pro-table/props.cjs +6 -2
- package/lib/ele-pro-table/props.d.ts +11 -5
- package/lib/ele-pro-table/style/index.cjs +9 -0
- package/lib/ele-pro-table/style/index.scss +33 -5
- package/lib/ele-pro-table/types.d.ts +147 -5
- package/lib/ele-pro-table/util.cjs +119 -13
- package/lib/ele-pro-table/util.d.ts +47 -3
- package/lib/ele-table/index.cjs +2 -1
- package/lib/ele-table/index.d.ts +3 -0
- package/lib/ele-table/props.cjs +3 -1
- package/lib/ele-table/props.d.ts +2 -0
- package/lib/ele-table/style/index.scss +35 -0
- package/lib/ele-tool/index.cjs +1 -3
- package/lib/ele-tool/index.d.ts +1 -1
- package/lib/ele-tool/props.cjs +5 -0
- package/lib/ele-tool/props.d.ts +7 -0
- package/lib/ele-virtual-table/components/body-cell.cjs +31 -46
- package/lib/ele-virtual-table/components/body-cell.d.ts +0 -1
- package/lib/ele-virtual-table/components/footer-row.cjs +13 -8
- package/lib/ele-virtual-table/components/footer-row.d.ts +2 -2
- package/lib/ele-virtual-table/types.d.ts +15 -1
- package/lib/ele-virtual-table/util.cjs +44 -0
- package/lib/ele-virtual-table/util.d.ts +26 -3
- package/lib/icons/PrinterOutlined.cjs +28 -0
- package/lib/icons/PrinterOutlined.d.ts +2 -0
- package/lib/icons/VerticalLeftOutlined.cjs +2 -2
- package/lib/icons/VerticalRightOutlined.cjs +2 -2
- package/lib/icons/index.cjs +2 -0
- package/lib/icons/index.d.ts +1 -0
- package/lib/lang/en_US.cjs +13 -2
- package/lib/lang/zh_CN.cjs +13 -2
- package/lib/lang/zh_TW.cjs +12 -1
- package/lib/utils/resolvers.cjs +2 -2
- package/package.json +1 -1
|
@@ -412,6 +412,47 @@ function getTreeProps(treeProps) {
|
|
|
412
412
|
hasChildrenName: hasChildren || "hasChildren"
|
|
413
413
|
};
|
|
414
414
|
}
|
|
415
|
+
function getIndexValue(rowIndex, index, pageIndex) {
|
|
416
|
+
if (index == null) {
|
|
417
|
+
return String((pageIndex || 0) + (rowIndex || 0));
|
|
418
|
+
}
|
|
419
|
+
const start = typeof index === "function" ? index(rowIndex || 0) : index;
|
|
420
|
+
return String((start || 0) + (rowIndex || 0));
|
|
421
|
+
}
|
|
422
|
+
function getCellSpan(params, spanMethod) {
|
|
423
|
+
const span = { rowspan: 1, colspan: 1 };
|
|
424
|
+
if (typeof spanMethod === "function") {
|
|
425
|
+
const result = spanMethod(params);
|
|
426
|
+
if (result != null) {
|
|
427
|
+
if (Array.isArray(result)) {
|
|
428
|
+
const [rowspan, colspan] = result;
|
|
429
|
+
if (rowspan != null) {
|
|
430
|
+
span.rowspan = rowspan;
|
|
431
|
+
}
|
|
432
|
+
if (colspan != null) {
|
|
433
|
+
span.colspan = colspan;
|
|
434
|
+
}
|
|
435
|
+
} else {
|
|
436
|
+
if (result.rowspan != null) {
|
|
437
|
+
span.rowspan = result.rowspan;
|
|
438
|
+
}
|
|
439
|
+
if (result.colspan != null) {
|
|
440
|
+
span.colspan = result.colspan;
|
|
441
|
+
}
|
|
442
|
+
}
|
|
443
|
+
}
|
|
444
|
+
}
|
|
445
|
+
return span;
|
|
446
|
+
}
|
|
447
|
+
function getUserSums(summaryMethod, bodyCols, data) {
|
|
448
|
+
if (typeof summaryMethod !== "function" || bodyCols == null) {
|
|
449
|
+
return;
|
|
450
|
+
}
|
|
451
|
+
const columns = bodyCols.map((col) => {
|
|
452
|
+
return { ...col.originalCol || {}, property: col.dataKey };
|
|
453
|
+
});
|
|
454
|
+
return summaryMethod({ columns, data: data ?? [] });
|
|
455
|
+
}
|
|
415
456
|
function getSumValue(data, prop) {
|
|
416
457
|
if (!data || !prop) {
|
|
417
458
|
return "";
|
|
@@ -514,12 +555,14 @@ export {
|
|
|
514
555
|
computeFixedPositions,
|
|
515
556
|
floorSize,
|
|
516
557
|
generateRowCols,
|
|
558
|
+
getCellSpan,
|
|
517
559
|
getColFiltered,
|
|
518
560
|
getColKey,
|
|
519
561
|
getColWidth,
|
|
520
562
|
getColumnByKey,
|
|
521
563
|
getDefaultFiltered,
|
|
522
564
|
getDefaultSort,
|
|
565
|
+
getIndexValue,
|
|
523
566
|
getKeysAndList,
|
|
524
567
|
getNumberSize,
|
|
525
568
|
getOrderValue,
|
|
@@ -532,6 +575,7 @@ export {
|
|
|
532
575
|
getTableColumns,
|
|
533
576
|
getTableHeight,
|
|
534
577
|
getTreeProps,
|
|
578
|
+
getUserSums,
|
|
535
579
|
isAutoRowHeight,
|
|
536
580
|
transformTableData,
|
|
537
581
|
useAutoResize
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { defineComponent, openBlock, createElementBlock, createElementVNode } from "vue";
|
|
2
|
+
const _sfc_main = defineComponent({
|
|
3
|
+
name: "PrinterOutlined"
|
|
4
|
+
});
|
|
5
|
+
const _export_sfc = (sfc, props) => {
|
|
6
|
+
const target = sfc.__vccOpts || sfc;
|
|
7
|
+
for (const [key, val] of props) {
|
|
8
|
+
target[key] = val;
|
|
9
|
+
}
|
|
10
|
+
return target;
|
|
11
|
+
};
|
|
12
|
+
const _hoisted_1 = {
|
|
13
|
+
viewBox: "0 0 48 48",
|
|
14
|
+
fill: "none",
|
|
15
|
+
stroke: "currentColor",
|
|
16
|
+
"stroke-width": "4",
|
|
17
|
+
"stroke-linejoin": "round"
|
|
18
|
+
};
|
|
19
|
+
const _hoisted_2 = /* @__PURE__ */ createElementVNode("path", { d: "M13 36H3V15H45V36H35M12 15V4H36V15M13 44V26H35V44Z" }, null, -1);
|
|
20
|
+
const _hoisted_3 = [
|
|
21
|
+
_hoisted_2
|
|
22
|
+
];
|
|
23
|
+
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
24
|
+
return openBlock(), createElementBlock("svg", _hoisted_1, _hoisted_3);
|
|
25
|
+
}
|
|
26
|
+
const PrinterOutlined = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
27
|
+
export {
|
|
28
|
+
PrinterOutlined as default
|
|
29
|
+
};
|
|
@@ -13,9 +13,9 @@ const _hoisted_1 = {
|
|
|
13
13
|
viewBox: "0 0 48 48",
|
|
14
14
|
fill: "none",
|
|
15
15
|
stroke: "currentColor",
|
|
16
|
-
"stroke-width": "
|
|
16
|
+
"stroke-width": "4"
|
|
17
17
|
};
|
|
18
|
-
const _hoisted_2 = /* @__PURE__ */ createElementVNode("path", { d: "
|
|
18
|
+
const _hoisted_2 = /* @__PURE__ */ createElementVNode("path", { d: "M34 6 34 42M11 41 30 24 11 7" }, null, -1);
|
|
19
19
|
const _hoisted_3 = [
|
|
20
20
|
_hoisted_2
|
|
21
21
|
];
|
|
@@ -13,9 +13,9 @@ const _hoisted_1 = {
|
|
|
13
13
|
viewBox: "0 0 48 48",
|
|
14
14
|
fill: "none",
|
|
15
15
|
stroke: "currentColor",
|
|
16
|
-
"stroke-width": "
|
|
16
|
+
"stroke-width": "4"
|
|
17
17
|
};
|
|
18
|
-
const _hoisted_2 = /* @__PURE__ */ createElementVNode("path", { d: "
|
|
18
|
+
const _hoisted_2 = /* @__PURE__ */ createElementVNode("path", { d: "M14 6 14 42M37 41 18 24 37 7" }, null, -1);
|
|
19
19
|
const _hoisted_3 = [
|
|
20
20
|
_hoisted_2
|
|
21
21
|
];
|
package/es/icons/index.d.ts
CHANGED
|
@@ -76,6 +76,7 @@ export { default as PieChartOutlined } from "./PieChartOutlined";
|
|
|
76
76
|
export { default as PlayFilled } from "./PlayFilled";
|
|
77
77
|
export { default as PlusCircleOutlined } from "./PlusCircleOutlined";
|
|
78
78
|
export { default as PlusOutlined } from "./PlusOutlined";
|
|
79
|
+
export { default as PrinterOutlined } from "./PrinterOutlined";
|
|
79
80
|
export { default as ProtectOutlined } from "./ProtectOutlined";
|
|
80
81
|
export { default as QuestionCircleFilled } from "./QuestionCircleFilled";
|
|
81
82
|
export { default as QuestionCircleOutlined } from "./QuestionCircleOutlined";
|
package/es/icons/index.js
CHANGED
|
@@ -76,34 +76,35 @@ import { default as default76 } from "./PieChartOutlined";
|
|
|
76
76
|
import { default as default77 } from "./PlayFilled";
|
|
77
77
|
import { default as default78 } from "./PlusCircleOutlined";
|
|
78
78
|
import { default as default79 } from "./PlusOutlined";
|
|
79
|
-
import { default as default80 } from "./
|
|
80
|
-
import { default as default81 } from "./
|
|
81
|
-
import { default as default82 } from "./
|
|
82
|
-
import { default as default83 } from "./
|
|
83
|
-
import { default as default84 } from "./
|
|
84
|
-
import { default as default85 } from "./
|
|
85
|
-
import { default as default86 } from "./
|
|
86
|
-
import { default as default87 } from "./
|
|
87
|
-
import { default as default88 } from "./
|
|
88
|
-
import { default as default89 } from "./
|
|
89
|
-
import { default as default90 } from "./
|
|
90
|
-
import { default as default91 } from "./
|
|
91
|
-
import { default as default92 } from "./
|
|
92
|
-
import { default as default93 } from "./
|
|
93
|
-
import { default as default94 } from "./
|
|
94
|
-
import { default as default95 } from "./
|
|
95
|
-
import { default as default96 } from "./
|
|
96
|
-
import { default as default97 } from "./
|
|
97
|
-
import { default as default98 } from "./
|
|
98
|
-
import { default as default99 } from "./
|
|
99
|
-
import { default as default100 } from "./
|
|
100
|
-
import { default as default101 } from "./
|
|
101
|
-
import { default as default102 } from "./
|
|
102
|
-
import { default as default103 } from "./
|
|
103
|
-
import { default as default104 } from "./
|
|
104
|
-
import { default as default105 } from "./
|
|
105
|
-
import { default as default106 } from "./
|
|
106
|
-
import { default as default107 } from "./
|
|
79
|
+
import { default as default80 } from "./PrinterOutlined";
|
|
80
|
+
import { default as default81 } from "./ProtectOutlined";
|
|
81
|
+
import { default as default82 } from "./QuestionCircleFilled";
|
|
82
|
+
import { default as default83 } from "./QuestionCircleOutlined";
|
|
83
|
+
import { default as default84 } from "./ReloadOutlined";
|
|
84
|
+
import { default as default85 } from "./SearchOutlined";
|
|
85
|
+
import { default as default86 } from "./SettingOutlined";
|
|
86
|
+
import { default as default87 } from "./ShoppingOutlined";
|
|
87
|
+
import { default as default88 } from "./SortOutlined";
|
|
88
|
+
import { default as default89 } from "./StarFilled";
|
|
89
|
+
import { default as default90 } from "./StepBackwardFilled";
|
|
90
|
+
import { default as default91 } from "./StepForwardFilled";
|
|
91
|
+
import { default as default92 } from "./SuitcaseOutlined";
|
|
92
|
+
import { default as default93 } from "./SunOutlined";
|
|
93
|
+
import { default as default94 } from "./SwapOutlined";
|
|
94
|
+
import { default as default95 } from "./SyncOutlined";
|
|
95
|
+
import { default as default96 } from "./TableOutlined";
|
|
96
|
+
import { default as default97 } from "./TagOutlined";
|
|
97
|
+
import { default as default98 } from "./TimerOutlined";
|
|
98
|
+
import { default as default99 } from "./UndoOutlined";
|
|
99
|
+
import { default as default100 } from "./UnlockOutlined";
|
|
100
|
+
import { default as default101 } from "./UploadOutlined";
|
|
101
|
+
import { default as default102 } from "./UserOutlined";
|
|
102
|
+
import { default as default103 } from "./VerticalAlignMiddleOutlined";
|
|
103
|
+
import { default as default104 } from "./VerticalLeftOutlined";
|
|
104
|
+
import { default as default105 } from "./VerticalRightOutlined";
|
|
105
|
+
import { default as default106 } from "./WarningOutlined";
|
|
106
|
+
import { default as default107 } from "./ZoomInOutlined";
|
|
107
|
+
import { default as default108 } from "./ZoomOutOutlined";
|
|
107
108
|
export {
|
|
108
109
|
default2 as AnalysisOutlined,
|
|
109
110
|
default3 as ApplicationOutlined,
|
|
@@ -183,32 +184,33 @@ export {
|
|
|
183
184
|
default77 as PlayFilled,
|
|
184
185
|
default78 as PlusCircleOutlined,
|
|
185
186
|
default79 as PlusOutlined,
|
|
186
|
-
default80 as
|
|
187
|
-
default81 as
|
|
188
|
-
default82 as
|
|
189
|
-
default83 as
|
|
190
|
-
default84 as
|
|
191
|
-
default85 as
|
|
192
|
-
default86 as
|
|
193
|
-
default87 as
|
|
194
|
-
default88 as
|
|
195
|
-
default89 as
|
|
196
|
-
default90 as
|
|
197
|
-
default91 as
|
|
198
|
-
default92 as
|
|
199
|
-
default93 as
|
|
200
|
-
default94 as
|
|
201
|
-
default95 as
|
|
202
|
-
default96 as
|
|
203
|
-
default97 as
|
|
204
|
-
default98 as
|
|
205
|
-
default99 as
|
|
206
|
-
default100 as
|
|
207
|
-
default101 as
|
|
208
|
-
default102 as
|
|
209
|
-
default103 as
|
|
210
|
-
default104 as
|
|
211
|
-
default105 as
|
|
212
|
-
default106 as
|
|
213
|
-
default107 as
|
|
187
|
+
default80 as PrinterOutlined,
|
|
188
|
+
default81 as ProtectOutlined,
|
|
189
|
+
default82 as QuestionCircleFilled,
|
|
190
|
+
default83 as QuestionCircleOutlined,
|
|
191
|
+
default84 as ReloadOutlined,
|
|
192
|
+
default85 as SearchOutlined,
|
|
193
|
+
default86 as SettingOutlined,
|
|
194
|
+
default87 as ShoppingOutlined,
|
|
195
|
+
default88 as SortOutlined,
|
|
196
|
+
default89 as StarFilled,
|
|
197
|
+
default90 as StepBackwardFilled,
|
|
198
|
+
default91 as StepForwardFilled,
|
|
199
|
+
default92 as SuitcaseOutlined,
|
|
200
|
+
default93 as SunOutlined,
|
|
201
|
+
default94 as SwapOutlined,
|
|
202
|
+
default95 as SyncOutlined,
|
|
203
|
+
default96 as TableOutlined,
|
|
204
|
+
default97 as TagOutlined,
|
|
205
|
+
default98 as TimerOutlined,
|
|
206
|
+
default99 as UndoOutlined,
|
|
207
|
+
default100 as UnlockOutlined,
|
|
208
|
+
default101 as UploadOutlined,
|
|
209
|
+
default102 as UserOutlined,
|
|
210
|
+
default103 as VerticalAlignMiddleOutlined,
|
|
211
|
+
default104 as VerticalLeftOutlined,
|
|
212
|
+
default105 as VerticalRightOutlined,
|
|
213
|
+
default106 as WarningOutlined,
|
|
214
|
+
default107 as ZoomInOutlined,
|
|
215
|
+
default108 as ZoomOutOutlined
|
|
214
216
|
};
|
package/es/lang/en_US.js
CHANGED
|
@@ -34,14 +34,25 @@ const localeValues = {
|
|
|
34
34
|
sizes: "Density",
|
|
35
35
|
columns: "Columns",
|
|
36
36
|
maximized: "Fullscreen",
|
|
37
|
+
export: "Export",
|
|
38
|
+
print: "Print",
|
|
37
39
|
sizeLarge: "Large",
|
|
38
40
|
sizeDefault: "Default",
|
|
39
41
|
sizeSmall: "Compact",
|
|
40
|
-
columnTitle: "
|
|
42
|
+
columnTitle: "Check all",
|
|
41
43
|
columnReset: "Reset",
|
|
42
44
|
columnUntitled: "Untitled",
|
|
43
45
|
columnFixedLeft: "Pin to left",
|
|
44
|
-
columnFixedRight: "Pin to right"
|
|
46
|
+
columnFixedRight: "Pin to right",
|
|
47
|
+
exportOk: "Ok",
|
|
48
|
+
exportCancel: "Cancel",
|
|
49
|
+
exportFileName: "Filename",
|
|
50
|
+
exportFileNamePlaceholder: "Please input filename",
|
|
51
|
+
exportSelectData: "Data",
|
|
52
|
+
exportSelectColumn: "Columns",
|
|
53
|
+
exportDataTypePage: "Current",
|
|
54
|
+
exportDataTypeSelected: "Selected",
|
|
55
|
+
exportDataTypeAll: "All"
|
|
45
56
|
},
|
|
46
57
|
copyable: {
|
|
47
58
|
copy: "Copy",
|
package/es/lang/zh_CN.js
CHANGED
|
@@ -34,14 +34,25 @@ const localeValues = {
|
|
|
34
34
|
sizes: "密度",
|
|
35
35
|
columns: "列设置",
|
|
36
36
|
maximized: "全屏",
|
|
37
|
+
export: "导出",
|
|
38
|
+
print: "打印",
|
|
37
39
|
sizeLarge: "宽松",
|
|
38
40
|
sizeDefault: "中等",
|
|
39
41
|
sizeSmall: "紧凑",
|
|
40
|
-
columnTitle: "
|
|
42
|
+
columnTitle: "全选",
|
|
41
43
|
columnReset: "重置",
|
|
42
44
|
columnUntitled: "无标题",
|
|
43
45
|
columnFixedLeft: "固定在左侧",
|
|
44
|
-
columnFixedRight: "固定在右侧"
|
|
46
|
+
columnFixedRight: "固定在右侧",
|
|
47
|
+
exportOk: "确定",
|
|
48
|
+
exportCancel: "取消",
|
|
49
|
+
exportFileName: "文件名",
|
|
50
|
+
exportFileNamePlaceholder: "请输入文件名",
|
|
51
|
+
exportSelectData: "选择数据",
|
|
52
|
+
exportSelectColumn: "选择字段",
|
|
53
|
+
exportDataTypePage: "当前页数据",
|
|
54
|
+
exportDataTypeSelected: "选中数据",
|
|
55
|
+
exportDataTypeAll: "全部数据"
|
|
45
56
|
},
|
|
46
57
|
copyable: {
|
|
47
58
|
copy: "复制",
|
package/es/lang/zh_TW.js
CHANGED
|
@@ -34,6 +34,8 @@ const localeValues = {
|
|
|
34
34
|
sizes: "密度",
|
|
35
35
|
columns: "列設定",
|
|
36
36
|
maximized: "全屏",
|
|
37
|
+
export: "匯出",
|
|
38
|
+
print: "打印",
|
|
37
39
|
sizeLarge: "寬鬆",
|
|
38
40
|
sizeDefault: "中等",
|
|
39
41
|
sizeSmall: "緊湊",
|
|
@@ -41,7 +43,16 @@ const localeValues = {
|
|
|
41
43
|
columnReset: "重置",
|
|
42
44
|
columnUntitled: "無標題",
|
|
43
45
|
columnFixedLeft: "固定在左側",
|
|
44
|
-
columnFixedRight: "固定在右側"
|
|
46
|
+
columnFixedRight: "固定在右側",
|
|
47
|
+
exportOk: "確認",
|
|
48
|
+
exportCancel: "取消",
|
|
49
|
+
exportFileName: "檔名",
|
|
50
|
+
exportFileNamePlaceholder: "請輸入檔名",
|
|
51
|
+
exportSelectData: "選擇數據",
|
|
52
|
+
exportSelectColumn: "選擇字段",
|
|
53
|
+
exportDataTypePage: "當前頁數據",
|
|
54
|
+
exportDataTypeSelected: "選中數據",
|
|
55
|
+
exportDataTypeAll: "全部數據"
|
|
45
56
|
},
|
|
46
57
|
copyable: {
|
|
47
58
|
copy: "複製",
|
package/es/utils/resolvers.js
CHANGED
|
@@ -10,7 +10,7 @@ function getSideEffects(path, options) {
|
|
|
10
10
|
}
|
|
11
11
|
function getStylePath(namePath, packageName, path) {
|
|
12
12
|
if (!path) {
|
|
13
|
-
return `${packageName}/es`;
|
|
13
|
+
return `${packageName}/es/${namePath}`;
|
|
14
14
|
}
|
|
15
15
|
if (path === "/es/core") {
|
|
16
16
|
return `${packageName}/es/${namePath}`;
|
|
@@ -38,7 +38,7 @@ function EleAdminResolver(options) {
|
|
|
38
38
|
};
|
|
39
39
|
}
|
|
40
40
|
return {
|
|
41
|
-
from: `${packageName}${path}/${namePath}`,
|
|
41
|
+
from: `${packageName}${path}/${namePath}/index`,
|
|
42
42
|
sideEffects: getSideEffects(stylePath, options)
|
|
43
43
|
};
|
|
44
44
|
}
|
package/lib/ele-app/el.d.ts
CHANGED
|
@@ -49,13 +49,16 @@ import type {
|
|
|
49
49
|
ElImage,
|
|
50
50
|
ElScrollbar,
|
|
51
51
|
ElTreeV2,
|
|
52
|
-
|
|
52
|
+
ElForm,
|
|
53
|
+
ElFormItem,
|
|
54
|
+
FormItemRule
|
|
53
55
|
} from 'element-plus';
|
|
54
56
|
import type { dropdownProps } from 'element-plus';
|
|
55
57
|
import type { dropdownItemProps } from 'element-plus';
|
|
56
58
|
import type columnProps from 'element-plus/es/components/table/src/table-column/defaults';
|
|
57
59
|
import type { TreeProps } from 'element-plus/es/components/tree-v2/src/types';
|
|
58
60
|
import type { ComponentProps } from './types';
|
|
61
|
+
export type ElFormItemRule = FormItemRule;
|
|
59
62
|
|
|
60
63
|
/**
|
|
61
64
|
* 组件属性
|
|
@@ -173,4 +176,6 @@ export type ElScrollbarInstance = InstanceType<typeof ElScrollbar> | null;
|
|
|
173
176
|
|
|
174
177
|
export type ElTreeV2Instance = InstanceType<typeof ElTreeV2> | null;
|
|
175
178
|
|
|
179
|
+
export type ElFormInstance = InstanceType<typeof ElForm> | null;
|
|
180
|
+
|
|
176
181
|
export type ElFormItemInstance = InstanceType<typeof ElFormItem> | null;
|
package/lib/ele-app/plus.d.ts
CHANGED
|
@@ -14,11 +14,14 @@ import type { PopoverProps } from '../ele-popover/props';
|
|
|
14
14
|
import type ElePopover from '../ele-popover/index';
|
|
15
15
|
import type { ProTableProps } from '../ele-pro-table/props';
|
|
16
16
|
import type EleProTable from '../ele-pro-table/index';
|
|
17
|
+
import type { PrinterProps } from '../ele-printer/props';
|
|
17
18
|
import type EleTabs from '../ele-tabs/index';
|
|
19
|
+
import type { TableProps } from '../ele-table/props';
|
|
18
20
|
import type { TextProps } from '../ele-text/props';
|
|
19
21
|
import type EleText from '../ele-text/index';
|
|
20
22
|
import type { ToolbarProps } from '../ele-toolbar/props';
|
|
21
23
|
import type { TooltipProps } from '../ele-tooltip/props';
|
|
24
|
+
import type { ToolProps } from '../ele-tool/props';
|
|
22
25
|
import type EleTooltip from '../ele-tooltip/index';
|
|
23
26
|
import type EleVirtualTable from '../ele-virtual-table/index';
|
|
24
27
|
import type ReceiverView from '../ele-config-provider/components/receiver-view';
|
|
@@ -46,12 +49,18 @@ export type ElePopoverProps = Partial<PopoverProps>;
|
|
|
46
49
|
|
|
47
50
|
export type EleProTableProps = ComponentProps<ProTableProps>;
|
|
48
51
|
|
|
52
|
+
export type ElePrinterProps = ComponentProps<PrinterProps>;
|
|
53
|
+
|
|
54
|
+
export type EleTableProps = ComponentProps<TableProps>;
|
|
55
|
+
|
|
49
56
|
export type EleTextProps = ComponentProps<TextProps>;
|
|
50
57
|
|
|
51
58
|
export type EleToolbarProps = ComponentProps<ToolbarProps>;
|
|
52
59
|
|
|
53
60
|
export type EleTooltipProps = Partial<TooltipProps>;
|
|
54
61
|
|
|
62
|
+
export type EleToolProps = Partial<ToolProps>;
|
|
63
|
+
|
|
55
64
|
/**
|
|
56
65
|
* 组件实例
|
|
57
66
|
*/
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
declare const _default: import("vue").DefineComponent<{
|
|
2
2
|
locale: import("vue").PropType<import("./types").EleLocale>;
|
|
3
|
-
table: import("vue").PropType<Partial<Pick<import("../ele-app/plus").EleProTableProps, "size" | "stripe" | "border" | "emptyProps" | "request" | "response" | "parseData" | "tools" | "maximizedIndex" | "pagination">>>;
|
|
3
|
+
table: import("vue").PropType<Partial<Pick<import("../ele-app/plus").EleProTableProps, "size" | "stripe" | "border" | "emptyProps" | "request" | "response" | "parseData" | "tools" | "maximizedIndex" | "pagination" | "exportConfig" | "printConfig">>>;
|
|
4
4
|
mapKey: StringConstructor;
|
|
5
5
|
license: StringConstructor;
|
|
6
6
|
}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
7
7
|
[key: string]: any;
|
|
8
8
|
}>[] | undefined, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
9
9
|
locale: import("vue").PropType<import("./types").EleLocale>;
|
|
10
|
-
table: import("vue").PropType<Partial<Pick<import("../ele-app/plus").EleProTableProps, "size" | "stripe" | "border" | "emptyProps" | "request" | "response" | "parseData" | "tools" | "maximizedIndex" | "pagination">>>;
|
|
10
|
+
table: import("vue").PropType<Partial<Pick<import("../ele-app/plus").EleProTableProps, "size" | "stripe" | "border" | "emptyProps" | "request" | "response" | "parseData" | "tools" | "maximizedIndex" | "pagination" | "exportConfig" | "printConfig">>>;
|
|
11
11
|
mapKey: StringConstructor;
|
|
12
12
|
license: StringConstructor;
|
|
13
13
|
}>>, {}, {}>;
|
|
@@ -7,10 +7,10 @@ export declare const configProviderProps: {
|
|
|
7
7
|
/** 国际化 */
|
|
8
8
|
locale: PropType<EleLocale>;
|
|
9
9
|
/** 表格全局配置 */
|
|
10
|
-
table: PropType<Partial<Pick<import("../ele-app/plus").EleProTableProps, "size" | "stripe" | "border" | "tools" | "emptyProps" | "request" | "response" | "parseData" | "maximizedIndex" | "pagination">>>;
|
|
11
|
-
/**
|
|
10
|
+
table: PropType<Partial<Pick<import("../ele-app/plus").EleProTableProps, "size" | "stripe" | "border" | "tools" | "emptyProps" | "request" | "response" | "parseData" | "maximizedIndex" | "pagination" | "exportConfig" | "printConfig">>>;
|
|
11
|
+
/** 高德地图key */
|
|
12
12
|
mapKey: StringConstructor;
|
|
13
|
-
/**
|
|
13
|
+
/** license */
|
|
14
14
|
license: StringConstructor;
|
|
15
15
|
};
|
|
16
16
|
export type ConfigProviderProps = ExtractPropTypes<typeof configProviderProps>;
|
|
@@ -31,6 +31,13 @@ const index = vue.defineComponent({
|
|
|
31
31
|
var _a;
|
|
32
32
|
return ((_a = props$1.treeProps) == null ? void 0 : _a.children) || "children";
|
|
33
33
|
});
|
|
34
|
+
const updateScrollBar = () => {
|
|
35
|
+
var _a;
|
|
36
|
+
const scrollBarRef = (_a = tableRef.value) == null ? void 0 : _a.scrollBarRef;
|
|
37
|
+
if (scrollBarRef && typeof scrollBarRef.update === "function") {
|
|
38
|
+
scrollBarRef.update();
|
|
39
|
+
}
|
|
40
|
+
};
|
|
34
41
|
const clearSort = () => {
|
|
35
42
|
methods.clearSort();
|
|
36
43
|
tableState.sorter = {};
|
|
@@ -227,6 +234,7 @@ const index = vue.defineComponent({
|
|
|
227
234
|
tableCols.value = cols;
|
|
228
235
|
vue.nextTick(() => {
|
|
229
236
|
methods.doLayout();
|
|
237
|
+
updateScrollBar();
|
|
230
238
|
if (sorter) {
|
|
231
239
|
methods.sort(sorter.prop, sorter.order || "ascending");
|
|
232
240
|
}
|
|
@@ -141,7 +141,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
141
141
|
clearFilter: (columnKeys?: string[] | undefined) => void;
|
|
142
142
|
doLayout: () => void;
|
|
143
143
|
sort: (prop: string, order: string) => void;
|
|
144
|
-
scrollTo: (options: number | ScrollToOptions, yCoord?: number | undefined) => void;
|
|
144
|
+
scrollTo: (options: number | ScrollToOptions, yCoord?: number | undefined) => void;
|
|
145
145
|
setScrollTop: (top?: number | undefined) => void;
|
|
146
146
|
setScrollLeft: (left?: number | undefined) => void;
|
|
147
147
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
@@ -155,7 +155,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
155
155
|
cellContextmenu: (_row: DataItem, _column: Column, _cell: HTMLTableCellElement, _e: MouseEvent) => boolean;
|
|
156
156
|
rowClick: (_row: DataItem, _column: Column, _e: MouseEvent) => boolean;
|
|
157
157
|
rowContextmenu: (_row: DataItem, _column: Column, _e: MouseEvent) => boolean;
|
|
158
|
-
rowDblclick: (_row: DataItem, _column: Column, _e: MouseEvent) => boolean;
|
|
158
|
+
rowDblclick: (_row: DataItem, _column: Column, _e: MouseEvent) => boolean;
|
|
159
159
|
headerClick: (_column: Column, _e: MouseEvent) => boolean;
|
|
160
160
|
headerContextmenu: (_column: Column, _e: MouseEvent) => boolean;
|
|
161
161
|
sortChange: (_sorter: Sorter) => boolean;
|
|
@@ -240,7 +240,17 @@ export type SpanMethod = ElTableProps<DataItem>['spanMethod'];
|
|
|
240
240
|
*/
|
|
241
241
|
export type RowKey = ElTableProps<DataItem>['rowKey'];
|
|
242
242
|
|
|
243
|
+
/**
|
|
244
|
+
* 表尾合计计算方法
|
|
245
|
+
*/
|
|
246
|
+
export type SummaryMethod = ElTableProps<DataItem>['summaryMethod'];
|
|
247
|
+
|
|
243
248
|
/**
|
|
244
249
|
* 控制行是否可选中的方法
|
|
245
250
|
*/
|
|
246
251
|
export type RowSelectable = Column['selectable'];
|
|
252
|
+
|
|
253
|
+
/**
|
|
254
|
+
* 序号列起始索引
|
|
255
|
+
*/
|
|
256
|
+
export type ColumnIndex = Column['index'];
|
|
@@ -29,6 +29,8 @@ function getCols(cols, pageIndex, slots, slotNormalize, globalTooltip) {
|
|
|
29
29
|
{
|
|
30
30
|
...core.omit(col, [
|
|
31
31
|
"showOverflowTooltip",
|
|
32
|
+
"columnKey",
|
|
33
|
+
"className",
|
|
32
34
|
"uid",
|
|
33
35
|
"slot",
|
|
34
36
|
"headerSlot",
|
|
@@ -41,6 +43,7 @@ function getCols(cols, pageIndex, slots, slotNormalize, globalTooltip) {
|
|
|
41
43
|
globalTooltip
|
|
42
44
|
),
|
|
43
45
|
columnKey: col.columnKey ?? col.prop,
|
|
46
|
+
className: getCellClass(col),
|
|
44
47
|
index: col.index ?? pageIndex,
|
|
45
48
|
key: col.uid
|
|
46
49
|
},
|
|
@@ -258,6 +261,16 @@ function getColFixedNumber(fixed) {
|
|
|
258
261
|
}
|
|
259
262
|
return 1;
|
|
260
263
|
}
|
|
264
|
+
function getCellClass(col) {
|
|
265
|
+
const classes = [];
|
|
266
|
+
if (col.type === "index") {
|
|
267
|
+
classes.push("is-index");
|
|
268
|
+
}
|
|
269
|
+
if (col.className) {
|
|
270
|
+
classes.push(col.className);
|
|
271
|
+
}
|
|
272
|
+
return classes.length ? classes.join(" ") : void 0;
|
|
273
|
+
}
|
|
261
274
|
function getRowKeys(rows, rowKey) {
|
|
262
275
|
const keys = [];
|
|
263
276
|
if (rows) {
|
|
@@ -456,6 +469,7 @@ function useEmits(emit) {
|
|
|
456
469
|
}
|
|
457
470
|
exports.arrayIsChanged = arrayIsChanged;
|
|
458
471
|
exports.getBodyRowClass = getBodyRowClass;
|
|
472
|
+
exports.getCellClass = getCellClass;
|
|
459
473
|
exports.getColFixedNumber = getColFixedNumber;
|
|
460
474
|
exports.getCols = getCols;
|
|
461
475
|
exports.getEmptyProps = getEmptyProps;
|
|
@@ -137,6 +137,11 @@ export declare function isReserveChecked(columns?: Columns): boolean;
|
|
|
137
137
|
* @param fixed 固定值
|
|
138
138
|
*/
|
|
139
139
|
export declare function getColFixedNumber(fixed?: boolean | string): 0 | 1 | 2;
|
|
140
|
+
/**
|
|
141
|
+
* 获取列类名
|
|
142
|
+
* @param col 列属性
|
|
143
|
+
*/
|
|
144
|
+
export declare function getCellClass(col: Column): string | undefined;
|
|
140
145
|
/**
|
|
141
146
|
* 获取数据值
|
|
142
147
|
* @param rows 数据
|