orion-design 0.1.32 → 0.1.34
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/Throne/hooks/use-throne-context.d.ts +5 -0
- package/dist/Throne/hooks/use-throne-context.js +15 -0
- package/dist/Throne/hooks/use-throne-context.js.map +1 -0
- package/dist/Throne/index.d.ts +1 -1
- package/dist/Throne/index.js +3 -3
- package/dist/Throne/index.js.map +1 -1
- package/dist/components/Button/ButtonGroup/ButtonGroup.d.ts +2 -0
- package/dist/components/Button/index.js +19 -17
- package/dist/components/Button/index.js.map +1 -1
- package/dist/components/Form/FileInput/FileInput.vue.d.ts +4 -4
- package/dist/components/Form/LovInput/LovInput.vue.d.ts +894 -0
- package/dist/components/Form/MultiTableSelect/MultiTableSelect.d.ts +26 -0
- package/dist/components/Form/MultiTableSelect/MultiTableSelect.js +5 -0
- package/dist/components/Form/MultiTableSelect/MultiTableSelect.js.map +1 -0
- package/dist/components/Form/MultiTableSelect/MultiTableSelect.vue.d.ts +6249 -0
- package/dist/components/Form/MultiTableSelect/hooks/useMultiTableSelect.d.ts +1 -0
- package/dist/components/Form/MultiTableSelect/hooks/useMultiTableSelect.js +9 -0
- package/dist/components/Form/MultiTableSelect/hooks/useMultiTableSelect.js.map +1 -0
- package/dist/components/Form/MultiTableSelect/index.d.ts +2 -0
- package/dist/components/Form/MultiTableSelect/index.js +7 -0
- package/dist/components/Form/MultiTableSelect/index.js.map +1 -0
- package/dist/components/Form/hooks/index.js +46 -45
- package/dist/components/Form/hooks/index.js.map +1 -1
- package/dist/components/Form/index.d.ts +3 -0
- package/dist/components/Form/index.js +542 -401
- package/dist/components/Form/index.js.map +1 -1
- package/dist/components/LovTable/LovPagetable.vue.d.ts +24 -6
- package/dist/components/LovTable/LovQuerytable.vue.d.ts +468 -4
- package/dist/components/LovTable/index.d.ts +246 -5
- package/dist/components/LovTable/index.js +11 -13
- package/dist/components/LovTable/index.js.map +1 -1
- package/dist/components/MultiTableSelectPagetable/MultiTableSelectPagetable.vue.d.ts +886 -0
- package/dist/components/MultiTableSelectPagetable/index.d.ts +465 -0
- package/dist/components/MultiTableSelectPagetable/index.js +164 -0
- package/dist/components/MultiTableSelectPagetable/index.js.map +1 -0
- package/dist/components/Pagetable/Pagetable.d.ts +5 -2
- package/dist/components/Pagetable/columns/PagetableColumnButtongroup.d.ts +1 -1
- package/dist/components/Pagetable/columns/PagetableColumnDate.d.ts +1 -1
- package/dist/components/Pagetable/columns/PagetableColumnDiy.d.ts +1 -1
- package/dist/components/Pagetable/columns/PagetableColumnLink.d.ts +1 -1
- package/dist/components/Pagetable/columns/PagetableColumnMultiselect.d.ts +1 -1
- package/dist/components/Pagetable/columns/PagetableColumnNumber.d.ts +1 -1
- package/dist/components/Pagetable/columns/PagetableColumnSingleselect.d.ts +1 -1
- package/dist/components/Pagetable/columns/PagetableColumnString.d.ts +1 -1
- package/dist/components/Pagetable/hooks/useCode.d.ts +2 -0
- package/dist/components/Pagetable/hooks/useCode.js +24 -0
- package/dist/components/Pagetable/hooks/useCode.js.map +1 -0
- package/dist/components/Pagetable/index.d.ts +5 -2
- package/dist/components/Pagetable/index.js +347 -340
- package/dist/components/Pagetable/index.js.map +1 -1
- package/dist/components/Querytable/Querytable.d.ts +80 -2
- package/dist/components/Querytable/columns/QuerytableColumnButtongroup.d.ts +14 -1
- package/dist/components/Querytable/columns/QuerytableColumnDate.d.ts +14 -1
- package/dist/components/Querytable/columns/QuerytableColumnDiy.d.ts +1 -1
- package/dist/components/Querytable/columns/QuerytableColumnLink.d.ts +14 -1
- package/dist/components/Querytable/columns/QuerytableColumnMultiselect.d.ts +14 -1
- package/dist/components/Querytable/columns/QuerytableColumnNumber.d.ts +14 -1
- package/dist/components/Querytable/columns/QuerytableColumnSingleselect.d.ts +14 -1
- package/dist/components/Querytable/columns/QuerytableColumnString.d.ts +14 -1
- package/dist/components/Querytable/hooks/useColumns.js +16 -11
- package/dist/components/Querytable/hooks/useColumns.js.map +1 -1
- package/dist/components/Querytable/index.d.ts +147 -1
- package/dist/components/Querytable/index.js +404 -347
- package/dist/components/Querytable/index.js.map +1 -1
- package/dist/components/Tabs/index.js +1 -1
- package/dist/components/Throne/ThroneContextProvider.d.ts +25 -0
- package/dist/components/_util/vue/icon.js +1 -1
- package/dist/components/components.d.ts +2 -0
- package/dist/components/components.js +22 -18
- package/dist/components/components.js.map +1 -1
- package/dist/components/index.js +41 -33
- package/dist/components/index.js.map +1 -1
- package/dist/components-DP9bnDLm.js +48 -0
- package/dist/components-DP9bnDLm.js.map +1 -0
- package/dist/{index-C6P_0wAy.js → index-ChkLOmNK.js} +76 -46
- package/dist/{index-C6P_0wAy.js.map → index-ChkLOmNK.js.map} +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +41 -31
- package/dist/index.js.map +1 -1
- package/dist/version/version.d.ts +1 -1
- package/dist/version/version.js +1 -1
- package/dist/version/version.js.map +1 -1
- package/package.json +1 -1
- package/dist/components-8oZ2kpUC.js +0 -27
- package/dist/components-8oZ2kpUC.js.map +0 -1
@@ -0,0 +1,465 @@
|
|
1
|
+
declare const _default: import('../_util').SFCWithInstall<{
|
2
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
|
3
|
+
data: any[];
|
4
|
+
width: number | string;
|
5
|
+
height: number | string;
|
6
|
+
}> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & Readonly<{
|
7
|
+
data: any[];
|
8
|
+
width: number | string;
|
9
|
+
height: number | string;
|
10
|
+
}> & Readonly<{}>, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
|
11
|
+
table: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
|
12
|
+
data: {
|
13
|
+
type: import('vue').PropType<any[]>;
|
14
|
+
default: any[];
|
15
|
+
};
|
16
|
+
tailData: {
|
17
|
+
type: import('vue').PropType<Record<string, any>>;
|
18
|
+
default: Record<string, any>;
|
19
|
+
};
|
20
|
+
pagination: {
|
21
|
+
type: import('vue').PropType<{
|
22
|
+
currentPage?: number;
|
23
|
+
pageSize?: number;
|
24
|
+
pageSizes?: number[];
|
25
|
+
total?: number;
|
26
|
+
}>;
|
27
|
+
default: {
|
28
|
+
currentPage?: number;
|
29
|
+
pageSize?: number;
|
30
|
+
pageSizes?: number[];
|
31
|
+
total?: number;
|
32
|
+
};
|
33
|
+
};
|
34
|
+
paginationTeleported: {
|
35
|
+
type: BooleanConstructor;
|
36
|
+
default: boolean;
|
37
|
+
};
|
38
|
+
showRowNumber: {
|
39
|
+
type: BooleanConstructor;
|
40
|
+
default: boolean;
|
41
|
+
};
|
42
|
+
selectionMode: {
|
43
|
+
type: BooleanConstructor;
|
44
|
+
default: boolean;
|
45
|
+
};
|
46
|
+
currentRowMode: {
|
47
|
+
type: BooleanConstructor;
|
48
|
+
default: boolean;
|
49
|
+
};
|
50
|
+
size: {
|
51
|
+
type: import('vue').PropType<"" | "small" | "default" | "large">;
|
52
|
+
default: "" | "small" | "default" | "large";
|
53
|
+
};
|
54
|
+
rowClassName: {
|
55
|
+
type: import('vue').PropType<string | ((data: {
|
56
|
+
rowData: any;
|
57
|
+
rowIndex: number;
|
58
|
+
}) => string)>;
|
59
|
+
default: string | ((data: {
|
60
|
+
rowData: any;
|
61
|
+
rowIndex: number;
|
62
|
+
}) => string);
|
63
|
+
};
|
64
|
+
rowStyle: {
|
65
|
+
type: import('vue').PropType<import('vue').CSSProperties | ((data: {
|
66
|
+
rowData: any;
|
67
|
+
rowIndex: number;
|
68
|
+
}) => import('vue').CSSProperties)>;
|
69
|
+
default: import('vue').CSSProperties | ((data: {
|
70
|
+
rowData: any;
|
71
|
+
rowIndex: number;
|
72
|
+
}) => import('vue').CSSProperties);
|
73
|
+
};
|
74
|
+
cellClassName: {
|
75
|
+
type: import('vue').PropType<string | ((data: {
|
76
|
+
rowData: any;
|
77
|
+
column: {
|
78
|
+
name: string;
|
79
|
+
head: string;
|
80
|
+
};
|
81
|
+
rowIndex: number;
|
82
|
+
columnIndex: number;
|
83
|
+
}) => string)>;
|
84
|
+
default: string | ((data: {
|
85
|
+
rowData: any;
|
86
|
+
column: {
|
87
|
+
name: string;
|
88
|
+
head: string;
|
89
|
+
};
|
90
|
+
rowIndex: number;
|
91
|
+
columnIndex: number;
|
92
|
+
}) => string);
|
93
|
+
};
|
94
|
+
cellStyle: {
|
95
|
+
type: import('vue').PropType<import('vue').CSSProperties | ((data: {
|
96
|
+
rowData: any;
|
97
|
+
column: {
|
98
|
+
name: string;
|
99
|
+
head: string;
|
100
|
+
};
|
101
|
+
rowIndex: number;
|
102
|
+
columnIndex: number;
|
103
|
+
}) => import('vue').CSSProperties)>;
|
104
|
+
default: import('vue').CSSProperties | ((data: {
|
105
|
+
rowData: any;
|
106
|
+
column: {
|
107
|
+
name: string;
|
108
|
+
head: string;
|
109
|
+
};
|
110
|
+
rowIndex: number;
|
111
|
+
columnIndex: number;
|
112
|
+
}) => import('vue').CSSProperties);
|
113
|
+
};
|
114
|
+
}>> & Readonly<{
|
115
|
+
onSelect?: ((...args: any[]) => any) | undefined;
|
116
|
+
"onSelect-all"?: ((...args: any[]) => any) | undefined;
|
117
|
+
onSelectionChange?: ((...args: any[]) => any) | undefined;
|
118
|
+
onCurrentRowChange?: ((...args: any[]) => any) | undefined;
|
119
|
+
"onUpdate:pagination"?: ((...args: any[]) => any) | undefined;
|
120
|
+
onPaginationChange?: ((...args: any[]) => any) | undefined;
|
121
|
+
onRowClick?: ((...args: any[]) => any) | undefined;
|
122
|
+
onRowDblclick?: ((...args: any[]) => any) | undefined;
|
123
|
+
onCellClick?: ((...args: any[]) => any) | undefined;
|
124
|
+
onCellDblclick?: ((...args: any[]) => any) | undefined;
|
125
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, ("select" | "select-all" | "selectionChange" | "currentRowChange" | "update:pagination" | "paginationChange" | "rowClick" | "rowDblclick" | "cellClick" | "cellDblclick")[], import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & Readonly<import('vue').ExtractPropTypes<{
|
126
|
+
data: {
|
127
|
+
type: import('vue').PropType<any[]>;
|
128
|
+
default: any[];
|
129
|
+
};
|
130
|
+
tailData: {
|
131
|
+
type: import('vue').PropType<Record<string, any>>;
|
132
|
+
default: Record<string, any>;
|
133
|
+
};
|
134
|
+
pagination: {
|
135
|
+
type: import('vue').PropType<{
|
136
|
+
currentPage?: number;
|
137
|
+
pageSize?: number;
|
138
|
+
pageSizes?: number[];
|
139
|
+
total?: number;
|
140
|
+
}>;
|
141
|
+
default: {
|
142
|
+
currentPage?: number;
|
143
|
+
pageSize?: number;
|
144
|
+
pageSizes?: number[];
|
145
|
+
total?: number;
|
146
|
+
};
|
147
|
+
};
|
148
|
+
paginationTeleported: {
|
149
|
+
type: BooleanConstructor;
|
150
|
+
default: boolean;
|
151
|
+
};
|
152
|
+
showRowNumber: {
|
153
|
+
type: BooleanConstructor;
|
154
|
+
default: boolean;
|
155
|
+
};
|
156
|
+
selectionMode: {
|
157
|
+
type: BooleanConstructor;
|
158
|
+
default: boolean;
|
159
|
+
};
|
160
|
+
currentRowMode: {
|
161
|
+
type: BooleanConstructor;
|
162
|
+
default: boolean;
|
163
|
+
};
|
164
|
+
size: {
|
165
|
+
type: import('vue').PropType<"" | "small" | "default" | "large">;
|
166
|
+
default: "" | "small" | "default" | "large";
|
167
|
+
};
|
168
|
+
rowClassName: {
|
169
|
+
type: import('vue').PropType<string | ((data: {
|
170
|
+
rowData: any;
|
171
|
+
rowIndex: number;
|
172
|
+
}) => string)>;
|
173
|
+
default: string | ((data: {
|
174
|
+
rowData: any;
|
175
|
+
rowIndex: number;
|
176
|
+
}) => string);
|
177
|
+
};
|
178
|
+
rowStyle: {
|
179
|
+
type: import('vue').PropType<import('vue').CSSProperties | ((data: {
|
180
|
+
rowData: any;
|
181
|
+
rowIndex: number;
|
182
|
+
}) => import('vue').CSSProperties)>;
|
183
|
+
default: import('vue').CSSProperties | ((data: {
|
184
|
+
rowData: any;
|
185
|
+
rowIndex: number;
|
186
|
+
}) => import('vue').CSSProperties);
|
187
|
+
};
|
188
|
+
cellClassName: {
|
189
|
+
type: import('vue').PropType<string | ((data: {
|
190
|
+
rowData: any;
|
191
|
+
column: {
|
192
|
+
name: string;
|
193
|
+
head: string;
|
194
|
+
};
|
195
|
+
rowIndex: number;
|
196
|
+
columnIndex: number;
|
197
|
+
}) => string)>;
|
198
|
+
default: string | ((data: {
|
199
|
+
rowData: any;
|
200
|
+
column: {
|
201
|
+
name: string;
|
202
|
+
head: string;
|
203
|
+
};
|
204
|
+
rowIndex: number;
|
205
|
+
columnIndex: number;
|
206
|
+
}) => string);
|
207
|
+
};
|
208
|
+
cellStyle: {
|
209
|
+
type: import('vue').PropType<import('vue').CSSProperties | ((data: {
|
210
|
+
rowData: any;
|
211
|
+
column: {
|
212
|
+
name: string;
|
213
|
+
head: string;
|
214
|
+
};
|
215
|
+
rowIndex: number;
|
216
|
+
columnIndex: number;
|
217
|
+
}) => import('vue').CSSProperties)>;
|
218
|
+
default: import('vue').CSSProperties | ((data: {
|
219
|
+
rowData: any;
|
220
|
+
column: {
|
221
|
+
name: string;
|
222
|
+
head: string;
|
223
|
+
};
|
224
|
+
rowIndex: number;
|
225
|
+
columnIndex: number;
|
226
|
+
}) => import('vue').CSSProperties);
|
227
|
+
};
|
228
|
+
}>> & Readonly<{
|
229
|
+
onSelect?: ((...args: any[]) => any) | undefined;
|
230
|
+
"onSelect-all"?: ((...args: any[]) => any) | undefined;
|
231
|
+
onSelectionChange?: ((...args: any[]) => any) | undefined;
|
232
|
+
onCurrentRowChange?: ((...args: any[]) => any) | undefined;
|
233
|
+
"onUpdate:pagination"?: ((...args: any[]) => any) | undefined;
|
234
|
+
onPaginationChange?: ((...args: any[]) => any) | undefined;
|
235
|
+
onRowClick?: ((...args: any[]) => any) | undefined;
|
236
|
+
onRowDblclick?: ((...args: any[]) => any) | undefined;
|
237
|
+
onCellClick?: ((...args: any[]) => any) | undefined;
|
238
|
+
onCellDblclick?: ((...args: any[]) => any) | undefined;
|
239
|
+
}>, {
|
240
|
+
size: "" | "small" | "default" | "large";
|
241
|
+
data: any[];
|
242
|
+
pagination: {
|
243
|
+
currentPage?: number;
|
244
|
+
pageSize?: number;
|
245
|
+
pageSizes?: number[];
|
246
|
+
total?: number;
|
247
|
+
};
|
248
|
+
tailData: Record<string, any>;
|
249
|
+
paginationTeleported: boolean;
|
250
|
+
showRowNumber: boolean;
|
251
|
+
selectionMode: boolean;
|
252
|
+
currentRowMode: boolean;
|
253
|
+
rowClassName: string | ((data: {
|
254
|
+
rowData: any;
|
255
|
+
rowIndex: number;
|
256
|
+
}) => string);
|
257
|
+
rowStyle: import('vue').CSSProperties | ((data: {
|
258
|
+
rowData: any;
|
259
|
+
rowIndex: number;
|
260
|
+
}) => import('vue').CSSProperties);
|
261
|
+
cellClassName: string | ((data: {
|
262
|
+
rowData: any;
|
263
|
+
column: {
|
264
|
+
name: string;
|
265
|
+
head: string;
|
266
|
+
};
|
267
|
+
rowIndex: number;
|
268
|
+
columnIndex: number;
|
269
|
+
}) => string);
|
270
|
+
cellStyle: import('vue').CSSProperties | ((data: {
|
271
|
+
rowData: any;
|
272
|
+
column: {
|
273
|
+
name: string;
|
274
|
+
head: string;
|
275
|
+
};
|
276
|
+
rowIndex: number;
|
277
|
+
columnIndex: number;
|
278
|
+
}) => import('vue').CSSProperties);
|
279
|
+
}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
280
|
+
P: {};
|
281
|
+
B: {};
|
282
|
+
D: {};
|
283
|
+
C: {};
|
284
|
+
M: {};
|
285
|
+
Defaults: {};
|
286
|
+
}, Readonly<import('vue').ExtractPropTypes<{
|
287
|
+
data: {
|
288
|
+
type: import('vue').PropType<any[]>;
|
289
|
+
default: any[];
|
290
|
+
};
|
291
|
+
tailData: {
|
292
|
+
type: import('vue').PropType<Record<string, any>>;
|
293
|
+
default: Record<string, any>;
|
294
|
+
};
|
295
|
+
pagination: {
|
296
|
+
type: import('vue').PropType<{
|
297
|
+
currentPage?: number;
|
298
|
+
pageSize?: number;
|
299
|
+
pageSizes?: number[];
|
300
|
+
total?: number;
|
301
|
+
}>;
|
302
|
+
default: {
|
303
|
+
currentPage?: number;
|
304
|
+
pageSize?: number;
|
305
|
+
pageSizes?: number[];
|
306
|
+
total?: number;
|
307
|
+
};
|
308
|
+
};
|
309
|
+
paginationTeleported: {
|
310
|
+
type: BooleanConstructor;
|
311
|
+
default: boolean;
|
312
|
+
};
|
313
|
+
showRowNumber: {
|
314
|
+
type: BooleanConstructor;
|
315
|
+
default: boolean;
|
316
|
+
};
|
317
|
+
selectionMode: {
|
318
|
+
type: BooleanConstructor;
|
319
|
+
default: boolean;
|
320
|
+
};
|
321
|
+
currentRowMode: {
|
322
|
+
type: BooleanConstructor;
|
323
|
+
default: boolean;
|
324
|
+
};
|
325
|
+
size: {
|
326
|
+
type: import('vue').PropType<"" | "small" | "default" | "large">;
|
327
|
+
default: "" | "small" | "default" | "large";
|
328
|
+
};
|
329
|
+
rowClassName: {
|
330
|
+
type: import('vue').PropType<string | ((data: {
|
331
|
+
rowData: any;
|
332
|
+
rowIndex: number;
|
333
|
+
}) => string)>;
|
334
|
+
default: string | ((data: {
|
335
|
+
rowData: any;
|
336
|
+
rowIndex: number;
|
337
|
+
}) => string);
|
338
|
+
};
|
339
|
+
rowStyle: {
|
340
|
+
type: import('vue').PropType<import('vue').CSSProperties | ((data: {
|
341
|
+
rowData: any;
|
342
|
+
rowIndex: number;
|
343
|
+
}) => import('vue').CSSProperties)>;
|
344
|
+
default: import('vue').CSSProperties | ((data: {
|
345
|
+
rowData: any;
|
346
|
+
rowIndex: number;
|
347
|
+
}) => import('vue').CSSProperties);
|
348
|
+
};
|
349
|
+
cellClassName: {
|
350
|
+
type: import('vue').PropType<string | ((data: {
|
351
|
+
rowData: any;
|
352
|
+
column: {
|
353
|
+
name: string;
|
354
|
+
head: string;
|
355
|
+
};
|
356
|
+
rowIndex: number;
|
357
|
+
columnIndex: number;
|
358
|
+
}) => string)>;
|
359
|
+
default: string | ((data: {
|
360
|
+
rowData: any;
|
361
|
+
column: {
|
362
|
+
name: string;
|
363
|
+
head: string;
|
364
|
+
};
|
365
|
+
rowIndex: number;
|
366
|
+
columnIndex: number;
|
367
|
+
}) => string);
|
368
|
+
};
|
369
|
+
cellStyle: {
|
370
|
+
type: import('vue').PropType<import('vue').CSSProperties | ((data: {
|
371
|
+
rowData: any;
|
372
|
+
column: {
|
373
|
+
name: string;
|
374
|
+
head: string;
|
375
|
+
};
|
376
|
+
rowIndex: number;
|
377
|
+
columnIndex: number;
|
378
|
+
}) => import('vue').CSSProperties)>;
|
379
|
+
default: import('vue').CSSProperties | ((data: {
|
380
|
+
rowData: any;
|
381
|
+
column: {
|
382
|
+
name: string;
|
383
|
+
head: string;
|
384
|
+
};
|
385
|
+
rowIndex: number;
|
386
|
+
columnIndex: number;
|
387
|
+
}) => import('vue').CSSProperties);
|
388
|
+
};
|
389
|
+
}>> & Readonly<{
|
390
|
+
onSelect?: ((...args: any[]) => any) | undefined;
|
391
|
+
"onSelect-all"?: ((...args: any[]) => any) | undefined;
|
392
|
+
onSelectionChange?: ((...args: any[]) => any) | undefined;
|
393
|
+
onCurrentRowChange?: ((...args: any[]) => any) | undefined;
|
394
|
+
"onUpdate:pagination"?: ((...args: any[]) => any) | undefined;
|
395
|
+
onPaginationChange?: ((...args: any[]) => any) | undefined;
|
396
|
+
onRowClick?: ((...args: any[]) => any) | undefined;
|
397
|
+
onRowDblclick?: ((...args: any[]) => any) | undefined;
|
398
|
+
onCellClick?: ((...args: any[]) => any) | undefined;
|
399
|
+
onCellDblclick?: ((...args: any[]) => any) | undefined;
|
400
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, {
|
401
|
+
size: "" | "small" | "default" | "large";
|
402
|
+
data: any[];
|
403
|
+
pagination: {
|
404
|
+
currentPage?: number;
|
405
|
+
pageSize?: number;
|
406
|
+
pageSizes?: number[];
|
407
|
+
total?: number;
|
408
|
+
};
|
409
|
+
tailData: Record<string, any>;
|
410
|
+
paginationTeleported: boolean;
|
411
|
+
showRowNumber: boolean;
|
412
|
+
selectionMode: boolean;
|
413
|
+
currentRowMode: boolean;
|
414
|
+
rowClassName: string | ((data: {
|
415
|
+
rowData: any;
|
416
|
+
rowIndex: number;
|
417
|
+
}) => string);
|
418
|
+
rowStyle: import('vue').CSSProperties | ((data: {
|
419
|
+
rowData: any;
|
420
|
+
rowIndex: number;
|
421
|
+
}) => import('vue').CSSProperties);
|
422
|
+
cellClassName: string | ((data: {
|
423
|
+
rowData: any;
|
424
|
+
column: {
|
425
|
+
name: string;
|
426
|
+
head: string;
|
427
|
+
};
|
428
|
+
rowIndex: number;
|
429
|
+
columnIndex: number;
|
430
|
+
}) => string);
|
431
|
+
cellStyle: import('vue').CSSProperties | ((data: {
|
432
|
+
rowData: any;
|
433
|
+
column: {
|
434
|
+
name: string;
|
435
|
+
head: string;
|
436
|
+
};
|
437
|
+
rowIndex: number;
|
438
|
+
columnIndex: number;
|
439
|
+
}) => import('vue').CSSProperties);
|
440
|
+
}> | null;
|
441
|
+
}, any, import('vue').ComponentProvideOptions, {
|
442
|
+
P: {};
|
443
|
+
B: {};
|
444
|
+
D: {};
|
445
|
+
C: {};
|
446
|
+
M: {};
|
447
|
+
Defaults: {};
|
448
|
+
}, Readonly<{
|
449
|
+
data: any[];
|
450
|
+
width: number | string;
|
451
|
+
height: number | string;
|
452
|
+
}> & Readonly<{}>, {}, {}, {}, {}, {}>;
|
453
|
+
__isFragment?: never;
|
454
|
+
__isTeleport?: never;
|
455
|
+
__isSuspense?: never;
|
456
|
+
} & import('vue').ComponentOptionsBase<Readonly<{
|
457
|
+
data: any[];
|
458
|
+
width: number | string;
|
459
|
+
height: number | string;
|
460
|
+
}> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
461
|
+
$slots: {
|
462
|
+
default?(_: {}): any;
|
463
|
+
};
|
464
|
+
})> & {};
|
465
|
+
export default _default;
|
@@ -0,0 +1,164 @@
|
|
1
|
+
import { intersectionWith as b, isEqual as S, find as c, remove as x } from "lodash-es";
|
2
|
+
import { defineComponent as I, computed as y, useTemplateRef as L, ref as O, watch as k, nextTick as U, resolveComponent as u, openBlock as f, createBlock as w, normalizeStyle as W, withCtx as l, createVNode as n, unref as r, createElementBlock as m, Fragment as E, renderList as T, createTextVNode as d, toDisplayString as C, mergeProps as j, renderSlot as G } from "vue";
|
3
|
+
import { withInstall as H } from "../_util/vue/install.js";
|
4
|
+
import { ElTooltip as J, ElTag as z, ElScrollbar as K } from "element-plus";
|
5
|
+
import Q from "../Pagetable/index.js";
|
6
|
+
import { addUnit as P } from "../_util/dom/style.js";
|
7
|
+
import X from "../Form/MultiTableSelect/hooks/useMultiTableSelect.js";
|
8
|
+
const Y = { style: { margin: "5px", display: "inline-block" } }, Z = /* @__PURE__ */ I({
|
9
|
+
name: "OTableselectPagetable",
|
10
|
+
inheritAttrs: !0,
|
11
|
+
__name: "MultiTableSelectPagetable",
|
12
|
+
props: {
|
13
|
+
data: {},
|
14
|
+
width: { default: 600 },
|
15
|
+
height: { default: 300 }
|
16
|
+
},
|
17
|
+
setup(i) {
|
18
|
+
const R = y(() => ({
|
19
|
+
width: P(i.width),
|
20
|
+
height: P(i.height)
|
21
|
+
})), g = L("table"), o = O([]), h = y(() => o.value.map((a) => e == null ? void 0 : e.tag(a))), B = (a, t) => {
|
22
|
+
c(a, t) ? c(o.value, t) || o.value.push(t) : c(o.value, t) && x(o.value, t), e == null || e.onSelect(o.value);
|
23
|
+
}, D = (a) => {
|
24
|
+
a.length > 0 ? a.forEach((t) => {
|
25
|
+
c(o.value, t) || o.value.push(t);
|
26
|
+
}) : x(o.value, (t) => c(i.data, t)), e == null || e.onSelect(o.value);
|
27
|
+
}, e = X(), A = () => {
|
28
|
+
e == null || e.selectDone();
|
29
|
+
}, M = () => {
|
30
|
+
N(), o.value = [], e == null || e.onSelect([], !0);
|
31
|
+
};
|
32
|
+
k(
|
33
|
+
() => i.data,
|
34
|
+
async () => {
|
35
|
+
i.data.length > 0 && (await U(), v());
|
36
|
+
}
|
37
|
+
), k(() => e == null ? void 0 : e.selection, () => {
|
38
|
+
e != null && e.selection && e.selection.length > 0 && (o.value = e.selection, v());
|
39
|
+
});
|
40
|
+
const v = () => {
|
41
|
+
b(i.data, o.value, S).forEach((t) => {
|
42
|
+
g.value.toggleRowSelection(t, !0);
|
43
|
+
});
|
44
|
+
}, N = () => {
|
45
|
+
b(i.data, o.value, S).forEach((t) => {
|
46
|
+
g.value.toggleRowSelection(t, !1);
|
47
|
+
});
|
48
|
+
};
|
49
|
+
return (a, t) => {
|
50
|
+
const V = u("o-space"), s = u("o-flexitem"), _ = u("o-button"), $ = u("o-buttongroup"), q = u("o-rowflex"), F = u("o-colflex");
|
51
|
+
return f(), w(F, {
|
52
|
+
style: W(R.value)
|
53
|
+
}, {
|
54
|
+
default: l(() => [
|
55
|
+
n(s, { "flex-basic": "need" }, {
|
56
|
+
default: l(() => [
|
57
|
+
n(q, null, {
|
58
|
+
default: l(() => [
|
59
|
+
n(s, { style: { overflow: "hidden", padding: "5px" } }, {
|
60
|
+
default: l(() => [
|
61
|
+
n(r(J), {
|
62
|
+
effect: "light",
|
63
|
+
teleported: !1
|
64
|
+
}, {
|
65
|
+
default: l(() => [
|
66
|
+
n(V, null, {
|
67
|
+
default: l(() => [
|
68
|
+
(f(!0), m(E, null, T(h.value, (p) => (f(), w(r(z), { type: "info" }, {
|
69
|
+
default: l(() => [
|
70
|
+
d(C(p), 1)
|
71
|
+
]),
|
72
|
+
_: 2
|
73
|
+
}, 1024))), 256))
|
74
|
+
]),
|
75
|
+
_: 1
|
76
|
+
})
|
77
|
+
]),
|
78
|
+
content: l(() => [
|
79
|
+
n(r(K), { "max-height": "100" }, {
|
80
|
+
default: l(() => [
|
81
|
+
(f(!0), m(E, null, T(h.value, (p) => (f(), m("div", Y, [
|
82
|
+
n(r(z), { type: "info" }, {
|
83
|
+
default: l(() => [
|
84
|
+
d(C(p), 1)
|
85
|
+
]),
|
86
|
+
_: 2
|
87
|
+
}, 1024)
|
88
|
+
]))), 256))
|
89
|
+
]),
|
90
|
+
_: 1
|
91
|
+
})
|
92
|
+
]),
|
93
|
+
_: 1
|
94
|
+
})
|
95
|
+
]),
|
96
|
+
_: 1
|
97
|
+
}),
|
98
|
+
n(s, {
|
99
|
+
"flex-basic": "need",
|
100
|
+
style: { padding: "5px" }
|
101
|
+
}, {
|
102
|
+
default: l(() => [
|
103
|
+
n($, null, {
|
104
|
+
default: l(() => [
|
105
|
+
n(_, {
|
106
|
+
type: "primary",
|
107
|
+
size: "small",
|
108
|
+
onClick: A
|
109
|
+
}, {
|
110
|
+
default: l(() => t[0] || (t[0] = [
|
111
|
+
d("确定")
|
112
|
+
])),
|
113
|
+
_: 1
|
114
|
+
}),
|
115
|
+
n(_, {
|
116
|
+
size: "small",
|
117
|
+
onClick: M
|
118
|
+
}, {
|
119
|
+
default: l(() => t[1] || (t[1] = [
|
120
|
+
d("清空")
|
121
|
+
])),
|
122
|
+
_: 1
|
123
|
+
})
|
124
|
+
]),
|
125
|
+
_: 1
|
126
|
+
})
|
127
|
+
]),
|
128
|
+
_: 1
|
129
|
+
})
|
130
|
+
]),
|
131
|
+
_: 1
|
132
|
+
})
|
133
|
+
]),
|
134
|
+
_: 1
|
135
|
+
}),
|
136
|
+
n(s, null, {
|
137
|
+
default: l(() => [
|
138
|
+
n(r(Q), j({
|
139
|
+
ref: "table",
|
140
|
+
data: a.data,
|
141
|
+
"selection-mode": "",
|
142
|
+
size: "small",
|
143
|
+
"pagination-teleported": !1,
|
144
|
+
onSelect: B,
|
145
|
+
onSelectAll: D
|
146
|
+
}, a.$attrs), {
|
147
|
+
default: l(() => [
|
148
|
+
G(a.$slots, "default")
|
149
|
+
]),
|
150
|
+
_: 3
|
151
|
+
}, 16, ["data"])
|
152
|
+
]),
|
153
|
+
_: 3
|
154
|
+
})
|
155
|
+
]),
|
156
|
+
_: 3
|
157
|
+
}, 8, ["style"]);
|
158
|
+
};
|
159
|
+
}
|
160
|
+
}), ue = H(Z, {});
|
161
|
+
export {
|
162
|
+
ue as default
|
163
|
+
};
|
164
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../src/components/MultiTableSelectPagetable/MultiTableSelectPagetable.vue","../../../src/components/MultiTableSelectPagetable/index.ts"],"sourcesContent":["<template>\r\n <o-colflex :style=\"style\">\r\n <o-flexitem flex-basic=\"need\">\r\n <o-rowflex>\r\n <o-flexitem style=\"overflow: hidden;padding: 5px;\">\r\n <el-tooltip effect=\"light\" :teleported=\"false\">\r\n <template #default>\r\n <o-space>\r\n <el-tag v-for=\"tag in tags\" type=\"info\">{{ tag }}</el-tag>\r\n </o-space>\r\n </template>\r\n <template #content>\r\n <el-scrollbar max-height=\"100\">\r\n <div v-for=\"tag in tags\" style=\"margin: 5px;display: inline-block;\">\r\n <el-tag type=\"info\">{{ tag }}</el-tag>\r\n </div>\r\n </el-scrollbar>\r\n </template>\r\n </el-tooltip>\r\n </o-flexitem>\r\n <o-flexitem flex-basic=\"need\" style=\"padding: 5px;\">\r\n <o-buttongroup>\r\n <o-button type=\"primary\" size=\"small\" @click=\"selectDone\">确定</o-button>\r\n <o-button size=\"small\" @click=\"clearSelection\">清空</o-button>\r\n </o-buttongroup>\r\n </o-flexitem>\r\n </o-rowflex>\r\n </o-flexitem>\r\n <o-flexitem>\r\n <pagetable ref=\"table\" :data=\"data\" selection-mode size=\"small\" :pagination-teleported=\"false\"\r\n @select=\"onSelect\" @select-all=\"onSelectAll\" v-bind=\"$attrs\">\r\n <slot></slot>\r\n </pagetable>\r\n </o-flexitem>\r\n </o-colflex>\r\n</template>\r\n<script setup lang=\"ts\">\r\nimport Pagetable from '../Pagetable'\r\nimport { ElTag, ElTooltip, ElScrollbar } from 'element-plus'\r\nimport { computed, nextTick, ref, useTemplateRef, watch } from 'vue'\r\nimport { find, intersectionWith, isEqual, remove } from 'lodash-es';\r\nimport { addUnit } from '../_util';\r\nimport useMultiTableSelect from '../Form/MultiTableSelect/hooks/useMultiTableSelect'\r\n\r\ndefineOptions({ name: 'OTableselectPagetable', inheritAttrs: true })\r\n\r\nconst { data, width = 600, height = 300 } = defineProps<{ data: any[], width: number | string, height: number | string }>()\r\nconst style = computed(() => {\r\n return {\r\n width: addUnit(width),\r\n height: addUnit(height)\r\n }\r\n})\r\nconst tableRef = useTemplateRef('table')\r\nconst tableSelection = ref<any[]>([])\r\nconst tags = computed(() => tableSelection.value.map((item) => mtselect?.tag(item)))\r\n\r\nconst onSelect = (selection: any[], row: any) => {\r\n if (find(selection, row)) {\r\n if (!find(tableSelection.value, row)) {\r\n tableSelection.value.push(row)\r\n }\r\n } else {\r\n if (find(tableSelection.value, row)) {\r\n remove(tableSelection.value, row)\r\n }\r\n }\r\n mtselect?.onSelect(tableSelection.value)\r\n}\r\nconst onSelectAll = (selection: any[]) => {\r\n if (selection.length > 0) {\r\n selection.forEach((item) => {\r\n if (!find(tableSelection.value, item)) {\r\n tableSelection.value.push(item)\r\n }\r\n })\r\n } else {\r\n remove(tableSelection.value, (item) => find(data, item))\r\n }\r\n mtselect?.onSelect(tableSelection.value)\r\n}\r\n\r\nconst mtselect = useMultiTableSelect()\r\nconst selectDone = () => {\r\n mtselect?.selectDone()\r\n}\r\nconst clearSelection = () => {\r\n uncheckSelection()\r\n tableSelection.value = []\r\n mtselect?.onSelect([], true)\r\n}\r\n\r\nwatch(\r\n () => data,\r\n async () => {\r\n if (data.length > 0) {\r\n await nextTick()\r\n checkSelection()\r\n }\r\n }\r\n)\r\nwatch(() => mtselect?.selection, () => {\r\n if (mtselect?.selection && mtselect.selection.length > 0) {\r\n tableSelection.value = mtselect.selection\r\n checkSelection()\r\n }\r\n})\r\n\r\nconst checkSelection = () => {\r\n const selection = intersectionWith(data, tableSelection.value, isEqual)\r\n selection.forEach((row) => {\r\n //@ts-ignore\r\n tableRef.value!.toggleRowSelection(row, true)\r\n })\r\n}\r\n\r\nconst uncheckSelection = () => {\r\n const selection = intersectionWith(data, tableSelection.value, isEqual)\r\n selection.forEach((row) => {\r\n //@ts-ignore\r\n tableRef.value!.toggleRowSelection(row, false)\r\n })\r\n}\r\n</script>","import { withInstall } from '../_util'\r\n\r\nimport MultiTableSelectPagetable from './MultiTableSelectPagetable.vue'\r\n\r\nexport default withInstall(MultiTableSelectPagetable, {})\r\n"],"names":["style","computed","addUnit","__props","tableRef","useTemplateRef","tableSelection","ref","tags","item","mtselect","onSelect","selection","row","find","remove","onSelectAll","useMultiTableSelect","selectDone","clearSelection","uncheckSelection","watch","nextTick","checkSelection","intersectionWith","isEqual","index","withInstall","MultiTableSelectPagetable"],"mappings":";;;;;;;;;;;;;;;;;AA+CM,UAAAA,IAAQC,EAAS,OACZ;AAAA,MACH,OAAOC,EAAQC,EAAA,KAAK;AAAA,MACpB,QAAQD,EAAQC,EAAM,MAAA;AAAA,IAAA,EAE7B,GACKC,IAAWC,EAAe,OAAO,GACjCC,IAAiBC,EAAW,CAAA,CAAE,GAC9BC,IAAOP,EAAS,MAAMK,EAAe,MAAM,IAAI,CAACG,MAASC,KAAA,gBAAAA,EAAU,IAAID,EAAK,CAAC,GAE7EE,IAAW,CAACC,GAAkBC,MAAa;AACzC,MAAAC,EAAKF,GAAWC,CAAG,IACdC,EAAKR,EAAe,OAAOO,CAAG,KAChBP,EAAA,MAAM,KAAKO,CAAG,IAG7BC,EAAKR,EAAe,OAAOO,CAAG,KACvBE,EAAAT,EAAe,OAAOO,CAAG,GAG9BH,KAAA,QAAAA,EAAA,SAASJ,EAAe;AAAA,IAAK,GAErCU,IAAc,CAACJ,MAAqB;AAClC,MAAAA,EAAU,SAAS,IACTA,EAAA,QAAQ,CAACH,MAAS;AACxB,QAAKK,EAAKR,EAAe,OAAOG,CAAI,KACjBH,EAAA,MAAM,KAAKG,CAAI;AAAA,MAClC,CACH,IAEMM,EAAAT,EAAe,OAAO,CAACG,MAASK,EAAKX,EAAA,MAAMM,CAAI,CAAC,GAEjDC,KAAA,QAAAA,EAAA,SAASJ,EAAe;AAAA,IAAK,GAGrCI,IAAWO,KACXC,IAAa,MAAM;AACrB,MAAAR,KAAA,QAAAA,EAAU;AAAA,IAAW,GAEnBS,IAAiB,MAAM;AACR,MAAAC,KACjBd,EAAe,QAAQ,IACbI,KAAA,QAAAA,EAAA,SAAS,IAAI;AAAA,IAAI;AAG/B,IAAAW;AAAA,MACI,MAAMlB,EAAI;AAAA,MACV,YAAY;AACJ,QAAAA,EAAI,KAAC,SAAS,MACd,MAAMmB,EAAS,GACAC;MAEvB;AAAA,IAAA,GAEEF,EAAA,MAAMX,KAAA,gBAAAA,EAAU,WAAW,MAAM;AACnC,MAAIA,KAAA,QAAAA,EAAU,aAAaA,EAAS,UAAU,SAAS,MACnDJ,EAAe,QAAQI,EAAS,WACjBa;IACnB,CACH;AAED,UAAMA,IAAiB,MAAM;AAEf,MADQC,EAAiBrB,EAAA,MAAMG,EAAe,OAAOmB,CAAO,EAC5D,QAAQ,CAACZ,MAAQ;AAEd,QAAAT,EAAA,MAAO,mBAAmBS,GAAK,EAAI;AAAA,MAAA,CAC/C;AAAA,IAAA,GAGCO,IAAmB,MAAM;AAEjB,MADQI,EAAiBrB,EAAA,MAAMG,EAAe,OAAOmB,CAAO,EAC5D,QAAQ,CAACZ,MAAQ;AAEd,QAAAT,EAAA,MAAO,mBAAmBS,GAAK,EAAK;AAAA,MAAA,CAChD;AAAA,IAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ICrHLa,KAAeC,EAAYC,GAA2B,EAAE;"}
|
@@ -145,7 +145,7 @@ declare const _default: import('vue').DefineComponent<ExtractPropTypes<{
|
|
145
145
|
type: PropType<CSSProperties | cellStyleFn>;
|
146
146
|
default: CSSProperties | cellStyleFn;
|
147
147
|
};
|
148
|
-
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, ("selectionChange" | "currentRowChange" | "update:pagination" | "rowClick" | "rowDblclick" | "cellClick" | "cellDblclick")[], "selectionChange" | "currentRowChange" | "update:pagination" | "rowClick" | "rowDblclick" | "cellClick" | "cellDblclick", import('vue').PublicProps, Readonly<ExtractPropTypes<{
|
148
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, ("select" | "select-all" | "selectionChange" | "currentRowChange" | "update:pagination" | "paginationChange" | "rowClick" | "rowDblclick" | "cellClick" | "cellDblclick")[], "select" | "select-all" | "selectionChange" | "currentRowChange" | "update:pagination" | "paginationChange" | "rowClick" | "rowDblclick" | "cellClick" | "cellDblclick", import('vue').PublicProps, Readonly<ExtractPropTypes<{
|
149
149
|
data: {
|
150
150
|
type: PropType<any[]>;
|
151
151
|
default: any[];
|
@@ -205,16 +205,19 @@ declare const _default: import('vue').DefineComponent<ExtractPropTypes<{
|
|
205
205
|
default: CSSProperties | cellStyleFn;
|
206
206
|
};
|
207
207
|
}>> & Readonly<{
|
208
|
+
onSelect?: ((...args: any[]) => any) | undefined;
|
209
|
+
"onSelect-all"?: ((...args: any[]) => any) | undefined;
|
208
210
|
onSelectionChange?: ((...args: any[]) => any) | undefined;
|
209
211
|
onCurrentRowChange?: ((...args: any[]) => any) | undefined;
|
210
212
|
"onUpdate:pagination"?: ((...args: any[]) => any) | undefined;
|
213
|
+
onPaginationChange?: ((...args: any[]) => any) | undefined;
|
211
214
|
onRowClick?: ((...args: any[]) => any) | undefined;
|
212
215
|
onRowDblclick?: ((...args: any[]) => any) | undefined;
|
213
216
|
onCellClick?: ((...args: any[]) => any) | undefined;
|
214
217
|
onCellDblclick?: ((...args: any[]) => any) | undefined;
|
215
218
|
}>, {
|
216
|
-
data: any[];
|
217
219
|
size: "" | "small" | "default" | "large";
|
220
|
+
data: any[];
|
218
221
|
pagination: {
|
219
222
|
currentPage?: number;
|
220
223
|
pageSize?: number;
|