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.
Files changed (135) hide show
  1. package/es/ele-app/el.d.ts +6 -1
  2. package/es/ele-app/plus.d.ts +9 -0
  3. package/es/ele-config-provider/index.d.ts +2 -2
  4. package/es/ele-config-provider/props.d.ts +3 -3
  5. package/es/ele-config-provider/props.js +2 -2
  6. package/es/ele-config-provider/types.d.ts +2 -0
  7. package/es/ele-data-table/index.d.ts +2 -2
  8. package/es/ele-data-table/index.js +8 -0
  9. package/es/ele-data-table/style/index.scss +4 -0
  10. package/es/ele-data-table/types.d.ts +10 -0
  11. package/es/ele-data-table/util.d.ts +5 -0
  12. package/es/ele-data-table/util.js +14 -0
  13. package/es/ele-modal/style/index.scss +18 -29
  14. package/es/ele-pagination/index.d.ts +4 -2
  15. package/es/ele-pagination/index.js +17 -5
  16. package/es/ele-pagination/props.d.ts +3 -2
  17. package/es/ele-pagination/props.js +2 -0
  18. package/es/ele-pagination/style/index.scss +9 -0
  19. package/es/ele-pagination/types.d.ts +6 -1
  20. package/es/ele-printer/util.js +1 -1
  21. package/es/ele-pro-table/components/table-tools.d.ts +99 -8
  22. package/es/ele-pro-table/components/table-tools.js +125 -8
  23. package/es/ele-pro-table/components/tool-column-list.js +1 -0
  24. package/es/ele-pro-table/components/tool-column.js +6 -2
  25. package/es/ele-pro-table/components/tool-export.d.ts +457 -0
  26. package/es/ele-pro-table/components/tool-export.js +451 -0
  27. package/es/ele-pro-table/components/tool-print-body-cell.d.ts +34 -0
  28. package/es/ele-pro-table/components/tool-print-body-cell.js +88 -0
  29. package/es/ele-pro-table/components/tool-print-header-cell.d.ts +34 -0
  30. package/es/ele-pro-table/components/tool-print-header-cell.js +88 -0
  31. package/es/ele-pro-table/components/tool-print.d.ts +899 -0
  32. package/es/ele-pro-table/components/tool-print.js +547 -0
  33. package/es/ele-pro-table/index.d.ts +28 -9
  34. package/es/ele-pro-table/index.js +56 -8
  35. package/es/ele-pro-table/props.d.ts +11 -5
  36. package/es/ele-pro-table/props.js +6 -2
  37. package/es/ele-pro-table/style/index.js +9 -0
  38. package/es/ele-pro-table/style/index.scss +33 -5
  39. package/es/ele-pro-table/types.d.ts +147 -5
  40. package/es/ele-pro-table/util.d.ts +47 -3
  41. package/es/ele-pro-table/util.js +119 -13
  42. package/es/ele-table/index.d.ts +3 -0
  43. package/es/ele-table/index.js +2 -1
  44. package/es/ele-table/props.d.ts +2 -0
  45. package/es/ele-table/props.js +3 -1
  46. package/es/ele-table/style/index.scss +35 -0
  47. package/es/ele-tool/index.d.ts +1 -1
  48. package/es/ele-tool/index.js +2 -4
  49. package/es/ele-tool/props.d.ts +7 -0
  50. package/es/ele-tool/props.js +5 -0
  51. package/es/ele-virtual-table/components/body-cell.d.ts +0 -1
  52. package/es/ele-virtual-table/components/body-cell.js +32 -47
  53. package/es/ele-virtual-table/components/footer-row.d.ts +2 -2
  54. package/es/ele-virtual-table/components/footer-row.js +15 -10
  55. package/es/ele-virtual-table/types.d.ts +15 -1
  56. package/es/ele-virtual-table/util.d.ts +26 -3
  57. package/es/ele-virtual-table/util.js +44 -0
  58. package/es/icons/PrinterOutlined.d.ts +2 -0
  59. package/es/icons/PrinterOutlined.js +29 -0
  60. package/es/icons/VerticalLeftOutlined.js +2 -2
  61. package/es/icons/VerticalRightOutlined.js +2 -2
  62. package/es/icons/index.d.ts +1 -0
  63. package/es/icons/index.js +58 -56
  64. package/es/lang/en_US.js +13 -2
  65. package/es/lang/zh_CN.js +13 -2
  66. package/es/lang/zh_TW.js +12 -1
  67. package/es/utils/resolvers.js +2 -2
  68. package/lib/ele-app/el.d.ts +6 -1
  69. package/lib/ele-app/plus.d.ts +9 -0
  70. package/lib/ele-config-provider/index.d.ts +2 -2
  71. package/lib/ele-config-provider/props.cjs +2 -2
  72. package/lib/ele-config-provider/props.d.ts +3 -3
  73. package/lib/ele-config-provider/types.d.ts +2 -0
  74. package/lib/ele-data-table/index.cjs +8 -0
  75. package/lib/ele-data-table/index.d.ts +2 -2
  76. package/lib/ele-data-table/style/index.scss +4 -0
  77. package/lib/ele-data-table/types.d.ts +10 -0
  78. package/lib/ele-data-table/util.cjs +14 -0
  79. package/lib/ele-data-table/util.d.ts +5 -0
  80. package/lib/ele-modal/style/index.scss +18 -29
  81. package/lib/ele-pagination/index.cjs +16 -4
  82. package/lib/ele-pagination/index.d.ts +4 -2
  83. package/lib/ele-pagination/props.cjs +2 -0
  84. package/lib/ele-pagination/props.d.ts +3 -2
  85. package/lib/ele-pagination/style/index.scss +9 -0
  86. package/lib/ele-pagination/types.d.ts +6 -1
  87. package/lib/ele-printer/util.cjs +1 -1
  88. package/lib/ele-pro-table/components/table-tools.cjs +124 -7
  89. package/lib/ele-pro-table/components/table-tools.d.ts +99 -8
  90. package/lib/ele-pro-table/components/tool-column-list.cjs +1 -0
  91. package/lib/ele-pro-table/components/tool-column.cjs +6 -2
  92. package/lib/ele-pro-table/components/tool-export.cjs +450 -0
  93. package/lib/ele-pro-table/components/tool-export.d.ts +457 -0
  94. package/lib/ele-pro-table/components/tool-print-body-cell.cjs +87 -0
  95. package/lib/ele-pro-table/components/tool-print-body-cell.d.ts +34 -0
  96. package/lib/ele-pro-table/components/tool-print-header-cell.cjs +87 -0
  97. package/lib/ele-pro-table/components/tool-print-header-cell.d.ts +34 -0
  98. package/lib/ele-pro-table/components/tool-print.cjs +546 -0
  99. package/lib/ele-pro-table/components/tool-print.d.ts +899 -0
  100. package/lib/ele-pro-table/index.cjs +56 -8
  101. package/lib/ele-pro-table/index.d.ts +28 -9
  102. package/lib/ele-pro-table/props.cjs +6 -2
  103. package/lib/ele-pro-table/props.d.ts +11 -5
  104. package/lib/ele-pro-table/style/index.cjs +9 -0
  105. package/lib/ele-pro-table/style/index.scss +33 -5
  106. package/lib/ele-pro-table/types.d.ts +147 -5
  107. package/lib/ele-pro-table/util.cjs +119 -13
  108. package/lib/ele-pro-table/util.d.ts +47 -3
  109. package/lib/ele-table/index.cjs +2 -1
  110. package/lib/ele-table/index.d.ts +3 -0
  111. package/lib/ele-table/props.cjs +3 -1
  112. package/lib/ele-table/props.d.ts +2 -0
  113. package/lib/ele-table/style/index.scss +35 -0
  114. package/lib/ele-tool/index.cjs +1 -3
  115. package/lib/ele-tool/index.d.ts +1 -1
  116. package/lib/ele-tool/props.cjs +5 -0
  117. package/lib/ele-tool/props.d.ts +7 -0
  118. package/lib/ele-virtual-table/components/body-cell.cjs +31 -46
  119. package/lib/ele-virtual-table/components/body-cell.d.ts +0 -1
  120. package/lib/ele-virtual-table/components/footer-row.cjs +13 -8
  121. package/lib/ele-virtual-table/components/footer-row.d.ts +2 -2
  122. package/lib/ele-virtual-table/types.d.ts +15 -1
  123. package/lib/ele-virtual-table/util.cjs +44 -0
  124. package/lib/ele-virtual-table/util.d.ts +26 -3
  125. package/lib/icons/PrinterOutlined.cjs +28 -0
  126. package/lib/icons/PrinterOutlined.d.ts +2 -0
  127. package/lib/icons/VerticalLeftOutlined.cjs +2 -2
  128. package/lib/icons/VerticalRightOutlined.cjs +2 -2
  129. package/lib/icons/index.cjs +2 -0
  130. package/lib/icons/index.d.ts +1 -0
  131. package/lib/lang/en_US.cjs +13 -2
  132. package/lib/lang/zh_CN.cjs +13 -2
  133. package/lib/lang/zh_TW.cjs +12 -1
  134. package/lib/utils/resolvers.cjs +2 -2
  135. package/package.json +1 -1
@@ -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;