@a2simcode/ui 0.0.29 → 0.0.30
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/dist/components/inject-provide.d.ts +1 -1
- package/dist/components/input-rows/src/interface.d.ts +2 -2
- package/dist/components/table/index.d.ts +93 -0
- package/dist/components/table/src/table.vue.d.ts +61 -0
- package/dist/simcode-ui.es.js +3731 -3668
- package/dist/simcode-ui.umd.js +2 -2
- package/dist/stats.html +1 -1
- package/package.json +4 -3
- package/dist/components-dui/button/index.d.ts +0 -51
- package/dist/components-dui/button/src/button.vue.d.ts +0 -29
- package/dist/components-dui/button/src/types.d.ts +0 -9
- package/dist/components-dui/drag/index.d.ts +0 -210
- package/dist/components-dui/drag/src/container.vue.d.ts +0 -108
- package/dist/components-dui/drag/src/drag.vue.d.ts +0 -105
- package/dist/components-dui/drag/src/dragIndexList.vue.d.ts +0 -133
- package/dist/components-dui/drag/src/dragList.vue.d.ts +0 -130
- package/dist/components-dui/drag/src/eventBus.d.ts +0 -4
- package/dist/components-dui/drag/src/hooks/useDesign.d.ts +0 -11
- package/dist/components-dui/drag/src/hooks/useDrag.d.ts +0 -18
- package/dist/components-dui/drag/src/hooks/useMouseEvent.d.ts +0 -6
- package/dist/components-dui/drag/src/interface.d.ts +0 -54
- package/dist/components-dui/drag/src/tool.vue.d.ts +0 -26
- package/dist/components-dui/index.d.ts +0 -9
- package/dist/components-dui/utils/index.d.ts +0 -7
- package/dist/components-dui/vite.config.d.ts +0 -2
- package/dist/core/index.d.ts +0 -1
- package/dist/core/utils/cipher.d.ts +0 -21
- package/dist/core/utils/common.d.ts +0 -72
- package/dist/core/utils/comp.d.ts +0 -27
- package/dist/core/utils/date.d.ts +0 -3
- package/dist/core/utils/dom.d.ts +0 -4
- package/dist/core/utils/eventBus.d.ts +0 -38
- package/dist/core/utils/index.d.ts +0 -10
- package/dist/core/utils/is.d.ts +0 -4
- package/dist/core/utils/map.d.ts +0 -1
- package/dist/core/utils/tree.d.ts +0 -11
- package/dist/core/utils/useSortable.d.ts +0 -5
|
@@ -11,7 +11,7 @@ export interface EditConfigType {
|
|
|
11
11
|
*/
|
|
12
12
|
addBtnText?: string;
|
|
13
13
|
/**
|
|
14
|
-
* @zh
|
|
14
|
+
* @zh 按钮对齐方式【只支持input-rows组件】
|
|
15
15
|
*/
|
|
16
16
|
buttonsAlign?: 'left' | 'center' | 'right';
|
|
17
17
|
/**
|
|
@@ -27,7 +27,7 @@ export interface EditConfigType {
|
|
|
27
27
|
*/
|
|
28
28
|
drag?: boolean;
|
|
29
29
|
/**
|
|
30
|
-
* @zh 是否为空值,默认true,为false时,不能为空值
|
|
30
|
+
* @zh 是否为空值,默认true,为false时,不能为空值 【只支持input-rows组件】
|
|
31
31
|
*/
|
|
32
32
|
isNullValue?: boolean;
|
|
33
33
|
}
|
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
declare const JTable: {
|
|
2
2
|
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
|
|
3
|
+
id: {
|
|
4
|
+
type: StringConstructor;
|
|
5
|
+
default: string;
|
|
6
|
+
};
|
|
7
|
+
modelValue: {
|
|
8
|
+
type: import('vue').PropType<Record<string, any>[]>;
|
|
9
|
+
default: () => never[];
|
|
10
|
+
};
|
|
3
11
|
columns: {
|
|
4
12
|
type: import('vue').PropType<import('..').SchemaRuntimeConfig[]>;
|
|
5
13
|
required: true;
|
|
@@ -79,7 +87,20 @@ declare const JTable: {
|
|
|
79
87
|
type: import('vue').PropType<"cross" | "row" | "column" | "cell">;
|
|
80
88
|
default: string;
|
|
81
89
|
};
|
|
90
|
+
editConfig: {
|
|
91
|
+
type: import('vue').PropType<import('..').EditConfigType>;
|
|
92
|
+
default: () => {};
|
|
93
|
+
};
|
|
82
94
|
}>> & Readonly<{
|
|
95
|
+
"onUpdate:modelValue"?: ((value: Record<string, any>[]) => any) | undefined;
|
|
96
|
+
onChange?: ((data: {
|
|
97
|
+
id: string;
|
|
98
|
+
value: any;
|
|
99
|
+
data: any;
|
|
100
|
+
formData: Record<string, any>;
|
|
101
|
+
tableData: Record<string, any>[];
|
|
102
|
+
type: "add" | "delete" | "update" | "sort";
|
|
103
|
+
}) => any) | undefined;
|
|
83
104
|
onRowChange?: ((changeData: Record<string, any>) => any) | undefined;
|
|
84
105
|
onReady?: ((instance: any) => any) | undefined;
|
|
85
106
|
onSelectionChanged?: ((selections: Record<string, any>[]) => any) | undefined;
|
|
@@ -92,9 +113,19 @@ declare const JTable: {
|
|
|
92
113
|
}>, {
|
|
93
114
|
getInstance: () => any;
|
|
94
115
|
setRecords: (records: Record<string, any>[]) => void;
|
|
116
|
+
getRecords: () => any;
|
|
95
117
|
getSelection: () => any[];
|
|
96
118
|
setSelection: (records: any[]) => void;
|
|
97
119
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
120
|
+
"update:modelValue": (value: Record<string, any>[]) => any;
|
|
121
|
+
change: (data: {
|
|
122
|
+
id: string;
|
|
123
|
+
value: any;
|
|
124
|
+
data: any;
|
|
125
|
+
formData: Record<string, any>;
|
|
126
|
+
tableData: Record<string, any>[];
|
|
127
|
+
type: "add" | "delete" | "update" | "sort";
|
|
128
|
+
}) => any;
|
|
98
129
|
rowChange: (changeData: Record<string, any>) => any;
|
|
99
130
|
ready: (instance: any) => any;
|
|
100
131
|
selectionChanged: (selections: Record<string, any>[]) => any;
|
|
@@ -105,6 +136,8 @@ declare const JTable: {
|
|
|
105
136
|
page: number;
|
|
106
137
|
}) => any;
|
|
107
138
|
}, import('vue').PublicProps, {
|
|
139
|
+
id: string;
|
|
140
|
+
modelValue: Record<string, any>[];
|
|
108
141
|
columns: import('..').SchemaRuntimeConfig[];
|
|
109
142
|
records: Record<string, any>[];
|
|
110
143
|
isTree: boolean;
|
|
@@ -124,6 +157,7 @@ declare const JTable: {
|
|
|
124
157
|
heightMode: "auto" | "full";
|
|
125
158
|
maxHeight: string | number;
|
|
126
159
|
highlightMode: "row" | "cross" | "column" | "cell";
|
|
160
|
+
editConfig: import('..').EditConfigType;
|
|
127
161
|
}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
|
|
128
162
|
tableContainer: HTMLDivElement;
|
|
129
163
|
}, HTMLDivElement, import('vue').ComponentProvideOptions, {
|
|
@@ -134,6 +168,14 @@ declare const JTable: {
|
|
|
134
168
|
M: {};
|
|
135
169
|
Defaults: {};
|
|
136
170
|
}, Readonly<import('vue').ExtractPropTypes<{
|
|
171
|
+
id: {
|
|
172
|
+
type: StringConstructor;
|
|
173
|
+
default: string;
|
|
174
|
+
};
|
|
175
|
+
modelValue: {
|
|
176
|
+
type: import('vue').PropType<Record<string, any>[]>;
|
|
177
|
+
default: () => never[];
|
|
178
|
+
};
|
|
137
179
|
columns: {
|
|
138
180
|
type: import('vue').PropType<import('..').SchemaRuntimeConfig[]>;
|
|
139
181
|
required: true;
|
|
@@ -213,7 +255,20 @@ declare const JTable: {
|
|
|
213
255
|
type: import('vue').PropType<"cross" | "row" | "column" | "cell">;
|
|
214
256
|
default: string;
|
|
215
257
|
};
|
|
258
|
+
editConfig: {
|
|
259
|
+
type: import('vue').PropType<import('..').EditConfigType>;
|
|
260
|
+
default: () => {};
|
|
261
|
+
};
|
|
216
262
|
}>> & Readonly<{
|
|
263
|
+
"onUpdate:modelValue"?: ((value: Record<string, any>[]) => any) | undefined;
|
|
264
|
+
onChange?: ((data: {
|
|
265
|
+
id: string;
|
|
266
|
+
value: any;
|
|
267
|
+
data: any;
|
|
268
|
+
formData: Record<string, any>;
|
|
269
|
+
tableData: Record<string, any>[];
|
|
270
|
+
type: "add" | "delete" | "update" | "sort";
|
|
271
|
+
}) => any) | undefined;
|
|
217
272
|
onRowChange?: ((changeData: Record<string, any>) => any) | undefined;
|
|
218
273
|
onReady?: ((instance: any) => any) | undefined;
|
|
219
274
|
onSelectionChanged?: ((selections: Record<string, any>[]) => any) | undefined;
|
|
@@ -226,9 +281,12 @@ declare const JTable: {
|
|
|
226
281
|
}>, {
|
|
227
282
|
getInstance: () => any;
|
|
228
283
|
setRecords: (records: Record<string, any>[]) => void;
|
|
284
|
+
getRecords: () => any;
|
|
229
285
|
getSelection: () => any[];
|
|
230
286
|
setSelection: (records: any[]) => void;
|
|
231
287
|
}, {}, {}, {}, {
|
|
288
|
+
id: string;
|
|
289
|
+
modelValue: Record<string, any>[];
|
|
232
290
|
columns: import('..').SchemaRuntimeConfig[];
|
|
233
291
|
records: Record<string, any>[];
|
|
234
292
|
isTree: boolean;
|
|
@@ -248,11 +306,20 @@ declare const JTable: {
|
|
|
248
306
|
heightMode: "auto" | "full";
|
|
249
307
|
maxHeight: string | number;
|
|
250
308
|
highlightMode: "row" | "cross" | "column" | "cell";
|
|
309
|
+
editConfig: import('..').EditConfigType;
|
|
251
310
|
}>;
|
|
252
311
|
__isFragment?: never;
|
|
253
312
|
__isTeleport?: never;
|
|
254
313
|
__isSuspense?: never;
|
|
255
314
|
} & import('vue').ComponentOptionsBase<Readonly<import('vue').ExtractPropTypes<{
|
|
315
|
+
id: {
|
|
316
|
+
type: StringConstructor;
|
|
317
|
+
default: string;
|
|
318
|
+
};
|
|
319
|
+
modelValue: {
|
|
320
|
+
type: import('vue').PropType<Record<string, any>[]>;
|
|
321
|
+
default: () => never[];
|
|
322
|
+
};
|
|
256
323
|
columns: {
|
|
257
324
|
type: import('vue').PropType<import('..').SchemaRuntimeConfig[]>;
|
|
258
325
|
required: true;
|
|
@@ -332,7 +399,20 @@ declare const JTable: {
|
|
|
332
399
|
type: import('vue').PropType<"cross" | "row" | "column" | "cell">;
|
|
333
400
|
default: string;
|
|
334
401
|
};
|
|
402
|
+
editConfig: {
|
|
403
|
+
type: import('vue').PropType<import('..').EditConfigType>;
|
|
404
|
+
default: () => {};
|
|
405
|
+
};
|
|
335
406
|
}>> & Readonly<{
|
|
407
|
+
"onUpdate:modelValue"?: ((value: Record<string, any>[]) => any) | undefined;
|
|
408
|
+
onChange?: ((data: {
|
|
409
|
+
id: string;
|
|
410
|
+
value: any;
|
|
411
|
+
data: any;
|
|
412
|
+
formData: Record<string, any>;
|
|
413
|
+
tableData: Record<string, any>[];
|
|
414
|
+
type: "add" | "delete" | "update" | "sort";
|
|
415
|
+
}) => any) | undefined;
|
|
336
416
|
onRowChange?: ((changeData: Record<string, any>) => any) | undefined;
|
|
337
417
|
onReady?: ((instance: any) => any) | undefined;
|
|
338
418
|
onSelectionChanged?: ((selections: Record<string, any>[]) => any) | undefined;
|
|
@@ -345,9 +425,19 @@ declare const JTable: {
|
|
|
345
425
|
}>, {
|
|
346
426
|
getInstance: () => any;
|
|
347
427
|
setRecords: (records: Record<string, any>[]) => void;
|
|
428
|
+
getRecords: () => any;
|
|
348
429
|
getSelection: () => any[];
|
|
349
430
|
setSelection: (records: any[]) => void;
|
|
350
431
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
432
|
+
"update:modelValue": (value: Record<string, any>[]) => any;
|
|
433
|
+
change: (data: {
|
|
434
|
+
id: string;
|
|
435
|
+
value: any;
|
|
436
|
+
data: any;
|
|
437
|
+
formData: Record<string, any>;
|
|
438
|
+
tableData: Record<string, any>[];
|
|
439
|
+
type: "add" | "delete" | "update" | "sort";
|
|
440
|
+
}) => any;
|
|
351
441
|
rowChange: (changeData: Record<string, any>) => any;
|
|
352
442
|
ready: (instance: any) => any;
|
|
353
443
|
selectionChanged: (selections: Record<string, any>[]) => any;
|
|
@@ -358,6 +448,8 @@ declare const JTable: {
|
|
|
358
448
|
page: number;
|
|
359
449
|
}) => any;
|
|
360
450
|
}, string, {
|
|
451
|
+
id: string;
|
|
452
|
+
modelValue: Record<string, any>[];
|
|
361
453
|
columns: import('..').SchemaRuntimeConfig[];
|
|
362
454
|
records: Record<string, any>[];
|
|
363
455
|
isTree: boolean;
|
|
@@ -377,6 +469,7 @@ declare const JTable: {
|
|
|
377
469
|
heightMode: "auto" | "full";
|
|
378
470
|
maxHeight: string | number;
|
|
379
471
|
highlightMode: "row" | "cross" | "column" | "cell";
|
|
472
|
+
editConfig: import('..').EditConfigType;
|
|
380
473
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & {
|
|
381
474
|
install: (app: import('vue').App) => void;
|
|
382
475
|
};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
2
|
import { SchemaRuntimeConfig } from '../../comp/src/interface';
|
|
3
3
|
import { ButtonCompType } from '../../buttons/src/interface';
|
|
4
|
+
import { EditConfigType } from '../../input-rows/src/interface';
|
|
4
5
|
export interface TableColumnConfig {
|
|
5
6
|
/**
|
|
6
7
|
* @zh 列的宽度
|
|
@@ -76,6 +77,18 @@ export interface TableColumnSorter {
|
|
|
76
77
|
isNot?: boolean;
|
|
77
78
|
}
|
|
78
79
|
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
80
|
+
id: {
|
|
81
|
+
type: StringConstructor;
|
|
82
|
+
default: string;
|
|
83
|
+
};
|
|
84
|
+
/**
|
|
85
|
+
* @zh 输入值【作为表单的编辑表格使用】
|
|
86
|
+
* @vModel
|
|
87
|
+
*/
|
|
88
|
+
modelValue: {
|
|
89
|
+
type: PropType<Record<string, any>[]>;
|
|
90
|
+
default: () => never[];
|
|
91
|
+
};
|
|
79
92
|
/**
|
|
80
93
|
* @zh 表格列配置(支持树形结构)
|
|
81
94
|
*/
|
|
@@ -215,12 +228,29 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
215
228
|
type: PropType<"cross" | "row" | "column" | "cell">;
|
|
216
229
|
default: string;
|
|
217
230
|
};
|
|
231
|
+
/**
|
|
232
|
+
* @zh 编辑参数
|
|
233
|
+
*/
|
|
234
|
+
editConfig: {
|
|
235
|
+
type: PropType<EditConfigType>;
|
|
236
|
+
default: () => {};
|
|
237
|
+
};
|
|
218
238
|
}>, {
|
|
219
239
|
getInstance: () => any;
|
|
220
240
|
setRecords: (records: Record<string, any>[]) => void;
|
|
241
|
+
getRecords: () => any;
|
|
221
242
|
getSelection: () => any[];
|
|
222
243
|
setSelection: (records: any[]) => void;
|
|
223
244
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
245
|
+
"update:modelValue": (value: Record<string, any>[]) => any;
|
|
246
|
+
change: (data: {
|
|
247
|
+
id: string;
|
|
248
|
+
value: any;
|
|
249
|
+
data: any;
|
|
250
|
+
formData: Record<string, any>;
|
|
251
|
+
tableData: Record<string, any>[];
|
|
252
|
+
type: "add" | "delete" | "update" | "sort";
|
|
253
|
+
}) => any;
|
|
224
254
|
rowChange: (changeData: Record<string, any>) => any;
|
|
225
255
|
ready: (instance: any) => any;
|
|
226
256
|
selectionChanged: (selections: Record<string, any>[]) => any;
|
|
@@ -231,6 +261,18 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
231
261
|
page: number;
|
|
232
262
|
}) => any;
|
|
233
263
|
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
264
|
+
id: {
|
|
265
|
+
type: StringConstructor;
|
|
266
|
+
default: string;
|
|
267
|
+
};
|
|
268
|
+
/**
|
|
269
|
+
* @zh 输入值【作为表单的编辑表格使用】
|
|
270
|
+
* @vModel
|
|
271
|
+
*/
|
|
272
|
+
modelValue: {
|
|
273
|
+
type: PropType<Record<string, any>[]>;
|
|
274
|
+
default: () => never[];
|
|
275
|
+
};
|
|
234
276
|
/**
|
|
235
277
|
* @zh 表格列配置(支持树形结构)
|
|
236
278
|
*/
|
|
@@ -370,7 +412,23 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
370
412
|
type: PropType<"cross" | "row" | "column" | "cell">;
|
|
371
413
|
default: string;
|
|
372
414
|
};
|
|
415
|
+
/**
|
|
416
|
+
* @zh 编辑参数
|
|
417
|
+
*/
|
|
418
|
+
editConfig: {
|
|
419
|
+
type: PropType<EditConfigType>;
|
|
420
|
+
default: () => {};
|
|
421
|
+
};
|
|
373
422
|
}>> & Readonly<{
|
|
423
|
+
"onUpdate:modelValue"?: ((value: Record<string, any>[]) => any) | undefined;
|
|
424
|
+
onChange?: ((data: {
|
|
425
|
+
id: string;
|
|
426
|
+
value: any;
|
|
427
|
+
data: any;
|
|
428
|
+
formData: Record<string, any>;
|
|
429
|
+
tableData: Record<string, any>[];
|
|
430
|
+
type: "add" | "delete" | "update" | "sort";
|
|
431
|
+
}) => any) | undefined;
|
|
374
432
|
onRowChange?: ((changeData: Record<string, any>) => any) | undefined;
|
|
375
433
|
onReady?: ((instance: any) => any) | undefined;
|
|
376
434
|
onSelectionChanged?: ((selections: Record<string, any>[]) => any) | undefined;
|
|
@@ -381,6 +439,8 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
381
439
|
page: number;
|
|
382
440
|
}) => any) | undefined;
|
|
383
441
|
}>, {
|
|
442
|
+
id: string;
|
|
443
|
+
modelValue: Record<string, any>[];
|
|
384
444
|
columns: SchemaRuntimeConfig[];
|
|
385
445
|
records: Record<string, any>[];
|
|
386
446
|
isTree: boolean;
|
|
@@ -400,6 +460,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
400
460
|
heightMode: "auto" | "full";
|
|
401
461
|
maxHeight: string | number;
|
|
402
462
|
highlightMode: "row" | "cross" | "column" | "cell";
|
|
463
|
+
editConfig: EditConfigType;
|
|
403
464
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
404
465
|
tableContainer: HTMLDivElement;
|
|
405
466
|
}, HTMLDivElement>;
|