@a2simcode/ui 0.0.29 → 0.0.31
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 -3
- package/dist/components/table/src/table.vue.d.ts +61 -2
- package/dist/simcode-ui.es.js +3867 -3796
- 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;
|
|
@@ -7,7 +15,6 @@ declare const JTable: {
|
|
|
7
15
|
};
|
|
8
16
|
records: {
|
|
9
17
|
type: import('vue').PropType<Record<string, any>[]>;
|
|
10
|
-
required: true;
|
|
11
18
|
default: () => never[];
|
|
12
19
|
};
|
|
13
20
|
isTree: {
|
|
@@ -79,7 +86,20 @@ declare const JTable: {
|
|
|
79
86
|
type: import('vue').PropType<"cross" | "row" | "column" | "cell">;
|
|
80
87
|
default: string;
|
|
81
88
|
};
|
|
89
|
+
editConfig: {
|
|
90
|
+
type: import('vue').PropType<import('..').EditConfigType>;
|
|
91
|
+
default: () => {};
|
|
92
|
+
};
|
|
82
93
|
}>> & Readonly<{
|
|
94
|
+
"onUpdate:modelValue"?: ((value: Record<string, any>[]) => any) | undefined;
|
|
95
|
+
onChange?: ((data: {
|
|
96
|
+
id: string;
|
|
97
|
+
value: any;
|
|
98
|
+
data: any;
|
|
99
|
+
formData: Record<string, any>;
|
|
100
|
+
tableData: Record<string, any>[];
|
|
101
|
+
type: "add" | "delete" | "update" | "sort";
|
|
102
|
+
}) => any) | undefined;
|
|
83
103
|
onRowChange?: ((changeData: Record<string, any>) => any) | undefined;
|
|
84
104
|
onReady?: ((instance: any) => any) | undefined;
|
|
85
105
|
onSelectionChanged?: ((selections: Record<string, any>[]) => any) | undefined;
|
|
@@ -92,9 +112,19 @@ declare const JTable: {
|
|
|
92
112
|
}>, {
|
|
93
113
|
getInstance: () => any;
|
|
94
114
|
setRecords: (records: Record<string, any>[]) => void;
|
|
115
|
+
getRecords: () => any;
|
|
95
116
|
getSelection: () => any[];
|
|
96
117
|
setSelection: (records: any[]) => void;
|
|
97
118
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
119
|
+
"update:modelValue": (value: Record<string, any>[]) => any;
|
|
120
|
+
change: (data: {
|
|
121
|
+
id: string;
|
|
122
|
+
value: any;
|
|
123
|
+
data: any;
|
|
124
|
+
formData: Record<string, any>;
|
|
125
|
+
tableData: Record<string, any>[];
|
|
126
|
+
type: "add" | "delete" | "update" | "sort";
|
|
127
|
+
}) => any;
|
|
98
128
|
rowChange: (changeData: Record<string, any>) => any;
|
|
99
129
|
ready: (instance: any) => any;
|
|
100
130
|
selectionChanged: (selections: Record<string, any>[]) => any;
|
|
@@ -105,6 +135,8 @@ declare const JTable: {
|
|
|
105
135
|
page: number;
|
|
106
136
|
}) => any;
|
|
107
137
|
}, import('vue').PublicProps, {
|
|
138
|
+
id: string;
|
|
139
|
+
modelValue: Record<string, any>[];
|
|
108
140
|
columns: import('..').SchemaRuntimeConfig[];
|
|
109
141
|
records: Record<string, any>[];
|
|
110
142
|
isTree: boolean;
|
|
@@ -124,6 +156,7 @@ declare const JTable: {
|
|
|
124
156
|
heightMode: "auto" | "full";
|
|
125
157
|
maxHeight: string | number;
|
|
126
158
|
highlightMode: "row" | "cross" | "column" | "cell";
|
|
159
|
+
editConfig: import('..').EditConfigType;
|
|
127
160
|
}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
|
|
128
161
|
tableContainer: HTMLDivElement;
|
|
129
162
|
}, HTMLDivElement, import('vue').ComponentProvideOptions, {
|
|
@@ -134,6 +167,14 @@ declare const JTable: {
|
|
|
134
167
|
M: {};
|
|
135
168
|
Defaults: {};
|
|
136
169
|
}, Readonly<import('vue').ExtractPropTypes<{
|
|
170
|
+
id: {
|
|
171
|
+
type: StringConstructor;
|
|
172
|
+
default: string;
|
|
173
|
+
};
|
|
174
|
+
modelValue: {
|
|
175
|
+
type: import('vue').PropType<Record<string, any>[]>;
|
|
176
|
+
default: () => never[];
|
|
177
|
+
};
|
|
137
178
|
columns: {
|
|
138
179
|
type: import('vue').PropType<import('..').SchemaRuntimeConfig[]>;
|
|
139
180
|
required: true;
|
|
@@ -141,7 +182,6 @@ declare const JTable: {
|
|
|
141
182
|
};
|
|
142
183
|
records: {
|
|
143
184
|
type: import('vue').PropType<Record<string, any>[]>;
|
|
144
|
-
required: true;
|
|
145
185
|
default: () => never[];
|
|
146
186
|
};
|
|
147
187
|
isTree: {
|
|
@@ -213,7 +253,20 @@ declare const JTable: {
|
|
|
213
253
|
type: import('vue').PropType<"cross" | "row" | "column" | "cell">;
|
|
214
254
|
default: string;
|
|
215
255
|
};
|
|
256
|
+
editConfig: {
|
|
257
|
+
type: import('vue').PropType<import('..').EditConfigType>;
|
|
258
|
+
default: () => {};
|
|
259
|
+
};
|
|
216
260
|
}>> & Readonly<{
|
|
261
|
+
"onUpdate:modelValue"?: ((value: Record<string, any>[]) => any) | undefined;
|
|
262
|
+
onChange?: ((data: {
|
|
263
|
+
id: string;
|
|
264
|
+
value: any;
|
|
265
|
+
data: any;
|
|
266
|
+
formData: Record<string, any>;
|
|
267
|
+
tableData: Record<string, any>[];
|
|
268
|
+
type: "add" | "delete" | "update" | "sort";
|
|
269
|
+
}) => any) | undefined;
|
|
217
270
|
onRowChange?: ((changeData: Record<string, any>) => any) | undefined;
|
|
218
271
|
onReady?: ((instance: any) => any) | undefined;
|
|
219
272
|
onSelectionChanged?: ((selections: Record<string, any>[]) => any) | undefined;
|
|
@@ -226,9 +279,12 @@ declare const JTable: {
|
|
|
226
279
|
}>, {
|
|
227
280
|
getInstance: () => any;
|
|
228
281
|
setRecords: (records: Record<string, any>[]) => void;
|
|
282
|
+
getRecords: () => any;
|
|
229
283
|
getSelection: () => any[];
|
|
230
284
|
setSelection: (records: any[]) => void;
|
|
231
285
|
}, {}, {}, {}, {
|
|
286
|
+
id: string;
|
|
287
|
+
modelValue: Record<string, any>[];
|
|
232
288
|
columns: import('..').SchemaRuntimeConfig[];
|
|
233
289
|
records: Record<string, any>[];
|
|
234
290
|
isTree: boolean;
|
|
@@ -248,11 +304,20 @@ declare const JTable: {
|
|
|
248
304
|
heightMode: "auto" | "full";
|
|
249
305
|
maxHeight: string | number;
|
|
250
306
|
highlightMode: "row" | "cross" | "column" | "cell";
|
|
307
|
+
editConfig: import('..').EditConfigType;
|
|
251
308
|
}>;
|
|
252
309
|
__isFragment?: never;
|
|
253
310
|
__isTeleport?: never;
|
|
254
311
|
__isSuspense?: never;
|
|
255
312
|
} & import('vue').ComponentOptionsBase<Readonly<import('vue').ExtractPropTypes<{
|
|
313
|
+
id: {
|
|
314
|
+
type: StringConstructor;
|
|
315
|
+
default: string;
|
|
316
|
+
};
|
|
317
|
+
modelValue: {
|
|
318
|
+
type: import('vue').PropType<Record<string, any>[]>;
|
|
319
|
+
default: () => never[];
|
|
320
|
+
};
|
|
256
321
|
columns: {
|
|
257
322
|
type: import('vue').PropType<import('..').SchemaRuntimeConfig[]>;
|
|
258
323
|
required: true;
|
|
@@ -260,7 +325,6 @@ declare const JTable: {
|
|
|
260
325
|
};
|
|
261
326
|
records: {
|
|
262
327
|
type: import('vue').PropType<Record<string, any>[]>;
|
|
263
|
-
required: true;
|
|
264
328
|
default: () => never[];
|
|
265
329
|
};
|
|
266
330
|
isTree: {
|
|
@@ -332,7 +396,20 @@ declare const JTable: {
|
|
|
332
396
|
type: import('vue').PropType<"cross" | "row" | "column" | "cell">;
|
|
333
397
|
default: string;
|
|
334
398
|
};
|
|
399
|
+
editConfig: {
|
|
400
|
+
type: import('vue').PropType<import('..').EditConfigType>;
|
|
401
|
+
default: () => {};
|
|
402
|
+
};
|
|
335
403
|
}>> & Readonly<{
|
|
404
|
+
"onUpdate:modelValue"?: ((value: Record<string, any>[]) => any) | undefined;
|
|
405
|
+
onChange?: ((data: {
|
|
406
|
+
id: string;
|
|
407
|
+
value: any;
|
|
408
|
+
data: any;
|
|
409
|
+
formData: Record<string, any>;
|
|
410
|
+
tableData: Record<string, any>[];
|
|
411
|
+
type: "add" | "delete" | "update" | "sort";
|
|
412
|
+
}) => any) | undefined;
|
|
336
413
|
onRowChange?: ((changeData: Record<string, any>) => any) | undefined;
|
|
337
414
|
onReady?: ((instance: any) => any) | undefined;
|
|
338
415
|
onSelectionChanged?: ((selections: Record<string, any>[]) => any) | undefined;
|
|
@@ -345,9 +422,19 @@ declare const JTable: {
|
|
|
345
422
|
}>, {
|
|
346
423
|
getInstance: () => any;
|
|
347
424
|
setRecords: (records: Record<string, any>[]) => void;
|
|
425
|
+
getRecords: () => any;
|
|
348
426
|
getSelection: () => any[];
|
|
349
427
|
setSelection: (records: any[]) => void;
|
|
350
428
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
429
|
+
"update:modelValue": (value: Record<string, any>[]) => any;
|
|
430
|
+
change: (data: {
|
|
431
|
+
id: string;
|
|
432
|
+
value: any;
|
|
433
|
+
data: any;
|
|
434
|
+
formData: Record<string, any>;
|
|
435
|
+
tableData: Record<string, any>[];
|
|
436
|
+
type: "add" | "delete" | "update" | "sort";
|
|
437
|
+
}) => any;
|
|
351
438
|
rowChange: (changeData: Record<string, any>) => any;
|
|
352
439
|
ready: (instance: any) => any;
|
|
353
440
|
selectionChanged: (selections: Record<string, any>[]) => any;
|
|
@@ -358,6 +445,8 @@ declare const JTable: {
|
|
|
358
445
|
page: number;
|
|
359
446
|
}) => any;
|
|
360
447
|
}, string, {
|
|
448
|
+
id: string;
|
|
449
|
+
modelValue: Record<string, any>[];
|
|
361
450
|
columns: import('..').SchemaRuntimeConfig[];
|
|
362
451
|
records: Record<string, any>[];
|
|
363
452
|
isTree: boolean;
|
|
@@ -377,6 +466,7 @@ declare const JTable: {
|
|
|
377
466
|
heightMode: "auto" | "full";
|
|
378
467
|
maxHeight: string | number;
|
|
379
468
|
highlightMode: "row" | "cross" | "column" | "cell";
|
|
469
|
+
editConfig: import('..').EditConfigType;
|
|
380
470
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & {
|
|
381
471
|
install: (app: import('vue').App) => void;
|
|
382
472
|
};
|
|
@@ -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
|
*/
|
|
@@ -89,7 +102,6 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
89
102
|
*/
|
|
90
103
|
records: {
|
|
91
104
|
type: PropType<Record<string, any>[]>;
|
|
92
|
-
required: true;
|
|
93
105
|
default: () => never[];
|
|
94
106
|
};
|
|
95
107
|
/**
|
|
@@ -215,12 +227,29 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
215
227
|
type: PropType<"cross" | "row" | "column" | "cell">;
|
|
216
228
|
default: string;
|
|
217
229
|
};
|
|
230
|
+
/**
|
|
231
|
+
* @zh 编辑参数
|
|
232
|
+
*/
|
|
233
|
+
editConfig: {
|
|
234
|
+
type: PropType<EditConfigType>;
|
|
235
|
+
default: () => {};
|
|
236
|
+
};
|
|
218
237
|
}>, {
|
|
219
238
|
getInstance: () => any;
|
|
220
239
|
setRecords: (records: Record<string, any>[]) => void;
|
|
240
|
+
getRecords: () => any;
|
|
221
241
|
getSelection: () => any[];
|
|
222
242
|
setSelection: (records: any[]) => void;
|
|
223
243
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
244
|
+
"update:modelValue": (value: Record<string, any>[]) => any;
|
|
245
|
+
change: (data: {
|
|
246
|
+
id: string;
|
|
247
|
+
value: any;
|
|
248
|
+
data: any;
|
|
249
|
+
formData: Record<string, any>;
|
|
250
|
+
tableData: Record<string, any>[];
|
|
251
|
+
type: "add" | "delete" | "update" | "sort";
|
|
252
|
+
}) => any;
|
|
224
253
|
rowChange: (changeData: Record<string, any>) => any;
|
|
225
254
|
ready: (instance: any) => any;
|
|
226
255
|
selectionChanged: (selections: Record<string, any>[]) => any;
|
|
@@ -231,6 +260,18 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
231
260
|
page: number;
|
|
232
261
|
}) => any;
|
|
233
262
|
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
263
|
+
id: {
|
|
264
|
+
type: StringConstructor;
|
|
265
|
+
default: string;
|
|
266
|
+
};
|
|
267
|
+
/**
|
|
268
|
+
* @zh 输入值【作为表单的编辑表格使用】
|
|
269
|
+
* @vModel
|
|
270
|
+
*/
|
|
271
|
+
modelValue: {
|
|
272
|
+
type: PropType<Record<string, any>[]>;
|
|
273
|
+
default: () => never[];
|
|
274
|
+
};
|
|
234
275
|
/**
|
|
235
276
|
* @zh 表格列配置(支持树形结构)
|
|
236
277
|
*/
|
|
@@ -244,7 +285,6 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
244
285
|
*/
|
|
245
286
|
records: {
|
|
246
287
|
type: PropType<Record<string, any>[]>;
|
|
247
|
-
required: true;
|
|
248
288
|
default: () => never[];
|
|
249
289
|
};
|
|
250
290
|
/**
|
|
@@ -370,7 +410,23 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
370
410
|
type: PropType<"cross" | "row" | "column" | "cell">;
|
|
371
411
|
default: string;
|
|
372
412
|
};
|
|
413
|
+
/**
|
|
414
|
+
* @zh 编辑参数
|
|
415
|
+
*/
|
|
416
|
+
editConfig: {
|
|
417
|
+
type: PropType<EditConfigType>;
|
|
418
|
+
default: () => {};
|
|
419
|
+
};
|
|
373
420
|
}>> & Readonly<{
|
|
421
|
+
"onUpdate:modelValue"?: ((value: Record<string, any>[]) => any) | undefined;
|
|
422
|
+
onChange?: ((data: {
|
|
423
|
+
id: string;
|
|
424
|
+
value: any;
|
|
425
|
+
data: any;
|
|
426
|
+
formData: Record<string, any>;
|
|
427
|
+
tableData: Record<string, any>[];
|
|
428
|
+
type: "add" | "delete" | "update" | "sort";
|
|
429
|
+
}) => any) | undefined;
|
|
374
430
|
onRowChange?: ((changeData: Record<string, any>) => any) | undefined;
|
|
375
431
|
onReady?: ((instance: any) => any) | undefined;
|
|
376
432
|
onSelectionChanged?: ((selections: Record<string, any>[]) => any) | undefined;
|
|
@@ -381,6 +437,8 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
381
437
|
page: number;
|
|
382
438
|
}) => any) | undefined;
|
|
383
439
|
}>, {
|
|
440
|
+
id: string;
|
|
441
|
+
modelValue: Record<string, any>[];
|
|
384
442
|
columns: SchemaRuntimeConfig[];
|
|
385
443
|
records: Record<string, any>[];
|
|
386
444
|
isTree: boolean;
|
|
@@ -400,6 +458,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
400
458
|
heightMode: "auto" | "full";
|
|
401
459
|
maxHeight: string | number;
|
|
402
460
|
highlightMode: "row" | "cross" | "column" | "cell";
|
|
461
|
+
editConfig: EditConfigType;
|
|
403
462
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
404
463
|
tableContainer: HTMLDivElement;
|
|
405
464
|
}, HTMLDivElement>;
|