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
|
@@ -414,6 +414,47 @@ function getTreeProps(treeProps) {
|
|
|
414
414
|
hasChildrenName: hasChildren || "hasChildren"
|
|
415
415
|
};
|
|
416
416
|
}
|
|
417
|
+
function getIndexValue(rowIndex, index, pageIndex) {
|
|
418
|
+
if (index == null) {
|
|
419
|
+
return String((pageIndex || 0) + (rowIndex || 0));
|
|
420
|
+
}
|
|
421
|
+
const start = typeof index === "function" ? index(rowIndex || 0) : index;
|
|
422
|
+
return String((start || 0) + (rowIndex || 0));
|
|
423
|
+
}
|
|
424
|
+
function getCellSpan(params, spanMethod) {
|
|
425
|
+
const span = { rowspan: 1, colspan: 1 };
|
|
426
|
+
if (typeof spanMethod === "function") {
|
|
427
|
+
const result = spanMethod(params);
|
|
428
|
+
if (result != null) {
|
|
429
|
+
if (Array.isArray(result)) {
|
|
430
|
+
const [rowspan, colspan] = result;
|
|
431
|
+
if (rowspan != null) {
|
|
432
|
+
span.rowspan = rowspan;
|
|
433
|
+
}
|
|
434
|
+
if (colspan != null) {
|
|
435
|
+
span.colspan = colspan;
|
|
436
|
+
}
|
|
437
|
+
} else {
|
|
438
|
+
if (result.rowspan != null) {
|
|
439
|
+
span.rowspan = result.rowspan;
|
|
440
|
+
}
|
|
441
|
+
if (result.colspan != null) {
|
|
442
|
+
span.colspan = result.colspan;
|
|
443
|
+
}
|
|
444
|
+
}
|
|
445
|
+
}
|
|
446
|
+
}
|
|
447
|
+
return span;
|
|
448
|
+
}
|
|
449
|
+
function getUserSums(summaryMethod, bodyCols, data) {
|
|
450
|
+
if (typeof summaryMethod !== "function" || bodyCols == null) {
|
|
451
|
+
return;
|
|
452
|
+
}
|
|
453
|
+
const columns = bodyCols.map((col) => {
|
|
454
|
+
return { ...col.originalCol || {}, property: col.dataKey };
|
|
455
|
+
});
|
|
456
|
+
return summaryMethod({ columns, data: data ?? [] });
|
|
457
|
+
}
|
|
417
458
|
function getSumValue(data, prop) {
|
|
418
459
|
if (!data || !prop) {
|
|
419
460
|
return "";
|
|
@@ -515,12 +556,14 @@ exports.computeFixedCols = computeFixedCols;
|
|
|
515
556
|
exports.computeFixedPositions = computeFixedPositions;
|
|
516
557
|
exports.floorSize = floorSize;
|
|
517
558
|
exports.generateRowCols = generateRowCols;
|
|
559
|
+
exports.getCellSpan = getCellSpan;
|
|
518
560
|
exports.getColFiltered = getColFiltered;
|
|
519
561
|
exports.getColKey = getColKey;
|
|
520
562
|
exports.getColWidth = getColWidth;
|
|
521
563
|
exports.getColumnByKey = getColumnByKey;
|
|
522
564
|
exports.getDefaultFiltered = getDefaultFiltered;
|
|
523
565
|
exports.getDefaultSort = getDefaultSort;
|
|
566
|
+
exports.getIndexValue = getIndexValue;
|
|
524
567
|
exports.getKeysAndList = getKeysAndList;
|
|
525
568
|
exports.getNumberSize = getNumberSize;
|
|
526
569
|
exports.getOrderValue = getOrderValue;
|
|
@@ -533,6 +576,7 @@ exports.getSumValue = getSumValue;
|
|
|
533
576
|
exports.getTableColumns = getTableColumns;
|
|
534
577
|
exports.getTableHeight = getTableHeight;
|
|
535
578
|
exports.getTreeProps = getTreeProps;
|
|
579
|
+
exports.getUserSums = getUserSums;
|
|
536
580
|
exports.isAutoRowHeight = isAutoRowHeight;
|
|
537
581
|
exports.transformTableData = transformTableData;
|
|
538
582
|
exports.useAutoResize = useAutoResize;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { SetupContext } from 'vue';
|
|
2
2
|
import { TableV2SortOrder } from 'element-plus';
|
|
3
|
-
import type { DataKey, DataItem, Column, Columns, Sorter, Filter, FilterValue, OrderValue, TableSize, RowKey, RowSelectable, TreeProps, ShowOverflowTooltip } from '../ele-data-table/types';
|
|
4
|
-
import type { VirtualColumn, VirtualColumns, BodyColumns, HeaderColumn, HeaderRows, ColSize, CustomRenderProps, SortBy, TreeTableProps } from './types';
|
|
3
|
+
import type { DataKey, DataItem, Column, Columns, Sorter, Filter, FilterValue, OrderValue, TableSize, RowKey, RowSelectable, TreeProps, ShowOverflowTooltip, SpanMethod, ColumnIndex, SummaryMethod } from '../ele-data-table/types';
|
|
4
|
+
import type { VirtualColumn, VirtualColumns, BodyColumns, HeaderColumn, HeaderRows, ColSize, CustomRenderProps, SortBy, TreeTableProps, CellSpan, CellParams } from './types';
|
|
5
5
|
/**
|
|
6
6
|
* 获取行高
|
|
7
7
|
* @param size 表格尺寸
|
|
@@ -123,7 +123,7 @@ export declare function isAutoRowHeight(hasExpandCol: boolean, bodyCols: BodyCol
|
|
|
123
123
|
* @param props 属性
|
|
124
124
|
* @param ctx SetupContext
|
|
125
125
|
*/
|
|
126
|
-
export declare function CellRender(props: CustomRenderProps, ctx: SetupContext): (string | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
126
|
+
export declare function CellRender(props: CustomRenderProps, ctx: SetupContext): (string | number | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
127
127
|
[key: string]: any;
|
|
128
128
|
}>)[] | undefined;
|
|
129
129
|
/**
|
|
@@ -168,6 +168,29 @@ export declare function getSelectableFunction(cols: BodyColumns): ((row: any, in
|
|
|
168
168
|
* @param treeProps 嵌套数据配置项
|
|
169
169
|
*/
|
|
170
170
|
export declare function getTreeProps(treeProps?: TreeProps): TreeTableProps;
|
|
171
|
+
/**
|
|
172
|
+
* 获取序号列值
|
|
173
|
+
* @param rowIndex 行索引
|
|
174
|
+
* @param index 自定义起始索引
|
|
175
|
+
* @param pageIndex 表格分页起始索引
|
|
176
|
+
*/
|
|
177
|
+
export declare function getIndexValue(rowIndex?: number, index?: ColumnIndex, pageIndex?: number): string;
|
|
178
|
+
/**
|
|
179
|
+
* 获取单元格的跨行和跨列
|
|
180
|
+
* @param column 列配置
|
|
181
|
+
* @param columnIndex 列索引
|
|
182
|
+
* @param row 行数据
|
|
183
|
+
* @param rowIndex 行索引
|
|
184
|
+
* @param spanMethod 跨行跨列方法
|
|
185
|
+
*/
|
|
186
|
+
export declare function getCellSpan(params: CellParams, spanMethod?: SpanMethod): CellSpan;
|
|
187
|
+
/**
|
|
188
|
+
* 获取自定义的合计列
|
|
189
|
+
* @param summaryMethod 自定义方法
|
|
190
|
+
* @param bodyCols 表格主体列配置
|
|
191
|
+
* @param data 表格数据
|
|
192
|
+
*/
|
|
193
|
+
export declare function getUserSums(summaryMethod?: SummaryMethod, bodyCols?: BodyColumns, data?: DataItem[]): string[] | undefined;
|
|
171
194
|
/**
|
|
172
195
|
* 计算列合计值
|
|
173
196
|
* @param data 表格数据
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
const vue = require("vue");
|
|
3
|
+
const _sfc_main = vue.defineComponent({
|
|
4
|
+
name: "PrinterOutlined"
|
|
5
|
+
});
|
|
6
|
+
const _export_sfc = (sfc, props) => {
|
|
7
|
+
const target = sfc.__vccOpts || sfc;
|
|
8
|
+
for (const [key, val] of props) {
|
|
9
|
+
target[key] = val;
|
|
10
|
+
}
|
|
11
|
+
return target;
|
|
12
|
+
};
|
|
13
|
+
const _hoisted_1 = {
|
|
14
|
+
viewBox: "0 0 48 48",
|
|
15
|
+
fill: "none",
|
|
16
|
+
stroke: "currentColor",
|
|
17
|
+
"stroke-width": "4",
|
|
18
|
+
"stroke-linejoin": "round"
|
|
19
|
+
};
|
|
20
|
+
const _hoisted_2 = /* @__PURE__ */ vue.createElementVNode("path", { d: "M13 36H3V15H45V36H35M12 15V4H36V15M13 44V26H35V44Z" }, null, -1);
|
|
21
|
+
const _hoisted_3 = [
|
|
22
|
+
_hoisted_2
|
|
23
|
+
];
|
|
24
|
+
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
25
|
+
return vue.openBlock(), vue.createElementBlock("svg", _hoisted_1, _hoisted_3);
|
|
26
|
+
}
|
|
27
|
+
const PrinterOutlined = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
28
|
+
module.exports = PrinterOutlined;
|
|
@@ -14,9 +14,9 @@ const _hoisted_1 = {
|
|
|
14
14
|
viewBox: "0 0 48 48",
|
|
15
15
|
fill: "none",
|
|
16
16
|
stroke: "currentColor",
|
|
17
|
-
"stroke-width": "
|
|
17
|
+
"stroke-width": "4"
|
|
18
18
|
};
|
|
19
|
-
const _hoisted_2 = /* @__PURE__ */ vue.createElementVNode("path", { d: "
|
|
19
|
+
const _hoisted_2 = /* @__PURE__ */ vue.createElementVNode("path", { d: "M34 6 34 42M11 41 30 24 11 7" }, null, -1);
|
|
20
20
|
const _hoisted_3 = [
|
|
21
21
|
_hoisted_2
|
|
22
22
|
];
|
|
@@ -14,9 +14,9 @@ const _hoisted_1 = {
|
|
|
14
14
|
viewBox: "0 0 48 48",
|
|
15
15
|
fill: "none",
|
|
16
16
|
stroke: "currentColor",
|
|
17
|
-
"stroke-width": "
|
|
17
|
+
"stroke-width": "4"
|
|
18
18
|
};
|
|
19
|
-
const _hoisted_2 = /* @__PURE__ */ vue.createElementVNode("path", { d: "
|
|
19
|
+
const _hoisted_2 = /* @__PURE__ */ vue.createElementVNode("path", { d: "M14 6 14 42M37 41 18 24 37 7" }, null, -1);
|
|
20
20
|
const _hoisted_3 = [
|
|
21
21
|
_hoisted_2
|
|
22
22
|
];
|
package/lib/icons/index.cjs
CHANGED
|
@@ -78,6 +78,7 @@ const PieChartOutlined = require("./PieChartOutlined");
|
|
|
78
78
|
const PlayFilled = require("./PlayFilled");
|
|
79
79
|
const PlusCircleOutlined = require("./PlusCircleOutlined");
|
|
80
80
|
const PlusOutlined = require("./PlusOutlined");
|
|
81
|
+
const PrinterOutlined = require("./PrinterOutlined");
|
|
81
82
|
const ProtectOutlined = require("./ProtectOutlined");
|
|
82
83
|
const QuestionCircleFilled = require("./QuestionCircleFilled");
|
|
83
84
|
const QuestionCircleOutlined = require("./QuestionCircleOutlined");
|
|
@@ -184,6 +185,7 @@ exports.PieChartOutlined = PieChartOutlined;
|
|
|
184
185
|
exports.PlayFilled = PlayFilled;
|
|
185
186
|
exports.PlusCircleOutlined = PlusCircleOutlined;
|
|
186
187
|
exports.PlusOutlined = PlusOutlined;
|
|
188
|
+
exports.PrinterOutlined = PrinterOutlined;
|
|
187
189
|
exports.ProtectOutlined = ProtectOutlined;
|
|
188
190
|
exports.QuestionCircleFilled = QuestionCircleFilled;
|
|
189
191
|
exports.QuestionCircleOutlined = QuestionCircleOutlined;
|
package/lib/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/lib/lang/en_US.cjs
CHANGED
|
@@ -35,14 +35,25 @@ const localeValues = {
|
|
|
35
35
|
sizes: "Density",
|
|
36
36
|
columns: "Columns",
|
|
37
37
|
maximized: "Fullscreen",
|
|
38
|
+
export: "Export",
|
|
39
|
+
print: "Print",
|
|
38
40
|
sizeLarge: "Large",
|
|
39
41
|
sizeDefault: "Default",
|
|
40
42
|
sizeSmall: "Compact",
|
|
41
|
-
columnTitle: "
|
|
43
|
+
columnTitle: "Check all",
|
|
42
44
|
columnReset: "Reset",
|
|
43
45
|
columnUntitled: "Untitled",
|
|
44
46
|
columnFixedLeft: "Pin to left",
|
|
45
|
-
columnFixedRight: "Pin to right"
|
|
47
|
+
columnFixedRight: "Pin to right",
|
|
48
|
+
exportOk: "Ok",
|
|
49
|
+
exportCancel: "Cancel",
|
|
50
|
+
exportFileName: "Filename",
|
|
51
|
+
exportFileNamePlaceholder: "Please input filename",
|
|
52
|
+
exportSelectData: "Data",
|
|
53
|
+
exportSelectColumn: "Columns",
|
|
54
|
+
exportDataTypePage: "Current",
|
|
55
|
+
exportDataTypeSelected: "Selected",
|
|
56
|
+
exportDataTypeAll: "All"
|
|
46
57
|
},
|
|
47
58
|
copyable: {
|
|
48
59
|
copy: "Copy",
|
package/lib/lang/zh_CN.cjs
CHANGED
|
@@ -35,14 +35,25 @@ const localeValues = {
|
|
|
35
35
|
sizes: "密度",
|
|
36
36
|
columns: "列设置",
|
|
37
37
|
maximized: "全屏",
|
|
38
|
+
export: "导出",
|
|
39
|
+
print: "打印",
|
|
38
40
|
sizeLarge: "宽松",
|
|
39
41
|
sizeDefault: "中等",
|
|
40
42
|
sizeSmall: "紧凑",
|
|
41
|
-
columnTitle: "
|
|
43
|
+
columnTitle: "全选",
|
|
42
44
|
columnReset: "重置",
|
|
43
45
|
columnUntitled: "无标题",
|
|
44
46
|
columnFixedLeft: "固定在左侧",
|
|
45
|
-
columnFixedRight: "固定在右侧"
|
|
47
|
+
columnFixedRight: "固定在右侧",
|
|
48
|
+
exportOk: "确定",
|
|
49
|
+
exportCancel: "取消",
|
|
50
|
+
exportFileName: "文件名",
|
|
51
|
+
exportFileNamePlaceholder: "请输入文件名",
|
|
52
|
+
exportSelectData: "选择数据",
|
|
53
|
+
exportSelectColumn: "选择字段",
|
|
54
|
+
exportDataTypePage: "当前页数据",
|
|
55
|
+
exportDataTypeSelected: "选中数据",
|
|
56
|
+
exportDataTypeAll: "全部数据"
|
|
46
57
|
},
|
|
47
58
|
copyable: {
|
|
48
59
|
copy: "复制",
|
package/lib/lang/zh_TW.cjs
CHANGED
|
@@ -35,6 +35,8 @@ const localeValues = {
|
|
|
35
35
|
sizes: "密度",
|
|
36
36
|
columns: "列設定",
|
|
37
37
|
maximized: "全屏",
|
|
38
|
+
export: "匯出",
|
|
39
|
+
print: "打印",
|
|
38
40
|
sizeLarge: "寬鬆",
|
|
39
41
|
sizeDefault: "中等",
|
|
40
42
|
sizeSmall: "緊湊",
|
|
@@ -42,7 +44,16 @@ const localeValues = {
|
|
|
42
44
|
columnReset: "重置",
|
|
43
45
|
columnUntitled: "無標題",
|
|
44
46
|
columnFixedLeft: "固定在左側",
|
|
45
|
-
columnFixedRight: "固定在右側"
|
|
47
|
+
columnFixedRight: "固定在右側",
|
|
48
|
+
exportOk: "確認",
|
|
49
|
+
exportCancel: "取消",
|
|
50
|
+
exportFileName: "檔名",
|
|
51
|
+
exportFileNamePlaceholder: "請輸入檔名",
|
|
52
|
+
exportSelectData: "選擇數據",
|
|
53
|
+
exportSelectColumn: "選擇字段",
|
|
54
|
+
exportDataTypePage: "當前頁數據",
|
|
55
|
+
exportDataTypeSelected: "選中數據",
|
|
56
|
+
exportDataTypeAll: "全部數據"
|
|
46
57
|
},
|
|
47
58
|
copyable: {
|
|
48
59
|
copy: "複製",
|
package/lib/utils/resolvers.cjs
CHANGED
|
@@ -12,7 +12,7 @@ function getSideEffects(path, options) {
|
|
|
12
12
|
}
|
|
13
13
|
function getStylePath(namePath, packageName, path) {
|
|
14
14
|
if (!path) {
|
|
15
|
-
return `${packageName}/es`;
|
|
15
|
+
return `${packageName}/es/${namePath}`;
|
|
16
16
|
}
|
|
17
17
|
if (path === "/es/core") {
|
|
18
18
|
return `${packageName}/es/${namePath}`;
|
|
@@ -40,7 +40,7 @@ function EleAdminResolver(options) {
|
|
|
40
40
|
};
|
|
41
41
|
}
|
|
42
42
|
return {
|
|
43
|
-
from: `${packageName}${path}/${namePath}`,
|
|
43
|
+
from: `${packageName}${path}/${namePath}/index`,
|
|
44
44
|
sideEffects: getSideEffects(stylePath, options)
|
|
45
45
|
};
|
|
46
46
|
}
|