@a2simcode/ui 0.0.20 → 0.0.22
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/LICENSE +53 -53
- package/README.md +130 -130
- package/dist/components/autocomplete/index.d.ts +3 -0
- package/dist/components/autocomplete/src/autocomplete.vue.d.ts +3 -0
- package/dist/components/barcode/index.d.ts +520 -93
- package/dist/components/barcode/src/barcode.vue.d.ts +419 -98
- package/dist/components/button-select/index.d.ts +61 -0
- package/dist/components/button-select/src/button-select.vue.d.ts +35 -0
- package/dist/components/cascader-select/index.d.ts +4 -20
- package/dist/components/cascader-select/src/cascader-select.vue.d.ts +4 -33
- package/dist/components/checkbox/index.d.ts +3 -3
- package/dist/components/checkbox/src/checkbox.vue.d.ts +1 -1
- package/dist/components/code-mirror/index.d.ts +0 -1
- package/dist/components/code-mirror/src/code-mirror.vue.d.ts +0 -1
- package/dist/components/collapse/index.d.ts +44 -0
- package/dist/components/collapse/src/collapse.vue.d.ts +37 -0
- package/dist/components/comp/index.d.ts +30 -15
- package/dist/components/comp/src/comp.vue.d.ts +31 -45
- package/dist/components/comp/src/interface.d.ts +101 -0
- package/dist/components/count-up/index.d.ts +3 -3
- package/dist/components/count-up/src/count-up.vue.d.ts +1 -1
- package/dist/components/dialog/index.d.ts +5 -5
- package/dist/components/dialog/src/index.vue.d.ts +2 -2
- package/dist/components/dialog-full/index.d.ts +5 -5
- package/dist/components/dialog-full/src/index.vue.d.ts +2 -2
- package/dist/components/drawer/index.d.ts +5 -5
- package/dist/components/drawer/src/drawer.vue.d.ts +2 -2
- package/dist/components/editor/index.d.ts +160 -0
- package/dist/components/editor/src/editor.vue.d.ts +86 -0
- package/dist/components/form/index.d.ts +6 -6
- package/dist/components/form/src/form.vue.d.ts +3 -3
- package/dist/components/form-item/src/form-item.vue.d.ts +1 -1
- package/dist/components/icon/src/icon.vue.d.ts +0 -4
- package/dist/components/index.d.ts +22 -6
- package/dist/components/inject-provide.d.ts +159 -0
- package/dist/components/input/index.d.ts +3 -1
- package/dist/components/input/src/input.vue.d.ts +5 -1
- package/dist/components/input-color/index.d.ts +114 -0
- package/dist/components/input-color/src/input-color.vue.d.ts +73 -0
- package/dist/components/input-rows/index.d.ts +200 -0
- package/dist/components/input-rows/src/input-rows.vue.d.ts +154 -0
- package/dist/components/input-rows/src/interface.d.ts +33 -0
- package/dist/components/layer-form/index.d.ts +178 -0
- package/dist/components/layer-form/src/layer-form.vue.d.ts +149 -0
- package/dist/components/map/index.d.ts +127 -0
- package/dist/components/map/src/map.vue.d.ts +92 -0
- package/dist/components/number/index.d.ts +3 -3
- package/dist/components/number/src/number.vue.d.ts +3 -3
- package/dist/components/page/index.d.ts +6 -6
- package/dist/components/page/src/page.vue.d.ts +2 -2
- package/dist/components/select/index.d.ts +6 -1
- package/dist/components/select/src/select.vue.d.ts +7 -2
- package/dist/components/slider/index.d.ts +3 -3
- package/dist/components/slider/src/slider.vue.d.ts +1 -1
- package/dist/components/switch/index.d.ts +71 -0
- package/dist/components/switch/src/switch.vue.d.ts +83 -0
- package/dist/components/table/index.d.ts +275 -66
- package/dist/components/table/src/editors/index.d.ts +26 -0
- package/dist/components/table/src/editors/j-comp-editor.d.ts +62 -0
- package/dist/components/table/src/table.vue.d.ts +326 -61
- package/dist/components/table/src/theme/default.d.ts +27 -0
- package/dist/components/table-panel/index.d.ts +459 -0
- package/dist/components/table-panel/src/column-panel.vue.d.ts +37 -0
- package/dist/components/table-panel/src/filter-panel.vue.d.ts +49 -0
- package/dist/components/table-panel/src/keyword-panel.vue.d.ts +36 -0
- package/dist/components/table-panel/src/order-panel.vue.d.ts +24 -0
- package/dist/components/table-panel/src/table-panel.vue.d.ts +445 -0
- package/dist/components/tabs/index.d.ts +156 -0
- package/dist/components/tabs/src/tabs.vue.d.ts +110 -0
- package/dist/components/tree/index.d.ts +451 -0
- package/dist/components/tree/src/tree.vue.d.ts +478 -0
- package/dist/components/upload/index.d.ts +13 -13
- package/dist/components/upload/src/list.vue.d.ts +1 -1
- package/dist/components/upload/src/upload.vue.d.ts +5 -5
- package/dist/core/utils/comp.d.ts +18 -0
- package/dist/core/utils/index.d.ts +2 -0
- package/dist/core/utils/map.d.ts +1 -0
- package/dist/core/utils/tree.d.ts +1 -0
- package/dist/core/utils/useSortable.d.ts +5 -0
- package/dist/simcode-ui.es.js +6888 -3212
- package/dist/simcode-ui.umd.js +2 -2
- package/dist/stats.html +1 -1
- package/dist/ui.css +1 -1
- package/package.json +50 -25
|
@@ -1,52 +1,124 @@
|
|
|
1
1
|
declare const JTable: {
|
|
2
2
|
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
|
|
3
3
|
columns: {
|
|
4
|
-
type: import('vue').PropType<import('..').
|
|
4
|
+
type: import('vue').PropType<import('..').SchemaRuntimeConfig[]>;
|
|
5
5
|
required: true;
|
|
6
6
|
default: () => never[];
|
|
7
7
|
};
|
|
8
8
|
records: {
|
|
9
|
-
type: import('vue').PropType<
|
|
9
|
+
type: import('vue').PropType<Record<string, any>[]>;
|
|
10
10
|
required: true;
|
|
11
11
|
default: () => never[];
|
|
12
12
|
};
|
|
13
|
-
|
|
14
|
-
type:
|
|
15
|
-
default:
|
|
13
|
+
isTree: {
|
|
14
|
+
type: BooleanConstructor;
|
|
15
|
+
default: boolean;
|
|
16
16
|
};
|
|
17
|
-
|
|
18
|
-
type:
|
|
19
|
-
default:
|
|
17
|
+
isShowNumber: {
|
|
18
|
+
type: BooleanConstructor;
|
|
19
|
+
default: boolean;
|
|
20
|
+
};
|
|
21
|
+
isMultiple: {
|
|
22
|
+
type: BooleanConstructor;
|
|
23
|
+
default: boolean;
|
|
20
24
|
};
|
|
21
|
-
|
|
25
|
+
isPage: {
|
|
22
26
|
type: BooleanConstructor;
|
|
23
27
|
default: boolean;
|
|
24
28
|
};
|
|
25
|
-
|
|
29
|
+
pageLayoutSimple: {
|
|
26
30
|
type: BooleanConstructor;
|
|
27
31
|
default: boolean;
|
|
28
32
|
};
|
|
29
|
-
|
|
30
|
-
|
|
33
|
+
pageSizes: ArrayConstructor;
|
|
34
|
+
pageTotal: {
|
|
35
|
+
type: NumberConstructor;
|
|
36
|
+
default: number;
|
|
37
|
+
};
|
|
38
|
+
tablePage: {
|
|
39
|
+
type: NumberConstructor;
|
|
40
|
+
default: number;
|
|
41
|
+
};
|
|
42
|
+
pageSize: {
|
|
43
|
+
type: NumberConstructor;
|
|
44
|
+
default: number;
|
|
45
|
+
};
|
|
46
|
+
selectField: {
|
|
47
|
+
type: StringConstructor;
|
|
48
|
+
default: string;
|
|
49
|
+
};
|
|
50
|
+
rowKey: {
|
|
51
|
+
type: StringConstructor;
|
|
52
|
+
default: string;
|
|
53
|
+
};
|
|
54
|
+
actions: {
|
|
55
|
+
type: import('vue').PropType<import('.').TableAction[]>;
|
|
56
|
+
default: () => never[];
|
|
57
|
+
};
|
|
58
|
+
actionsMaxCount: {
|
|
59
|
+
type: NumberConstructor;
|
|
60
|
+
default: number;
|
|
61
|
+
};
|
|
62
|
+
actionsLabel: {
|
|
63
|
+
type: StringConstructor;
|
|
31
64
|
default: string;
|
|
32
65
|
};
|
|
66
|
+
isAnimationAppear: {
|
|
67
|
+
type: BooleanConstructor;
|
|
68
|
+
default: boolean;
|
|
69
|
+
};
|
|
70
|
+
heightMode: {
|
|
71
|
+
type: import('vue').PropType<"full" | "auto">;
|
|
72
|
+
default: string;
|
|
73
|
+
};
|
|
74
|
+
maxHeight: {
|
|
75
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
76
|
+
default: undefined;
|
|
77
|
+
};
|
|
33
78
|
}>> & Readonly<{
|
|
79
|
+
onRowChange?: ((changeData: Record<string, any>) => any) | undefined;
|
|
34
80
|
onReady?: ((instance: any) => any) | undefined;
|
|
81
|
+
onSelectionChanged?: ((selections: Record<string, any>[]) => any) | undefined;
|
|
82
|
+
"onUpdate:tablePage"?: ((tablePage: number) => any) | undefined;
|
|
83
|
+
"onUpdate:pageSize"?: ((pageSize: number) => any) | undefined;
|
|
84
|
+
onLoadPageData?: ((payload: {
|
|
85
|
+
rows: number;
|
|
86
|
+
page: number;
|
|
87
|
+
}) => any) | undefined;
|
|
35
88
|
}>, {
|
|
36
89
|
getInstance: () => any;
|
|
37
|
-
setRecords: (records:
|
|
38
|
-
|
|
39
|
-
|
|
90
|
+
setRecords: (records: Record<string, any>[]) => void;
|
|
91
|
+
getSelection: () => any[];
|
|
92
|
+
setSelection: (records: any[]) => void;
|
|
40
93
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
94
|
+
rowChange: (changeData: Record<string, any>) => any;
|
|
41
95
|
ready: (instance: any) => any;
|
|
96
|
+
selectionChanged: (selections: Record<string, any>[]) => any;
|
|
97
|
+
"update:tablePage": (tablePage: number) => any;
|
|
98
|
+
"update:pageSize": (pageSize: number) => any;
|
|
99
|
+
loadPageData: (payload: {
|
|
100
|
+
rows: number;
|
|
101
|
+
page: number;
|
|
102
|
+
}) => any;
|
|
42
103
|
}, import('vue').PublicProps, {
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
104
|
+
columns: import('..').SchemaRuntimeConfig[];
|
|
105
|
+
records: Record<string, any>[];
|
|
106
|
+
isTree: boolean;
|
|
107
|
+
isShowNumber: boolean;
|
|
108
|
+
isMultiple: boolean;
|
|
109
|
+
isPage: boolean;
|
|
110
|
+
pageLayoutSimple: boolean;
|
|
111
|
+
pageTotal: number;
|
|
112
|
+
tablePage: number;
|
|
113
|
+
pageSize: number;
|
|
114
|
+
selectField: string;
|
|
115
|
+
rowKey: string;
|
|
116
|
+
actions: import('.').TableAction[];
|
|
117
|
+
actionsMaxCount: number;
|
|
118
|
+
actionsLabel: string;
|
|
119
|
+
isAnimationAppear: boolean;
|
|
120
|
+
heightMode: "auto" | "full";
|
|
121
|
+
maxHeight: string | number;
|
|
50
122
|
}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
|
|
51
123
|
tableContainer: HTMLDivElement;
|
|
52
124
|
}, HTMLDivElement, import('vue').ComponentProvideOptions, {
|
|
@@ -58,103 +130,240 @@ declare const JTable: {
|
|
|
58
130
|
Defaults: {};
|
|
59
131
|
}, Readonly<import('vue').ExtractPropTypes<{
|
|
60
132
|
columns: {
|
|
61
|
-
type: import('vue').PropType<import('..').
|
|
133
|
+
type: import('vue').PropType<import('..').SchemaRuntimeConfig[]>;
|
|
62
134
|
required: true;
|
|
63
135
|
default: () => never[];
|
|
64
136
|
};
|
|
65
137
|
records: {
|
|
66
|
-
type: import('vue').PropType<
|
|
138
|
+
type: import('vue').PropType<Record<string, any>[]>;
|
|
67
139
|
required: true;
|
|
68
140
|
default: () => never[];
|
|
69
141
|
};
|
|
70
|
-
|
|
71
|
-
type:
|
|
72
|
-
default:
|
|
142
|
+
isTree: {
|
|
143
|
+
type: BooleanConstructor;
|
|
144
|
+
default: boolean;
|
|
73
145
|
};
|
|
74
|
-
|
|
75
|
-
type:
|
|
76
|
-
default:
|
|
146
|
+
isShowNumber: {
|
|
147
|
+
type: BooleanConstructor;
|
|
148
|
+
default: boolean;
|
|
149
|
+
};
|
|
150
|
+
isMultiple: {
|
|
151
|
+
type: BooleanConstructor;
|
|
152
|
+
default: boolean;
|
|
77
153
|
};
|
|
78
|
-
|
|
154
|
+
isPage: {
|
|
79
155
|
type: BooleanConstructor;
|
|
80
156
|
default: boolean;
|
|
81
157
|
};
|
|
82
|
-
|
|
158
|
+
pageLayoutSimple: {
|
|
83
159
|
type: BooleanConstructor;
|
|
84
160
|
default: boolean;
|
|
85
161
|
};
|
|
86
|
-
|
|
87
|
-
|
|
162
|
+
pageSizes: ArrayConstructor;
|
|
163
|
+
pageTotal: {
|
|
164
|
+
type: NumberConstructor;
|
|
165
|
+
default: number;
|
|
166
|
+
};
|
|
167
|
+
tablePage: {
|
|
168
|
+
type: NumberConstructor;
|
|
169
|
+
default: number;
|
|
170
|
+
};
|
|
171
|
+
pageSize: {
|
|
172
|
+
type: NumberConstructor;
|
|
173
|
+
default: number;
|
|
174
|
+
};
|
|
175
|
+
selectField: {
|
|
176
|
+
type: StringConstructor;
|
|
88
177
|
default: string;
|
|
89
178
|
};
|
|
179
|
+
rowKey: {
|
|
180
|
+
type: StringConstructor;
|
|
181
|
+
default: string;
|
|
182
|
+
};
|
|
183
|
+
actions: {
|
|
184
|
+
type: import('vue').PropType<import('.').TableAction[]>;
|
|
185
|
+
default: () => never[];
|
|
186
|
+
};
|
|
187
|
+
actionsMaxCount: {
|
|
188
|
+
type: NumberConstructor;
|
|
189
|
+
default: number;
|
|
190
|
+
};
|
|
191
|
+
actionsLabel: {
|
|
192
|
+
type: StringConstructor;
|
|
193
|
+
default: string;
|
|
194
|
+
};
|
|
195
|
+
isAnimationAppear: {
|
|
196
|
+
type: BooleanConstructor;
|
|
197
|
+
default: boolean;
|
|
198
|
+
};
|
|
199
|
+
heightMode: {
|
|
200
|
+
type: import('vue').PropType<"full" | "auto">;
|
|
201
|
+
default: string;
|
|
202
|
+
};
|
|
203
|
+
maxHeight: {
|
|
204
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
205
|
+
default: undefined;
|
|
206
|
+
};
|
|
90
207
|
}>> & Readonly<{
|
|
208
|
+
onRowChange?: ((changeData: Record<string, any>) => any) | undefined;
|
|
91
209
|
onReady?: ((instance: any) => any) | undefined;
|
|
210
|
+
onSelectionChanged?: ((selections: Record<string, any>[]) => any) | undefined;
|
|
211
|
+
"onUpdate:tablePage"?: ((tablePage: number) => any) | undefined;
|
|
212
|
+
"onUpdate:pageSize"?: ((pageSize: number) => any) | undefined;
|
|
213
|
+
onLoadPageData?: ((payload: {
|
|
214
|
+
rows: number;
|
|
215
|
+
page: number;
|
|
216
|
+
}) => any) | undefined;
|
|
92
217
|
}>, {
|
|
93
218
|
getInstance: () => any;
|
|
94
|
-
setRecords: (records:
|
|
95
|
-
|
|
96
|
-
|
|
219
|
+
setRecords: (records: Record<string, any>[]) => void;
|
|
220
|
+
getSelection: () => any[];
|
|
221
|
+
setSelection: (records: any[]) => void;
|
|
97
222
|
}, {}, {}, {}, {
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
223
|
+
columns: import('..').SchemaRuntimeConfig[];
|
|
224
|
+
records: Record<string, any>[];
|
|
225
|
+
isTree: boolean;
|
|
226
|
+
isShowNumber: boolean;
|
|
227
|
+
isMultiple: boolean;
|
|
228
|
+
isPage: boolean;
|
|
229
|
+
pageLayoutSimple: boolean;
|
|
230
|
+
pageTotal: number;
|
|
231
|
+
tablePage: number;
|
|
232
|
+
pageSize: number;
|
|
233
|
+
selectField: string;
|
|
234
|
+
rowKey: string;
|
|
235
|
+
actions: import('.').TableAction[];
|
|
236
|
+
actionsMaxCount: number;
|
|
237
|
+
actionsLabel: string;
|
|
238
|
+
isAnimationAppear: boolean;
|
|
239
|
+
heightMode: "auto" | "full";
|
|
240
|
+
maxHeight: string | number;
|
|
105
241
|
}>;
|
|
106
242
|
__isFragment?: never;
|
|
107
243
|
__isTeleport?: never;
|
|
108
244
|
__isSuspense?: never;
|
|
109
245
|
} & import('vue').ComponentOptionsBase<Readonly<import('vue').ExtractPropTypes<{
|
|
110
246
|
columns: {
|
|
111
|
-
type: import('vue').PropType<import('..').
|
|
247
|
+
type: import('vue').PropType<import('..').SchemaRuntimeConfig[]>;
|
|
112
248
|
required: true;
|
|
113
249
|
default: () => never[];
|
|
114
250
|
};
|
|
115
251
|
records: {
|
|
116
|
-
type: import('vue').PropType<
|
|
252
|
+
type: import('vue').PropType<Record<string, any>[]>;
|
|
117
253
|
required: true;
|
|
118
254
|
default: () => never[];
|
|
119
255
|
};
|
|
120
|
-
|
|
121
|
-
type:
|
|
122
|
-
default:
|
|
256
|
+
isTree: {
|
|
257
|
+
type: BooleanConstructor;
|
|
258
|
+
default: boolean;
|
|
123
259
|
};
|
|
124
|
-
|
|
125
|
-
type:
|
|
126
|
-
default:
|
|
260
|
+
isShowNumber: {
|
|
261
|
+
type: BooleanConstructor;
|
|
262
|
+
default: boolean;
|
|
263
|
+
};
|
|
264
|
+
isMultiple: {
|
|
265
|
+
type: BooleanConstructor;
|
|
266
|
+
default: boolean;
|
|
127
267
|
};
|
|
128
|
-
|
|
268
|
+
isPage: {
|
|
129
269
|
type: BooleanConstructor;
|
|
130
270
|
default: boolean;
|
|
131
271
|
};
|
|
132
|
-
|
|
272
|
+
pageLayoutSimple: {
|
|
133
273
|
type: BooleanConstructor;
|
|
134
274
|
default: boolean;
|
|
135
275
|
};
|
|
136
|
-
|
|
137
|
-
|
|
276
|
+
pageSizes: ArrayConstructor;
|
|
277
|
+
pageTotal: {
|
|
278
|
+
type: NumberConstructor;
|
|
279
|
+
default: number;
|
|
280
|
+
};
|
|
281
|
+
tablePage: {
|
|
282
|
+
type: NumberConstructor;
|
|
283
|
+
default: number;
|
|
284
|
+
};
|
|
285
|
+
pageSize: {
|
|
286
|
+
type: NumberConstructor;
|
|
287
|
+
default: number;
|
|
288
|
+
};
|
|
289
|
+
selectField: {
|
|
290
|
+
type: StringConstructor;
|
|
291
|
+
default: string;
|
|
292
|
+
};
|
|
293
|
+
rowKey: {
|
|
294
|
+
type: StringConstructor;
|
|
138
295
|
default: string;
|
|
139
296
|
};
|
|
297
|
+
actions: {
|
|
298
|
+
type: import('vue').PropType<import('.').TableAction[]>;
|
|
299
|
+
default: () => never[];
|
|
300
|
+
};
|
|
301
|
+
actionsMaxCount: {
|
|
302
|
+
type: NumberConstructor;
|
|
303
|
+
default: number;
|
|
304
|
+
};
|
|
305
|
+
actionsLabel: {
|
|
306
|
+
type: StringConstructor;
|
|
307
|
+
default: string;
|
|
308
|
+
};
|
|
309
|
+
isAnimationAppear: {
|
|
310
|
+
type: BooleanConstructor;
|
|
311
|
+
default: boolean;
|
|
312
|
+
};
|
|
313
|
+
heightMode: {
|
|
314
|
+
type: import('vue').PropType<"full" | "auto">;
|
|
315
|
+
default: string;
|
|
316
|
+
};
|
|
317
|
+
maxHeight: {
|
|
318
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
319
|
+
default: undefined;
|
|
320
|
+
};
|
|
140
321
|
}>> & Readonly<{
|
|
322
|
+
onRowChange?: ((changeData: Record<string, any>) => any) | undefined;
|
|
141
323
|
onReady?: ((instance: any) => any) | undefined;
|
|
324
|
+
onSelectionChanged?: ((selections: Record<string, any>[]) => any) | undefined;
|
|
325
|
+
"onUpdate:tablePage"?: ((tablePage: number) => any) | undefined;
|
|
326
|
+
"onUpdate:pageSize"?: ((pageSize: number) => any) | undefined;
|
|
327
|
+
onLoadPageData?: ((payload: {
|
|
328
|
+
rows: number;
|
|
329
|
+
page: number;
|
|
330
|
+
}) => any) | undefined;
|
|
142
331
|
}>, {
|
|
143
332
|
getInstance: () => any;
|
|
144
|
-
setRecords: (records:
|
|
145
|
-
|
|
146
|
-
|
|
333
|
+
setRecords: (records: Record<string, any>[]) => void;
|
|
334
|
+
getSelection: () => any[];
|
|
335
|
+
setSelection: (records: any[]) => void;
|
|
147
336
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
337
|
+
rowChange: (changeData: Record<string, any>) => any;
|
|
148
338
|
ready: (instance: any) => any;
|
|
339
|
+
selectionChanged: (selections: Record<string, any>[]) => any;
|
|
340
|
+
"update:tablePage": (tablePage: number) => any;
|
|
341
|
+
"update:pageSize": (pageSize: number) => any;
|
|
342
|
+
loadPageData: (payload: {
|
|
343
|
+
rows: number;
|
|
344
|
+
page: number;
|
|
345
|
+
}) => any;
|
|
149
346
|
}, string, {
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
347
|
+
columns: import('..').SchemaRuntimeConfig[];
|
|
348
|
+
records: Record<string, any>[];
|
|
349
|
+
isTree: boolean;
|
|
350
|
+
isShowNumber: boolean;
|
|
351
|
+
isMultiple: boolean;
|
|
352
|
+
isPage: boolean;
|
|
353
|
+
pageLayoutSimple: boolean;
|
|
354
|
+
pageTotal: number;
|
|
355
|
+
tablePage: number;
|
|
356
|
+
pageSize: number;
|
|
357
|
+
selectField: string;
|
|
358
|
+
rowKey: string;
|
|
359
|
+
actions: import('.').TableAction[];
|
|
360
|
+
actionsMaxCount: number;
|
|
361
|
+
actionsLabel: string;
|
|
362
|
+
isAnimationAppear: boolean;
|
|
363
|
+
heightMode: "auto" | "full";
|
|
364
|
+
maxHeight: string | number;
|
|
157
365
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & {
|
|
158
366
|
install: (app: import('vue').App) => void;
|
|
159
367
|
};
|
|
368
|
+
export * from './src/table.vue';
|
|
160
369
|
export default JTable;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { JCompEditor } from './j-comp-editor';
|
|
2
|
+
export { JCompEditor };
|
|
3
|
+
/**
|
|
4
|
+
* 注册 j-comp 编辑器
|
|
5
|
+
*/
|
|
6
|
+
export declare function registerJCompEditor(): void;
|
|
7
|
+
/**
|
|
8
|
+
* 获取组件对应的编辑器名称
|
|
9
|
+
* @param compType 组件类型
|
|
10
|
+
*/
|
|
11
|
+
export declare function getEditorName(compType: string): string | undefined;
|
|
12
|
+
/**
|
|
13
|
+
* 解析编辑器配置
|
|
14
|
+
* @param compType 组件类型
|
|
15
|
+
*/
|
|
16
|
+
export declare function parseEditorName(compType?: string): string | undefined;
|
|
17
|
+
/**
|
|
18
|
+
* 初始化所有编辑器
|
|
19
|
+
* 在表格初始化时调用
|
|
20
|
+
*/
|
|
21
|
+
export declare function initEditors(): void;
|
|
22
|
+
/**
|
|
23
|
+
* 清理所有编辑器
|
|
24
|
+
* 在表格销毁时调用
|
|
25
|
+
*/
|
|
26
|
+
export declare function destroyEditors(): void;
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 基于 j-comp 的自定义编辑器类
|
|
3
|
+
* 用于在 VTable 中实现单元格编辑功能
|
|
4
|
+
*/
|
|
5
|
+
export declare class JCompEditor {
|
|
6
|
+
/** 包装容器 */
|
|
7
|
+
wrapContainer: HTMLElement | null;
|
|
8
|
+
/** 容器 DOM 元素 */
|
|
9
|
+
container: HTMLElement | null;
|
|
10
|
+
/** 当前编辑值 */
|
|
11
|
+
currentValue: any;
|
|
12
|
+
/**
|
|
13
|
+
* 编辑器启动时调用
|
|
14
|
+
* @param editorContext VTable 提供的编辑器上下文
|
|
15
|
+
*/
|
|
16
|
+
onStart(editorContext: any): Promise<void>;
|
|
17
|
+
/**
|
|
18
|
+
* 根据字段名查找列配置
|
|
19
|
+
* @param columns 列配置数组
|
|
20
|
+
* @param field 字段名
|
|
21
|
+
*/
|
|
22
|
+
findColumnByField(columns: any[], field: string): any;
|
|
23
|
+
/**
|
|
24
|
+
* 创建编辑器 DOM 元素并挂载 Vue 组件
|
|
25
|
+
* @param editorContext VTable 提供的编辑器上下文
|
|
26
|
+
*/
|
|
27
|
+
createElement(editorContext: any): Promise<boolean>;
|
|
28
|
+
createEditor(editorContext: any): Promise<boolean>;
|
|
29
|
+
/**
|
|
30
|
+
* 获取当前编辑值
|
|
31
|
+
*/
|
|
32
|
+
getValue(): any;
|
|
33
|
+
/**
|
|
34
|
+
* 设置编辑值
|
|
35
|
+
* @param value 新值
|
|
36
|
+
*/
|
|
37
|
+
setValue(value: any): void;
|
|
38
|
+
/**
|
|
39
|
+
* 调整编辑器位置
|
|
40
|
+
* @param rect 位置矩形信息
|
|
41
|
+
*/
|
|
42
|
+
adjustPosition(rect: {
|
|
43
|
+
top: number;
|
|
44
|
+
left: number;
|
|
45
|
+
width: number;
|
|
46
|
+
height: number;
|
|
47
|
+
}): void;
|
|
48
|
+
/**
|
|
49
|
+
* 编辑器结束时调用,清理资源
|
|
50
|
+
*/
|
|
51
|
+
onEnd(): void;
|
|
52
|
+
/**
|
|
53
|
+
* 判断目标元素是否属于编辑器
|
|
54
|
+
* @param target 目标元素
|
|
55
|
+
*/
|
|
56
|
+
isEditorElement(target: HTMLElement): boolean;
|
|
57
|
+
/**
|
|
58
|
+
* 检查是否点击了弹出层
|
|
59
|
+
* @param target 目标元素
|
|
60
|
+
*/
|
|
61
|
+
isClickPopUp(target: HTMLElement | null): boolean;
|
|
62
|
+
}
|