ele-admin-plus 1.1.9-beta.7 → 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-alert/index.js +2 -4
- package/es/ele-app/el.d.ts +6 -1
- package/es/ele-app/plus.d.ts +12 -0
- package/es/ele-avatar-group/index.d.ts +1 -1
- package/es/ele-avatar-group/index.js +1 -3
- package/es/ele-basic-select/index.d.ts +8 -8
- package/es/ele-basic-select/index.js +17 -13
- package/es/ele-check-card/index.d.ts +2 -2
- package/es/ele-check-card/index.js +0 -5
- package/es/ele-config-provider/components/receiver-view.d.ts +17 -0
- package/es/ele-config-provider/components/receiver-view.js +45 -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-copyable/index.d.ts +4 -6
- package/es/ele-copyable/index.js +1 -5
- package/es/ele-cropper/index.d.ts +6 -6
- package/es/ele-cropper/index.js +1 -5
- package/es/ele-dashboard/index.d.ts +0 -1
- package/es/ele-dashboard/index.js +8 -17
- 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-dot/index.d.ts +2 -4
- package/es/ele-dot/index.js +4 -10
- package/es/ele-drawer/index.d.ts +6 -6
- package/es/ele-drawer/index.js +14 -11
- package/es/ele-dropdown/index.js +6 -10
- package/es/ele-dropdown/style/index.scss +2 -2
- package/es/ele-edit-tag/index.d.ts +6 -0
- package/es/ele-edit-tag/index.js +17 -15
- package/es/ele-edit-tag/props.d.ts +4 -0
- package/es/ele-edit-tag/props.js +5 -1
- package/es/ele-edit-tag/style/index.scss +13 -0
- package/es/ele-ellipsis/index.d.ts +3 -3
- package/es/ele-ellipsis/index.js +2 -4
- package/es/ele-file-list/components/file-grid-item.js +16 -9
- package/es/ele-file-list/components/file-grid.js +54 -50
- package/es/ele-file-list/components/file-table-item.js +20 -15
- package/es/ele-file-list/components/file-table.js +92 -86
- package/es/ele-file-list/index.d.ts +4 -4
- package/es/ele-file-list/index.js +1 -11
- package/es/ele-file-list-tool/index.d.ts +3 -3
- package/es/ele-file-list-tool/index.js +2 -2
- package/es/ele-icon-select/index.d.ts +22 -10
- package/es/ele-icon-select/index.js +33 -10
- package/es/ele-icon-select/props.d.ts +6 -1
- package/es/ele-icon-select/props.js +6 -1
- package/es/ele-icon-select/style/index.js +1 -0
- package/es/ele-icon-select/style/index.scss +16 -2
- package/es/ele-loading/index.d.ts +0 -2
- package/es/ele-loading/index.js +32 -30
- package/es/ele-map-picker/components/map-view.d.ts +2 -2
- package/es/ele-menus/index.d.ts +3 -3
- package/es/ele-menus/index.js +6 -7
- package/es/ele-menus/style/index.js +2 -0
- package/es/ele-menus/style/index.scss +2 -1
- package/es/ele-modal/index.d.ts +2 -2
- package/es/ele-modal/index.js +14 -8
- package/es/ele-modal/style/index.scss +18 -29
- package/es/ele-pagination/index.d.ts +10 -8
- package/es/ele-pagination/index.js +19 -13
- 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-popconfirm/style/index.js +1 -1
- package/es/ele-popover/style/index.js +0 -1
- package/es/ele-printer/index.d.ts +6 -6
- package/es/ele-printer/index.js +11 -11
- package/es/ele-printer/util.js +1 -1
- package/es/ele-pro-layout/components/pro-sidebox.js +3 -1
- package/es/ele-pro-layout/index.d.ts +26 -26
- package/es/ele-pro-layout/index.js +7 -14
- 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 +31 -12
- package/es/ele-pro-table/index.js +57 -14
- package/es/ele-pro-table/props.d.ts +14 -8
- 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-segmented/index.js +1 -3
- package/es/ele-split-panel/index.d.ts +9 -8
- package/es/ele-split-panel/index.js +63 -59
- package/es/ele-steps/index.d.ts +0 -1
- package/es/ele-steps/index.js +2 -4
- 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-table-select/index.d.ts +1 -1
- package/es/ele-tabs/index.d.ts +7 -5
- package/es/ele-tabs/index.js +1 -6
- package/es/ele-tabs/props.d.ts +1 -1
- 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-tooltip/index.js +9 -13
- package/es/ele-tooltip/style/css-var.scss +4 -0
- package/es/ele-tooltip/style/index.scss +23 -0
- package/es/ele-tour/index.js +80 -77
- package/es/ele-upload-list/components/list-item.d.ts +1 -1
- package/es/ele-upload-list/index.d.ts +6 -4
- package/es/ele-upload-list/index.js +2 -3
- 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/index.d.ts +1 -1
- 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/ele-watermark/index.d.ts +9 -0
- package/es/ele-watermark/index.js +1 -1
- package/es/ele-watermark/props.d.ts +5 -0
- package/es/ele-watermark/props.js +5 -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/style/index.scss +1 -43
- package/es/style/plus.scss +43 -0
- package/es/style/themes/default.scss +5 -2
- package/es/style/themes/theme-util.scss +0 -2
- package/es/utils/resolvers.d.ts +2 -2
- package/es/utils/resolvers.js +33 -20
- package/lib/ele-alert/index.cjs +2 -4
- package/lib/ele-app/el.d.ts +6 -1
- package/lib/ele-app/plus.d.ts +12 -0
- package/lib/ele-avatar-group/index.cjs +1 -3
- package/lib/ele-avatar-group/index.d.ts +1 -1
- package/lib/ele-basic-select/index.cjs +16 -12
- package/lib/ele-basic-select/index.d.ts +8 -8
- package/lib/ele-check-card/index.cjs +0 -5
- package/lib/ele-check-card/index.d.ts +2 -2
- package/lib/ele-config-provider/components/receiver-view.cjs +44 -0
- package/lib/ele-config-provider/components/receiver-view.d.ts +17 -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-copyable/index.cjs +0 -4
- package/lib/ele-copyable/index.d.ts +4 -6
- package/lib/ele-cropper/index.cjs +0 -4
- package/lib/ele-cropper/index.d.ts +6 -6
- package/lib/ele-dashboard/index.cjs +7 -16
- package/lib/ele-dashboard/index.d.ts +0 -1
- 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-dot/index.cjs +3 -9
- package/lib/ele-dot/index.d.ts +2 -4
- package/lib/ele-drawer/index.cjs +13 -10
- package/lib/ele-drawer/index.d.ts +6 -6
- package/lib/ele-dropdown/index.cjs +6 -10
- package/lib/ele-dropdown/style/index.scss +2 -2
- package/lib/ele-edit-tag/index.cjs +16 -14
- package/lib/ele-edit-tag/index.d.ts +6 -0
- package/lib/ele-edit-tag/props.cjs +5 -1
- package/lib/ele-edit-tag/props.d.ts +4 -0
- package/lib/ele-edit-tag/style/index.scss +13 -0
- package/lib/ele-ellipsis/index.cjs +2 -4
- package/lib/ele-ellipsis/index.d.ts +3 -3
- package/lib/ele-file-list/components/file-grid-item.cjs +15 -8
- package/lib/ele-file-list/components/file-grid.cjs +53 -49
- package/lib/ele-file-list/components/file-table-item.cjs +19 -14
- package/lib/ele-file-list/components/file-table.cjs +91 -85
- package/lib/ele-file-list/index.cjs +0 -10
- package/lib/ele-file-list/index.d.ts +4 -4
- package/lib/ele-file-list-tool/index.cjs +2 -2
- package/lib/ele-file-list-tool/index.d.ts +3 -3
- package/lib/ele-icon-select/index.cjs +39 -16
- package/lib/ele-icon-select/index.d.ts +22 -10
- package/lib/ele-icon-select/props.cjs +6 -1
- package/lib/ele-icon-select/props.d.ts +6 -1
- package/lib/ele-icon-select/style/index.cjs +1 -0
- package/lib/ele-icon-select/style/index.scss +16 -2
- package/lib/ele-loading/index.cjs +31 -29
- package/lib/ele-loading/index.d.ts +0 -2
- package/lib/ele-map-picker/components/map-view.d.ts +2 -2
- package/lib/ele-menus/index.cjs +6 -7
- package/lib/ele-menus/index.d.ts +3 -3
- package/lib/ele-menus/style/index.cjs +2 -0
- package/lib/ele-menus/style/index.scss +2 -1
- package/lib/ele-modal/index.cjs +13 -7
- package/lib/ele-modal/index.d.ts +2 -2
- package/lib/ele-modal/style/index.scss +18 -29
- package/lib/ele-pagination/index.cjs +18 -12
- package/lib/ele-pagination/index.d.ts +10 -8
- 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-popconfirm/style/index.cjs +1 -1
- package/lib/ele-popover/style/index.cjs +0 -1
- package/lib/ele-printer/index.cjs +10 -10
- package/lib/ele-printer/index.d.ts +6 -6
- package/lib/ele-printer/util.cjs +1 -1
- package/lib/ele-pro-layout/components/pro-sidebox.cjs +3 -1
- package/lib/ele-pro-layout/index.cjs +6 -13
- package/lib/ele-pro-layout/index.d.ts +26 -26
- 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 -13
- package/lib/ele-pro-table/index.d.ts +31 -12
- package/lib/ele-pro-table/props.cjs +6 -2
- package/lib/ele-pro-table/props.d.ts +14 -8
- 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-segmented/index.cjs +1 -3
- package/lib/ele-split-panel/index.cjs +62 -58
- package/lib/ele-split-panel/index.d.ts +9 -8
- package/lib/ele-steps/index.cjs +2 -4
- package/lib/ele-steps/index.d.ts +0 -1
- 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-table-select/index.d.ts +1 -1
- package/lib/ele-tabs/index.cjs +1 -6
- package/lib/ele-tabs/index.d.ts +7 -5
- package/lib/ele-tabs/props.d.ts +1 -1
- 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-tooltip/index.cjs +9 -13
- package/lib/ele-tooltip/style/css-var.scss +4 -0
- package/lib/ele-tooltip/style/index.scss +23 -0
- package/lib/ele-tour/index.cjs +79 -76
- package/lib/ele-upload-list/components/list-item.d.ts +1 -1
- package/lib/ele-upload-list/index.cjs +1 -2
- package/lib/ele-upload-list/index.d.ts +6 -4
- 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/index.d.ts +1 -1
- 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/ele-watermark/index.cjs +1 -1
- package/lib/ele-watermark/index.d.ts +9 -0
- package/lib/ele-watermark/props.cjs +5 -0
- package/lib/ele-watermark/props.d.ts +5 -0
- 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/style/index.scss +1 -43
- package/lib/style/plus.scss +43 -0
- package/lib/style/themes/default.scss +5 -2
- package/lib/style/themes/theme-util.scss +0 -2
- package/lib/utils/resolvers.cjs +33 -20
- package/lib/utils/resolvers.d.ts +2 -2
- package/package.json +1 -1
- package/es/ele-popover/style/css-var.scss +0 -8
- package/es/ele-popover/style/index.scss +0 -27
- package/lib/ele-popover/style/css-var.scss +0 -8
- package/lib/ele-popover/style/index.scss +0 -27
|
@@ -0,0 +1,457 @@
|
|
|
1
|
+
import type { PropType } from 'vue';
|
|
2
|
+
import type { ElFormInstance } from '../../ele-app/el';
|
|
3
|
+
import type { EleModalProps } from '../../ele-app/plus';
|
|
4
|
+
import type { Columns, DataItem } from '../../ele-data-table/types';
|
|
5
|
+
import type { ExportDataType, BeforeExport, Datasource, FetchFunction, ColItem } from '../types';
|
|
6
|
+
declare const _default: import("vue").DefineComponent<{
|
|
7
|
+
/** 提示文字 */
|
|
8
|
+
title: StringConstructor;
|
|
9
|
+
/** 提示位置 */
|
|
10
|
+
placement: PropType<import("element-plus/es/utils/index").EpPropMergeType<StringConstructor, import("element-plus").Placement, unknown> | undefined>;
|
|
11
|
+
/** 全选文字 */
|
|
12
|
+
checkAllText: StringConstructor;
|
|
13
|
+
/** 重置文字 */
|
|
14
|
+
resetText: StringConstructor;
|
|
15
|
+
/** 无标题列文字 */
|
|
16
|
+
untitledText: StringConstructor;
|
|
17
|
+
/** 文件名文字 */
|
|
18
|
+
fileNameText: StringConstructor;
|
|
19
|
+
/** 文件名提示文字 */
|
|
20
|
+
fileNamePlaceholderText: StringConstructor;
|
|
21
|
+
/** 选择数据文字 */
|
|
22
|
+
selectDataText: StringConstructor;
|
|
23
|
+
/** 选择字段文字 */
|
|
24
|
+
selectColumnText: StringConstructor;
|
|
25
|
+
/** 当前页数据文字 */
|
|
26
|
+
dataTypePageText: StringConstructor;
|
|
27
|
+
/** 选中数据文字 */
|
|
28
|
+
dataTypeSelectedText: StringConstructor;
|
|
29
|
+
/** 全部数据文字 */
|
|
30
|
+
dataTypeAllText: StringConstructor;
|
|
31
|
+
/** 取消文字 */
|
|
32
|
+
cancelText: StringConstructor;
|
|
33
|
+
/** 确定文字 */
|
|
34
|
+
okText: StringConstructor;
|
|
35
|
+
/** 弹窗参数 */
|
|
36
|
+
modalProps: PropType<EleModalProps>;
|
|
37
|
+
/** 列数据 */
|
|
38
|
+
columns: PropType<Columns>;
|
|
39
|
+
/** 表格选中数据 */
|
|
40
|
+
selections: PropType<DataItem[]>;
|
|
41
|
+
/** 表格当前页数据 */
|
|
42
|
+
pageData: PropType<DataItem[]>;
|
|
43
|
+
/** 表格全部数据 */
|
|
44
|
+
datasource: PropType<Datasource>;
|
|
45
|
+
/** 单元格合并行列方法 */
|
|
46
|
+
spanMethod: PropType<((data: {
|
|
47
|
+
row: DataItem;
|
|
48
|
+
rowIndex: number;
|
|
49
|
+
/** 确定按钮加载状态 */
|
|
50
|
+
column: import("element-plus/es/components/table/src/table-column/defaults").TableColumnCtx<DataItem>;
|
|
51
|
+
columnIndex: number;
|
|
52
|
+
}) => number[] | {
|
|
53
|
+
rowspan: number;
|
|
54
|
+
colspan: number; /** 表单数据 */
|
|
55
|
+
} | undefined) | undefined>;
|
|
56
|
+
/** 是否显示合计行 */
|
|
57
|
+
showSummary: BooleanConstructor;
|
|
58
|
+
/** 合计行文本 */
|
|
59
|
+
sumText: StringConstructor;
|
|
60
|
+
/** 合计行自定义方法 */
|
|
61
|
+
summaryMethod: PropType<import("element-plus/es/components/table/src/table/defaults").SummaryMethod<DataItem> | undefined>;
|
|
62
|
+
/** 序号列起始索引 */
|
|
63
|
+
pageIndex: NumberConstructor;
|
|
64
|
+
/** 表格请求数据方法 */
|
|
65
|
+
fetch: PropType<FetchFunction>;
|
|
66
|
+
/** 默认文件名 */
|
|
67
|
+
defaultFileName: {
|
|
68
|
+
type: StringConstructor;
|
|
69
|
+
default: string;
|
|
70
|
+
};
|
|
71
|
+
/** 默认数据类型 */
|
|
72
|
+
defaultDataType: {
|
|
73
|
+
type: PropType<ExportDataType>;
|
|
74
|
+
default: string;
|
|
75
|
+
};
|
|
76
|
+
/** 导出前的钩子函数 */
|
|
77
|
+
beforeExport: PropType<BeforeExport>;
|
|
78
|
+
}, {
|
|
79
|
+
visible: import("vue").Ref<boolean>;
|
|
80
|
+
loading: import("vue").Ref<boolean>;
|
|
81
|
+
formRef: import("vue").Ref<ElFormInstance>;
|
|
82
|
+
form: {
|
|
83
|
+
fileName: string;
|
|
84
|
+
};
|
|
85
|
+
fileNameRules: {
|
|
86
|
+
trigger?: import("element-plus/es/utils/typescript").Arrayable<string> | undefined;
|
|
87
|
+
type?: import("async-validator").RuleType | undefined;
|
|
88
|
+
required?: boolean | undefined;
|
|
89
|
+
pattern?: string | {
|
|
90
|
+
exec: (string: string) => RegExpExecArray | null;
|
|
91
|
+
test: (string: string) => boolean;
|
|
92
|
+
readonly source: string;
|
|
93
|
+
readonly global: boolean;
|
|
94
|
+
readonly ignoreCase: boolean;
|
|
95
|
+
readonly multiline: boolean;
|
|
96
|
+
lastIndex: number;
|
|
97
|
+
compile: (pattern: string, flags?: string | undefined) => RegExp;
|
|
98
|
+
readonly flags: string;
|
|
99
|
+
readonly sticky: boolean;
|
|
100
|
+
readonly unicode: boolean;
|
|
101
|
+
readonly dotAll: boolean;
|
|
102
|
+
readonly hasIndices: boolean;
|
|
103
|
+
[Symbol.match]: (string: string) => RegExpMatchArray | null;
|
|
104
|
+
[Symbol.replace]: {
|
|
105
|
+
(string: string, replaceValue: string): string;
|
|
106
|
+
(string: string, replacer: (substring: string, ...args: any[]) => string): string;
|
|
107
|
+
};
|
|
108
|
+
[Symbol.search]: (string: string) => number;
|
|
109
|
+
[Symbol.split]: (string: string, limit?: number | undefined) => string[];
|
|
110
|
+
[Symbol.matchAll]: (str: string) => IterableIterator<RegExpMatchArray>;
|
|
111
|
+
} | undefined;
|
|
112
|
+
min?: number | undefined;
|
|
113
|
+
max?: number | undefined;
|
|
114
|
+
len?: number | undefined;
|
|
115
|
+
enum?: (string | number | boolean | null | undefined)[] | undefined;
|
|
116
|
+
whitespace?: boolean | undefined;
|
|
117
|
+
fields?: Record<string, import("async-validator").Rule> | undefined;
|
|
118
|
+
options?: {
|
|
119
|
+
suppressWarning?: boolean | undefined;
|
|
120
|
+
suppressValidatorError?: boolean | undefined;
|
|
121
|
+
first?: boolean | undefined;
|
|
122
|
+
firstFields?: boolean | string[] | undefined;
|
|
123
|
+
messages?: {
|
|
124
|
+
default?: (string | ((...args: unknown[]) => string)) | undefined;
|
|
125
|
+
required?: (string | ((args_0: string | undefined) => string)) | undefined;
|
|
126
|
+
enum?: (string | ((args_0: string | undefined, args_1: string | undefined) => string)) | undefined;
|
|
127
|
+
whitespace?: (string | ((args_0: string | undefined) => string)) | undefined;
|
|
128
|
+
date?: {
|
|
129
|
+
format?: (string | ((...args: unknown[]) => string)) | undefined;
|
|
130
|
+
parse?: (string | ((...args: unknown[]) => string)) | undefined;
|
|
131
|
+
invalid?: (string | ((...args: unknown[]) => string)) | undefined;
|
|
132
|
+
} | undefined;
|
|
133
|
+
types?: {
|
|
134
|
+
string?: (string | ((args_0: string | undefined, args_1: string | undefined) => string)) | undefined;
|
|
135
|
+
method?: (string | ((args_0: string | undefined, args_1: string | undefined) => string)) | undefined;
|
|
136
|
+
array?: (string | ((args_0: string | undefined, args_1: string | undefined) => string)) | undefined;
|
|
137
|
+
object?: (string | ((args_0: string | undefined, args_1: string | undefined) => string)) | undefined;
|
|
138
|
+
number?: (string | ((args_0: string | undefined, args_1: string | undefined) => string)) | undefined;
|
|
139
|
+
date?: (string | ((args_0: string | undefined, args_1: string | undefined) => string)) | undefined;
|
|
140
|
+
boolean?: (string | ((args_0: string | undefined, args_1: string | undefined) => string)) | undefined;
|
|
141
|
+
integer?: (string | ((args_0: string | undefined, args_1: string | undefined) => string)) | undefined;
|
|
142
|
+
float?: (string | ((args_0: string | undefined, args_1: string | undefined) => string)) | undefined;
|
|
143
|
+
regexp?: (string | ((args_0: string | undefined, args_1: string | undefined) => string)) | undefined;
|
|
144
|
+
email?: (string | ((args_0: string | undefined, args_1: string | undefined) => string)) | undefined;
|
|
145
|
+
url?: (string | ((args_0: string | undefined, args_1: string | undefined) => string)) | undefined;
|
|
146
|
+
hex?: (string | ((args_0: string | undefined, args_1: string | undefined) => string)) | undefined;
|
|
147
|
+
} | undefined;
|
|
148
|
+
string?: {
|
|
149
|
+
len?: (string | ((args_0: string | undefined, args_1: number | undefined) => string)) | undefined;
|
|
150
|
+
min?: (string | ((args_0: string | undefined, args_1: number | undefined) => string)) | undefined;
|
|
151
|
+
max?: (string | ((args_0: string | undefined, args_1: number | undefined) => string)) | undefined;
|
|
152
|
+
range?: (string | ((args_0: string | undefined, args_1: number | undefined, args_2: number | undefined) => string)) | undefined;
|
|
153
|
+
} | undefined;
|
|
154
|
+
number?: {
|
|
155
|
+
len?: (string | ((args_0: string | undefined, args_1: number | undefined) => string)) | undefined;
|
|
156
|
+
min?: (string | ((args_0: string | undefined, args_1: number | undefined) => string)) | undefined;
|
|
157
|
+
max?: (string | ((args_0: string | undefined, args_1: number | undefined) => string)) | undefined;
|
|
158
|
+
range?: (string | ((args_0: string | undefined, args_1: number | undefined, args_2: number | undefined) => string)) | undefined;
|
|
159
|
+
} | undefined;
|
|
160
|
+
array?: {
|
|
161
|
+
len?: (string | ((args_0: string | undefined, args_1: number | undefined) => string)) | undefined;
|
|
162
|
+
min?: (string | ((args_0: string | undefined, args_1: number | undefined) => string)) | undefined;
|
|
163
|
+
max?: (string | ((args_0: string | undefined, args_1: number | undefined) => string)) | undefined;
|
|
164
|
+
range?: (string | ((args_0: string | undefined, args_1: number | undefined, args_2: number | undefined) => string)) | undefined;
|
|
165
|
+
} | undefined;
|
|
166
|
+
pattern?: {
|
|
167
|
+
mismatch?: (string | ((args_0: string | undefined, args_1: any, args_2: string | RegExp | undefined) => string)) | undefined;
|
|
168
|
+
} | undefined;
|
|
169
|
+
} | undefined;
|
|
170
|
+
keys?: string[] | undefined;
|
|
171
|
+
error?: ((rule: import("async-validator").InternalRuleItem, message: string) => import("async-validator").ValidateError) | undefined;
|
|
172
|
+
} | undefined;
|
|
173
|
+
defaultField?: {
|
|
174
|
+
type?: import("async-validator").RuleType | undefined;
|
|
175
|
+
required?: boolean | undefined;
|
|
176
|
+
pattern?: string | {
|
|
177
|
+
exec: (string: string) => RegExpExecArray | null;
|
|
178
|
+
test: (string: string) => boolean;
|
|
179
|
+
readonly source: string;
|
|
180
|
+
readonly global: boolean;
|
|
181
|
+
readonly ignoreCase: boolean;
|
|
182
|
+
readonly multiline: boolean;
|
|
183
|
+
lastIndex: number;
|
|
184
|
+
compile: (pattern: string, flags?: string | undefined) => RegExp;
|
|
185
|
+
readonly flags: string;
|
|
186
|
+
readonly sticky: boolean;
|
|
187
|
+
readonly unicode: boolean;
|
|
188
|
+
readonly dotAll: boolean;
|
|
189
|
+
readonly hasIndices: boolean;
|
|
190
|
+
[Symbol.match]: (string: string) => RegExpMatchArray | null;
|
|
191
|
+
[Symbol.replace]: {
|
|
192
|
+
(string: string, replaceValue: string): string;
|
|
193
|
+
(string: string, replacer: (substring: string, ...args: any[]) => string): string;
|
|
194
|
+
};
|
|
195
|
+
[Symbol.search]: (string: string) => number;
|
|
196
|
+
[Symbol.split]: (string: string, limit?: number | undefined) => string[];
|
|
197
|
+
[Symbol.matchAll]: (str: string) => IterableIterator<RegExpMatchArray>;
|
|
198
|
+
} | undefined;
|
|
199
|
+
min?: number | undefined;
|
|
200
|
+
max?: number | undefined;
|
|
201
|
+
len?: number | undefined;
|
|
202
|
+
enum?: (string | number | boolean | null | undefined)[] | undefined;
|
|
203
|
+
whitespace?: boolean | undefined;
|
|
204
|
+
fields?: Record<string, import("async-validator").Rule> | undefined;
|
|
205
|
+
options?: {
|
|
206
|
+
suppressWarning?: boolean | undefined;
|
|
207
|
+
suppressValidatorError?: boolean | undefined;
|
|
208
|
+
first?: boolean | undefined;
|
|
209
|
+
firstFields?: boolean | string[] | undefined;
|
|
210
|
+
messages?: {
|
|
211
|
+
default?: (string | ((...args: unknown[]) => string)) | undefined;
|
|
212
|
+
required?: (string | ((args_0: string | undefined) => string)) | undefined;
|
|
213
|
+
enum?: (string | ((args_0: string | undefined, args_1: string | undefined) => string)) | undefined;
|
|
214
|
+
whitespace?: (string | ((args_0: string | undefined) => string)) | undefined;
|
|
215
|
+
date?: {
|
|
216
|
+
format?: (string | ((...args: unknown[]) => string)) | undefined;
|
|
217
|
+
parse?: (string | ((...args: unknown[]) => string)) | undefined;
|
|
218
|
+
invalid?: (string | ((...args: unknown[]) => string)) | undefined;
|
|
219
|
+
} | undefined;
|
|
220
|
+
types?: {
|
|
221
|
+
string?: (string | ((args_0: string | undefined, args_1: string | undefined) => string)) | undefined;
|
|
222
|
+
method?: (string | ((args_0: string | undefined, args_1: string | undefined) => string)) | undefined;
|
|
223
|
+
array?: (string | ((args_0: string | undefined, args_1: string | undefined) => string)) | undefined;
|
|
224
|
+
object?: (string | ((args_0: string | undefined, args_1: string | undefined) => string)) | undefined;
|
|
225
|
+
number?: (string | ((args_0: string | undefined, args_1: string | undefined) => string)) | undefined;
|
|
226
|
+
date?: (string | ((args_0: string | undefined, args_1: string | undefined) => string)) | undefined;
|
|
227
|
+
boolean?: (string | ((args_0: string | undefined, args_1: string | undefined) => string)) | undefined;
|
|
228
|
+
integer?: (string | ((args_0: string | undefined, args_1: string | undefined) => string)) | undefined;
|
|
229
|
+
float?: (string | ((args_0: string | undefined, args_1: string | undefined) => string)) | undefined;
|
|
230
|
+
regexp?: (string | ((args_0: string | undefined, args_1: string | undefined) => string)) | undefined;
|
|
231
|
+
email?: (string | ((args_0: string | undefined, args_1: string | undefined) => string)) | undefined;
|
|
232
|
+
url?: (string | ((args_0: string | undefined, args_1: string | undefined) => string)) | undefined;
|
|
233
|
+
hex?: (string | ((args_0: string | undefined, args_1: string | undefined) => string)) | undefined;
|
|
234
|
+
} | undefined;
|
|
235
|
+
string?: {
|
|
236
|
+
len?: (string | ((args_0: string | undefined, args_1: number | undefined) => string)) | undefined;
|
|
237
|
+
min?: (string | ((args_0: string | undefined, args_1: number | undefined) => string)) | undefined;
|
|
238
|
+
max?: (string | ((args_0: string | undefined, args_1: number | undefined) => string)) | undefined;
|
|
239
|
+
range?: (string | ((args_0: string | undefined, args_1: number | undefined, args_2: number | undefined) => string)) | undefined;
|
|
240
|
+
} | undefined;
|
|
241
|
+
number?: {
|
|
242
|
+
len?: (string | ((args_0: string | undefined, args_1: number | undefined) => string)) | undefined;
|
|
243
|
+
min?: (string | ((args_0: string | undefined, args_1: number | undefined) => string)) | undefined;
|
|
244
|
+
max?: (string | ((args_0: string | undefined, args_1: number | undefined) => string)) | undefined;
|
|
245
|
+
range?: (string | ((args_0: string | undefined, args_1: number | undefined, args_2: number | undefined) => string)) | undefined;
|
|
246
|
+
} | undefined;
|
|
247
|
+
array?: {
|
|
248
|
+
len?: (string | ((args_0: string | undefined, args_1: number | undefined) => string)) | undefined;
|
|
249
|
+
min?: (string | ((args_0: string | undefined, args_1: number | undefined) => string)) | undefined;
|
|
250
|
+
max?: (string | ((args_0: string | undefined, args_1: number | undefined) => string)) | undefined;
|
|
251
|
+
range?: (string | ((args_0: string | undefined, args_1: number | undefined, args_2: number | undefined) => string)) | undefined;
|
|
252
|
+
} | undefined;
|
|
253
|
+
pattern?: {
|
|
254
|
+
mismatch?: (string | ((args_0: string | undefined, args_1: any, args_2: string | RegExp | undefined) => string)) | undefined;
|
|
255
|
+
} | undefined;
|
|
256
|
+
} | undefined;
|
|
257
|
+
keys?: string[] | undefined;
|
|
258
|
+
error?: ((rule: import("async-validator").InternalRuleItem, message: string) => import("async-validator").ValidateError) | undefined;
|
|
259
|
+
} | undefined;
|
|
260
|
+
defaultField?: any | any[] | undefined;
|
|
261
|
+
transform?: ((value: any) => any) | undefined;
|
|
262
|
+
message?: string | ((a?: string | undefined) => string) | undefined;
|
|
263
|
+
asyncValidator?: ((rule: import("async-validator").InternalRuleItem, value: any, callback: (error?: string | Error | undefined) => void, source: import("async-validator").Values, options: import("async-validator").ValidateOption) => void | Promise<void>) | undefined;
|
|
264
|
+
validator?: ((rule: import("async-validator").InternalRuleItem, value: any, callback: (error?: string | Error | undefined) => void, source: import("async-validator").Values, options: import("async-validator").ValidateOption) => void | import("async-validator").SyncValidateResult) | undefined;
|
|
265
|
+
} | {
|
|
266
|
+
type?: import("async-validator").RuleType | undefined;
|
|
267
|
+
required?: boolean | undefined;
|
|
268
|
+
pattern?: string | {
|
|
269
|
+
exec: (string: string) => RegExpExecArray | null;
|
|
270
|
+
test: (string: string) => boolean;
|
|
271
|
+
readonly source: string;
|
|
272
|
+
readonly global: boolean;
|
|
273
|
+
readonly ignoreCase: boolean;
|
|
274
|
+
readonly multiline: boolean;
|
|
275
|
+
lastIndex: number;
|
|
276
|
+
compile: (pattern: string, flags?: string | undefined) => RegExp;
|
|
277
|
+
readonly flags: string;
|
|
278
|
+
readonly sticky: boolean;
|
|
279
|
+
readonly unicode: boolean;
|
|
280
|
+
readonly dotAll: boolean;
|
|
281
|
+
readonly hasIndices: boolean;
|
|
282
|
+
[Symbol.match]: (string: string) => RegExpMatchArray | null;
|
|
283
|
+
[Symbol.replace]: {
|
|
284
|
+
(string: string, replaceValue: string): string;
|
|
285
|
+
(string: string, replacer: (substring: string, ...args: any[]) => string): string;
|
|
286
|
+
};
|
|
287
|
+
[Symbol.search]: (string: string) => number;
|
|
288
|
+
[Symbol.split]: (string: string, limit?: number | undefined) => string[];
|
|
289
|
+
[Symbol.matchAll]: (str: string) => IterableIterator<RegExpMatchArray>;
|
|
290
|
+
} | undefined;
|
|
291
|
+
min?: number | undefined;
|
|
292
|
+
max?: number | undefined;
|
|
293
|
+
len?: number | undefined;
|
|
294
|
+
enum?: (string | number | boolean | null | undefined)[] | undefined;
|
|
295
|
+
whitespace?: boolean | undefined;
|
|
296
|
+
fields?: Record<string, import("async-validator").Rule> | undefined;
|
|
297
|
+
options?: {
|
|
298
|
+
suppressWarning?: boolean | undefined;
|
|
299
|
+
suppressValidatorError?: boolean | undefined;
|
|
300
|
+
first?: boolean | undefined;
|
|
301
|
+
firstFields?: boolean | string[] | undefined;
|
|
302
|
+
messages?: {
|
|
303
|
+
default?: (string | ((...args: unknown[]) => string)) | undefined;
|
|
304
|
+
required?: (string | ((args_0: string | undefined) => string)) | undefined;
|
|
305
|
+
enum?: (string | ((args_0: string | undefined, args_1: string | undefined) => string)) | undefined;
|
|
306
|
+
whitespace?: (string | ((args_0: string | undefined) => string)) | undefined;
|
|
307
|
+
date?: {
|
|
308
|
+
format?: (string | ((...args: unknown[]) => string)) | undefined;
|
|
309
|
+
parse?: (string | ((...args: unknown[]) => string)) | undefined;
|
|
310
|
+
invalid?: (string | ((...args: unknown[]) => string)) | undefined;
|
|
311
|
+
} | undefined;
|
|
312
|
+
types?: {
|
|
313
|
+
string?: (string | ((args_0: string | undefined, args_1: string | undefined) => string)) | undefined;
|
|
314
|
+
method?: (string | ((args_0: string | undefined, args_1: string | undefined) => string)) | undefined;
|
|
315
|
+
array?: (string | ((args_0: string | undefined, args_1: string | undefined) => string)) | undefined;
|
|
316
|
+
object?: (string | ((args_0: string | undefined, args_1: string | undefined) => string)) | undefined;
|
|
317
|
+
number?: (string | ((args_0: string | undefined, args_1: string | undefined) => string)) | undefined;
|
|
318
|
+
date?: (string | ((args_0: string | undefined, args_1: string | undefined) => string)) | undefined;
|
|
319
|
+
boolean?: (string | ((args_0: string | undefined, args_1: string | undefined) => string)) | undefined;
|
|
320
|
+
integer?: (string | ((args_0: string | undefined, args_1: string | undefined) => string)) | undefined;
|
|
321
|
+
float?: (string | ((args_0: string | undefined, args_1: string | undefined) => string)) | undefined;
|
|
322
|
+
regexp?: (string | ((args_0: string | undefined, args_1: string | undefined) => string)) | undefined;
|
|
323
|
+
email?: (string | ((args_0: string | undefined, args_1: string | undefined) => string)) | undefined;
|
|
324
|
+
url?: (string | ((args_0: string | undefined, args_1: string | undefined) => string)) | undefined;
|
|
325
|
+
hex?: (string | ((args_0: string | undefined, args_1: string | undefined) => string)) | undefined;
|
|
326
|
+
} | undefined;
|
|
327
|
+
string?: {
|
|
328
|
+
len?: (string | ((args_0: string | undefined, args_1: number | undefined) => string)) | undefined;
|
|
329
|
+
min?: (string | ((args_0: string | undefined, args_1: number | undefined) => string)) | undefined;
|
|
330
|
+
max?: (string | ((args_0: string | undefined, args_1: number | undefined) => string)) | undefined;
|
|
331
|
+
range?: (string | ((args_0: string | undefined, args_1: number | undefined, args_2: number | undefined) => string)) | undefined;
|
|
332
|
+
} | undefined;
|
|
333
|
+
number?: {
|
|
334
|
+
len?: (string | ((args_0: string | undefined, args_1: number | undefined) => string)) | undefined;
|
|
335
|
+
min?: (string | ((args_0: string | undefined, args_1: number | undefined) => string)) | undefined;
|
|
336
|
+
max?: (string | ((args_0: string | undefined, args_1: number | undefined) => string)) | undefined;
|
|
337
|
+
range?: (string | ((args_0: string | undefined, args_1: number | undefined, args_2: number | undefined) => string)) | undefined;
|
|
338
|
+
} | undefined;
|
|
339
|
+
array?: {
|
|
340
|
+
len?: (string | ((args_0: string | undefined, args_1: number | undefined) => string)) | undefined;
|
|
341
|
+
min?: (string | ((args_0: string | undefined, args_1: number | undefined) => string)) | undefined;
|
|
342
|
+
max?: (string | ((args_0: string | undefined, args_1: number | undefined) => string)) | undefined;
|
|
343
|
+
range?: (string | ((args_0: string | undefined, args_1: number | undefined, args_2: number | undefined) => string)) | undefined;
|
|
344
|
+
} | undefined;
|
|
345
|
+
pattern?: {
|
|
346
|
+
mismatch?: (string | ((args_0: string | undefined, args_1: any, args_2: string | RegExp | undefined) => string)) | undefined;
|
|
347
|
+
} | undefined;
|
|
348
|
+
} | undefined;
|
|
349
|
+
keys?: string[] | undefined;
|
|
350
|
+
error?: ((rule: import("async-validator").InternalRuleItem, message: string) => import("async-validator").ValidateError) | undefined;
|
|
351
|
+
} | undefined;
|
|
352
|
+
defaultField?: any | any[] | undefined;
|
|
353
|
+
transform?: ((value: any) => any) | undefined;
|
|
354
|
+
message?: string | ((a?: string | undefined) => string) | undefined;
|
|
355
|
+
asyncValidator?: ((rule: import("async-validator").InternalRuleItem, value: any, callback: (error?: string | Error | undefined) => void, source: import("async-validator").Values, options: import("async-validator").ValidateOption) => void | Promise<void>) | undefined;
|
|
356
|
+
validator?: ((rule: import("async-validator").InternalRuleItem, value: any, callback: (error?: string | Error | undefined) => void, source: import("async-validator").Values, options: import("async-validator").ValidateOption) => void | import("async-validator").SyncValidateResult) | undefined;
|
|
357
|
+
}[] | undefined;
|
|
358
|
+
transform?: ((value: any) => any) | undefined;
|
|
359
|
+
message?: string | ((a?: string | undefined) => string) | undefined;
|
|
360
|
+
asyncValidator?: ((rule: import("async-validator").InternalRuleItem, value: any, callback: (error?: string | Error | undefined) => void, source: import("async-validator").Values, options: import("async-validator").ValidateOption) => void | Promise<void>) | undefined;
|
|
361
|
+
validator?: ((rule: import("async-validator").InternalRuleItem, value: any, callback: (error?: string | Error | undefined) => void, source: import("async-validator").Values, options: import("async-validator").ValidateOption) => void | import("async-validator").SyncValidateResult) | undefined;
|
|
362
|
+
};
|
|
363
|
+
dataType: import("vue").Ref<ExportDataType>;
|
|
364
|
+
colItems: import("vue").Ref<{
|
|
365
|
+
uid: string;
|
|
366
|
+
label?: string | undefined;
|
|
367
|
+
checked?: boolean | undefined;
|
|
368
|
+
fixed?: string | boolean | undefined;
|
|
369
|
+
children?: any[] | undefined;
|
|
370
|
+
}[]>;
|
|
371
|
+
isCheckAll: import("vue").Ref<boolean>;
|
|
372
|
+
isIndeterminate: import("vue").Ref<boolean>;
|
|
373
|
+
openModal: () => void;
|
|
374
|
+
closeModal: () => void;
|
|
375
|
+
handleExport: () => void;
|
|
376
|
+
onCheckedChange: (item: ColItem, checked: boolean) => void;
|
|
377
|
+
onSortChange: (items: ColItem[], parent?: ColItem) => void;
|
|
378
|
+
onCheckAllChange: (checked: boolean) => void;
|
|
379
|
+
onReset: () => void;
|
|
380
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
381
|
+
/** 提示文字 */
|
|
382
|
+
title: StringConstructor;
|
|
383
|
+
/** 提示位置 */
|
|
384
|
+
placement: PropType<import("element-plus/es/utils/index").EpPropMergeType<StringConstructor, import("element-plus").Placement, unknown> | undefined>;
|
|
385
|
+
/** 全选文字 */
|
|
386
|
+
checkAllText: StringConstructor;
|
|
387
|
+
/** 重置文字 */
|
|
388
|
+
resetText: StringConstructor;
|
|
389
|
+
/** 无标题列文字 */
|
|
390
|
+
untitledText: StringConstructor;
|
|
391
|
+
/** 文件名文字 */
|
|
392
|
+
fileNameText: StringConstructor;
|
|
393
|
+
/** 文件名提示文字 */
|
|
394
|
+
fileNamePlaceholderText: StringConstructor;
|
|
395
|
+
/** 选择数据文字 */
|
|
396
|
+
selectDataText: StringConstructor;
|
|
397
|
+
/** 选择字段文字 */
|
|
398
|
+
selectColumnText: StringConstructor;
|
|
399
|
+
/** 当前页数据文字 */
|
|
400
|
+
dataTypePageText: StringConstructor;
|
|
401
|
+
/** 选中数据文字 */
|
|
402
|
+
dataTypeSelectedText: StringConstructor;
|
|
403
|
+
/** 全部数据文字 */
|
|
404
|
+
dataTypeAllText: StringConstructor;
|
|
405
|
+
/** 取消文字 */
|
|
406
|
+
cancelText: StringConstructor;
|
|
407
|
+
/** 确定文字 */
|
|
408
|
+
okText: StringConstructor;
|
|
409
|
+
/** 弹窗参数 */
|
|
410
|
+
modalProps: PropType<EleModalProps>;
|
|
411
|
+
/** 列数据 */
|
|
412
|
+
columns: PropType<Columns>;
|
|
413
|
+
/** 表格选中数据 */
|
|
414
|
+
selections: PropType<DataItem[]>;
|
|
415
|
+
/** 表格当前页数据 */
|
|
416
|
+
pageData: PropType<DataItem[]>;
|
|
417
|
+
/** 表格全部数据 */
|
|
418
|
+
datasource: PropType<Datasource>;
|
|
419
|
+
/** 单元格合并行列方法 */
|
|
420
|
+
spanMethod: PropType<((data: {
|
|
421
|
+
row: DataItem;
|
|
422
|
+
rowIndex: number;
|
|
423
|
+
/** 确定按钮加载状态 */
|
|
424
|
+
column: import("element-plus/es/components/table/src/table-column/defaults").TableColumnCtx<DataItem>;
|
|
425
|
+
columnIndex: number;
|
|
426
|
+
}) => number[] | {
|
|
427
|
+
rowspan: number;
|
|
428
|
+
colspan: number; /** 表单数据 */
|
|
429
|
+
} | undefined) | undefined>;
|
|
430
|
+
/** 是否显示合计行 */
|
|
431
|
+
showSummary: BooleanConstructor;
|
|
432
|
+
/** 合计行文本 */
|
|
433
|
+
sumText: StringConstructor;
|
|
434
|
+
/** 合计行自定义方法 */
|
|
435
|
+
summaryMethod: PropType<import("element-plus/es/components/table/src/table/defaults").SummaryMethod<DataItem> | undefined>;
|
|
436
|
+
/** 序号列起始索引 */
|
|
437
|
+
pageIndex: NumberConstructor;
|
|
438
|
+
/** 表格请求数据方法 */
|
|
439
|
+
fetch: PropType<FetchFunction>;
|
|
440
|
+
/** 默认文件名 */
|
|
441
|
+
defaultFileName: {
|
|
442
|
+
type: StringConstructor;
|
|
443
|
+
default: string;
|
|
444
|
+
};
|
|
445
|
+
/** 默认数据类型 */
|
|
446
|
+
defaultDataType: {
|
|
447
|
+
type: PropType<ExportDataType>;
|
|
448
|
+
default: string;
|
|
449
|
+
};
|
|
450
|
+
/** 导出前的钩子函数 */
|
|
451
|
+
beforeExport: PropType<BeforeExport>;
|
|
452
|
+
}>>, {
|
|
453
|
+
showSummary: boolean;
|
|
454
|
+
defaultDataType: ExportDataType;
|
|
455
|
+
defaultFileName: string;
|
|
456
|
+
}, {}>;
|
|
457
|
+
export default _default;
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
const vue = require("vue");
|
|
3
|
+
const util = require("../../ele-virtual-table/util");
|
|
4
|
+
const _sfc_main = vue.defineComponent({
|
|
5
|
+
name: "ToolPrintBodyCell",
|
|
6
|
+
components: { CellRender: util.CellRender },
|
|
7
|
+
props: {
|
|
8
|
+
/** 列数据 */
|
|
9
|
+
col: {
|
|
10
|
+
type: Object,
|
|
11
|
+
required: true
|
|
12
|
+
},
|
|
13
|
+
/** 列索引 */
|
|
14
|
+
columnIndex: Number,
|
|
15
|
+
/** 单元格样式 */
|
|
16
|
+
bodyCellStyle: [Object, Function],
|
|
17
|
+
/** 单元格类名自定义 */
|
|
18
|
+
bodyCellClass: [String, Function]
|
|
19
|
+
},
|
|
20
|
+
setup(props, { slots }) {
|
|
21
|
+
const renderOpt = vue.computed(() => {
|
|
22
|
+
const { text, row, column, index: $index } = props.col;
|
|
23
|
+
const params = [{ row, column, $index }];
|
|
24
|
+
if (column && !["expand", "selection", "index"].includes(column.type || "") && column.slot && typeof slots[column.slot] === "function") {
|
|
25
|
+
return { render: slots[column.slot], params };
|
|
26
|
+
}
|
|
27
|
+
return { render: () => text, params };
|
|
28
|
+
});
|
|
29
|
+
const cellParam = vue.computed(() => {
|
|
30
|
+
return {
|
|
31
|
+
column: props.col.column,
|
|
32
|
+
columnIndex: props.columnIndex,
|
|
33
|
+
rowIndex: props.col.index,
|
|
34
|
+
row: props.col.row
|
|
35
|
+
};
|
|
36
|
+
});
|
|
37
|
+
const cellStyle = vue.computed(() => {
|
|
38
|
+
if (typeof props.bodyCellStyle === "function") {
|
|
39
|
+
return props.bodyCellStyle(cellParam.value);
|
|
40
|
+
}
|
|
41
|
+
return props.bodyCellStyle;
|
|
42
|
+
});
|
|
43
|
+
const cellClass = vue.computed(() => {
|
|
44
|
+
const classes = [];
|
|
45
|
+
const column = props.col.column;
|
|
46
|
+
if (column) {
|
|
47
|
+
if (column.align) {
|
|
48
|
+
classes.push("is-align-" + column.align);
|
|
49
|
+
}
|
|
50
|
+
if (typeof props.bodyCellClass === "function") {
|
|
51
|
+
const temp = props.bodyCellClass(cellParam.value);
|
|
52
|
+
if (temp) {
|
|
53
|
+
classes.push(temp);
|
|
54
|
+
}
|
|
55
|
+
} else if (props.bodyCellClass) {
|
|
56
|
+
classes.push(props.bodyCellClass);
|
|
57
|
+
}
|
|
58
|
+
if (column.className) {
|
|
59
|
+
classes.push(column.className);
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
return classes.join(" ");
|
|
63
|
+
});
|
|
64
|
+
return { renderOpt, cellStyle, cellClass };
|
|
65
|
+
}
|
|
66
|
+
});
|
|
67
|
+
const _export_sfc = (sfc, props) => {
|
|
68
|
+
const target = sfc.__vccOpts || sfc;
|
|
69
|
+
for (const [key, val] of props) {
|
|
70
|
+
target[key] = val;
|
|
71
|
+
}
|
|
72
|
+
return target;
|
|
73
|
+
};
|
|
74
|
+
const _hoisted_1 = ["colspan", "rowspan"];
|
|
75
|
+
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
76
|
+
const _component_CellRender = vue.resolveComponent("CellRender");
|
|
77
|
+
return vue.openBlock(), vue.createElementBlock("td", {
|
|
78
|
+
colspan: _ctx.col.colspan,
|
|
79
|
+
rowspan: _ctx.col.rowspan,
|
|
80
|
+
style: vue.normalizeStyle(_ctx.cellStyle),
|
|
81
|
+
class: vue.normalizeClass(_ctx.cellClass)
|
|
82
|
+
}, [
|
|
83
|
+
vue.createVNode(_component_CellRender, vue.normalizeProps(vue.guardReactiveProps(_ctx.renderOpt)), null, 16)
|
|
84
|
+
], 14, _hoisted_1);
|
|
85
|
+
}
|
|
86
|
+
const toolPrintBodyCell = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
87
|
+
module.exports = toolPrintBodyCell;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import type { PropType } from 'vue';
|
|
2
|
+
import { StyleValues } from '../../ele-app/types';
|
|
3
|
+
import type { CustomRenderProps } from '../../ele-virtual-table/types';
|
|
4
|
+
import type { ExportDataItem } from '../types';
|
|
5
|
+
declare const _default: import("vue").DefineComponent<{
|
|
6
|
+
/** 列数据 */
|
|
7
|
+
col: {
|
|
8
|
+
type: PropType<ExportDataItem>;
|
|
9
|
+
required: true;
|
|
10
|
+
};
|
|
11
|
+
/** 列索引 */
|
|
12
|
+
columnIndex: NumberConstructor;
|
|
13
|
+
/** 单元格样式 */
|
|
14
|
+
bodyCellStyle: PropType<import("element-plus/es/components/table/src/table/defaults").CellStyle<import("../types").DataItem> | undefined>;
|
|
15
|
+
/** 单元格类名自定义 */
|
|
16
|
+
bodyCellClass: PropType<import("element-plus/es/components/table/src/table/defaults").CellCls<import("../types").DataItem> | undefined>;
|
|
17
|
+
}, {
|
|
18
|
+
renderOpt: import("vue").ComputedRef<CustomRenderProps>;
|
|
19
|
+
cellStyle: import("vue").ComputedRef<StyleValues | undefined>;
|
|
20
|
+
cellClass: import("vue").ComputedRef<string>;
|
|
21
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
22
|
+
/** 列数据 */
|
|
23
|
+
col: {
|
|
24
|
+
type: PropType<ExportDataItem>;
|
|
25
|
+
required: true;
|
|
26
|
+
};
|
|
27
|
+
/** 列索引 */
|
|
28
|
+
columnIndex: NumberConstructor;
|
|
29
|
+
/** 单元格样式 */
|
|
30
|
+
bodyCellStyle: PropType<import("element-plus/es/components/table/src/table/defaults").CellStyle<import("../types").DataItem> | undefined>;
|
|
31
|
+
/** 单元格类名自定义 */
|
|
32
|
+
bodyCellClass: PropType<import("element-plus/es/components/table/src/table/defaults").CellCls<import("../types").DataItem> | undefined>;
|
|
33
|
+
}>>, {}, {}>;
|
|
34
|
+
export default _default;
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
const vue = require("vue");
|
|
3
|
+
const util = require("../../ele-virtual-table/util");
|
|
4
|
+
const _sfc_main = vue.defineComponent({
|
|
5
|
+
name: "ToolPrintHeaderCell",
|
|
6
|
+
components: { CellRender: util.CellRender },
|
|
7
|
+
props: {
|
|
8
|
+
/** 列数据 */
|
|
9
|
+
col: {
|
|
10
|
+
type: Object,
|
|
11
|
+
required: true
|
|
12
|
+
},
|
|
13
|
+
/** 列索引 */
|
|
14
|
+
columnIndex: Number,
|
|
15
|
+
/** 单元格样式 */
|
|
16
|
+
headerCellStyle: [Object, Function],
|
|
17
|
+
/** 单元格类名自定义 */
|
|
18
|
+
headerCellClass: [String, Function]
|
|
19
|
+
},
|
|
20
|
+
setup(props, { slots }) {
|
|
21
|
+
const renderOpt = vue.computed(() => {
|
|
22
|
+
const { text, column } = props.col;
|
|
23
|
+
const params = [{ column, $index: props.columnIndex }];
|
|
24
|
+
if (column && "index" !== column.type && column.headerSlot && typeof slots[column.headerSlot] === "function") {
|
|
25
|
+
return { render: slots[column.headerSlot], params };
|
|
26
|
+
}
|
|
27
|
+
return { render: () => text, params };
|
|
28
|
+
});
|
|
29
|
+
const cellParam = vue.computed(() => {
|
|
30
|
+
return {
|
|
31
|
+
column: props.col.column,
|
|
32
|
+
columnIndex: props.columnIndex,
|
|
33
|
+
rowIndex: props.col.index
|
|
34
|
+
};
|
|
35
|
+
});
|
|
36
|
+
const cellStyle = vue.computed(() => {
|
|
37
|
+
if (typeof props.headerCellStyle === "function") {
|
|
38
|
+
return props.headerCellStyle(cellParam.value);
|
|
39
|
+
}
|
|
40
|
+
return props.headerCellStyle;
|
|
41
|
+
});
|
|
42
|
+
const cellClass = vue.computed(() => {
|
|
43
|
+
const classes = [];
|
|
44
|
+
const column = props.col.column;
|
|
45
|
+
if (column) {
|
|
46
|
+
const align = column.headerAlign || column.align;
|
|
47
|
+
if (align) {
|
|
48
|
+
classes.push("is-align-" + align);
|
|
49
|
+
}
|
|
50
|
+
if (typeof props.headerCellClass === "function") {
|
|
51
|
+
const temp = props.headerCellClass(cellParam.value);
|
|
52
|
+
if (temp) {
|
|
53
|
+
classes.push(temp);
|
|
54
|
+
}
|
|
55
|
+
} else if (props.headerCellClass) {
|
|
56
|
+
classes.push(props.headerCellClass);
|
|
57
|
+
}
|
|
58
|
+
if (column.labelClassName) {
|
|
59
|
+
classes.push(column.labelClassName);
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
return classes.join(" ");
|
|
63
|
+
});
|
|
64
|
+
return { renderOpt, cellStyle, cellClass };
|
|
65
|
+
}
|
|
66
|
+
});
|
|
67
|
+
const _export_sfc = (sfc, props) => {
|
|
68
|
+
const target = sfc.__vccOpts || sfc;
|
|
69
|
+
for (const [key, val] of props) {
|
|
70
|
+
target[key] = val;
|
|
71
|
+
}
|
|
72
|
+
return target;
|
|
73
|
+
};
|
|
74
|
+
const _hoisted_1 = ["colspan", "rowspan"];
|
|
75
|
+
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
76
|
+
const _component_CellRender = vue.resolveComponent("CellRender");
|
|
77
|
+
return vue.openBlock(), vue.createElementBlock("th", {
|
|
78
|
+
colspan: _ctx.col.colspan,
|
|
79
|
+
rowspan: _ctx.col.rowspan,
|
|
80
|
+
style: vue.normalizeStyle(_ctx.cellStyle),
|
|
81
|
+
class: vue.normalizeClass(_ctx.cellClass)
|
|
82
|
+
}, [
|
|
83
|
+
vue.createVNode(_component_CellRender, vue.normalizeProps(vue.guardReactiveProps(_ctx.renderOpt)), null, 16)
|
|
84
|
+
], 14, _hoisted_1);
|
|
85
|
+
}
|
|
86
|
+
const toolPrintHeaderCell = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
87
|
+
module.exports = toolPrintHeaderCell;
|