@a2simcode/ui 0.0.37 → 0.0.39
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/buttons/src/interface.d.ts +2 -2
- package/dist/components/comp/index.d.ts +6 -6
- package/dist/components/comp/src/comp.vue.d.ts +4 -4
- package/dist/components/comp/src/interface.d.ts +14 -14
- package/dist/components/dynamic-layer/index.d.ts +3 -3
- package/dist/components/dynamic-layer/src/dynamic-layer.vue.d.ts +2 -2
- package/dist/components/dynamic-layer/src/interface.d.ts +1 -1
- package/dist/components/dynamic-layer/src/useLayer.d.ts +2 -2
- package/dist/components/form/src/form.vue.d.ts +1 -1
- package/dist/components/form/src/interface.d.ts +4 -23
- package/dist/components/form-item/index.d.ts +6 -6
- package/dist/components/form-item/src/form-item.vue.d.ts +4 -4
- package/dist/components/guid/index.d.ts +3 -3
- package/dist/components/guid/src/guid.vue.d.ts +2 -7
- package/dist/components/index.d.ts +7 -7
- package/dist/components/input-layer/index.d.ts +20 -20
- package/dist/components/input-layer/src/input-layer.vue.d.ts +20 -20
- package/dist/components/input-rows/index.d.ts +6 -6
- package/dist/components/input-rows/src/input-rows.vue.d.ts +4 -4
- package/dist/components/layer-form/index.d.ts +6 -6
- package/dist/components/layer-form/src/layer-form.vue.d.ts +4 -4
- package/dist/components/page/src/interface.d.ts +2 -13
- package/dist/components/table/index.d.ts +6 -6
- package/dist/components/table/src/interface.d.ts +81 -0
- package/dist/components/table/src/table.vue.d.ts +5 -79
- package/dist/components/table-panel/index.d.ts +22 -22
- package/dist/components/table-panel/src/column-panel.vue.d.ts +4 -4
- package/dist/components/table-panel/src/filter-panel.vue.d.ts +4 -4
- package/dist/components/table-panel/src/keyword-panel.vue.d.ts +4 -4
- package/dist/components/table-panel/src/order-panel.vue.d.ts +4 -4
- package/dist/components/table-panel/src/table-panel.vue.d.ts +20 -20
- package/dist/index.d.ts +1 -3
- package/dist/ui.css +1 -1
- package/package.json +2 -2
|
@@ -343,7 +343,7 @@ declare const _default: import('vue').DefineComponent<InputLayerProps, {}, {}, {
|
|
|
343
343
|
}) | null;
|
|
344
344
|
tableRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
|
|
345
345
|
columns: {
|
|
346
|
-
type: import('vue').PropType<import('../..').
|
|
346
|
+
type: import('vue').PropType<import('../..').SchemaConfig[]>;
|
|
347
347
|
required: true;
|
|
348
348
|
default: () => never[];
|
|
349
349
|
};
|
|
@@ -419,7 +419,7 @@ declare const _default: import('vue').DefineComponent<InputLayerProps, {}, {}, {
|
|
|
419
419
|
}, import('vue').PublicProps, {
|
|
420
420
|
immediate: boolean;
|
|
421
421
|
buttons: import('../..').ButtonCompType[];
|
|
422
|
-
columns: import('../..').
|
|
422
|
+
columns: import('../..').SchemaConfig[];
|
|
423
423
|
isTree: boolean;
|
|
424
424
|
isShowNumber: boolean;
|
|
425
425
|
isMultiple: boolean;
|
|
@@ -435,7 +435,7 @@ declare const _default: import('vue').DefineComponent<InputLayerProps, {}, {}, {
|
|
|
435
435
|
}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
|
|
436
436
|
keywordPanelRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
|
|
437
437
|
columns: {
|
|
438
|
-
type: import('vue').PropType<import('../..').
|
|
438
|
+
type: import('vue').PropType<import('../..').SchemaConfig[]>;
|
|
439
439
|
default: () => never[];
|
|
440
440
|
};
|
|
441
441
|
checkAll: {
|
|
@@ -453,7 +453,7 @@ declare const _default: import('vue').DefineComponent<InputLayerProps, {}, {}, {
|
|
|
453
453
|
"update:checkAll": (value: boolean) => any;
|
|
454
454
|
"update:checkFields": (value: string[]) => any;
|
|
455
455
|
}, import('vue').PublicProps, {
|
|
456
|
-
columns: import('../..').
|
|
456
|
+
columns: import('../..').SchemaConfig[];
|
|
457
457
|
}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLDivElement, import('vue').ComponentProvideOptions, {
|
|
458
458
|
P: {};
|
|
459
459
|
B: {};
|
|
@@ -463,7 +463,7 @@ declare const _default: import('vue').DefineComponent<InputLayerProps, {}, {}, {
|
|
|
463
463
|
Defaults: {};
|
|
464
464
|
}, Readonly<import('vue').ExtractPropTypes<{
|
|
465
465
|
columns: {
|
|
466
|
-
type: import('vue').PropType<import('../..').
|
|
466
|
+
type: import('vue').PropType<import('../..').SchemaConfig[]>;
|
|
467
467
|
default: () => never[];
|
|
468
468
|
};
|
|
469
469
|
checkAll: {
|
|
@@ -478,11 +478,11 @@ declare const _default: import('vue').DefineComponent<InputLayerProps, {}, {}, {
|
|
|
478
478
|
}>, {
|
|
479
479
|
init: () => void;
|
|
480
480
|
}, {}, {}, {}, {
|
|
481
|
-
columns: import('../..').
|
|
481
|
+
columns: import('../..').SchemaConfig[];
|
|
482
482
|
}> | null;
|
|
483
483
|
filterPanelRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
|
|
484
484
|
columns: {
|
|
485
|
-
type: import('vue').PropType<import('../..').
|
|
485
|
+
type: import('vue').PropType<import('../..').SchemaConfig[]>;
|
|
486
486
|
default: () => never[];
|
|
487
487
|
};
|
|
488
488
|
searchFieldList: {
|
|
@@ -508,7 +508,7 @@ declare const _default: import('vue').DefineComponent<InputLayerProps, {}, {}, {
|
|
|
508
508
|
"update:relation": (value: string) => void;
|
|
509
509
|
"update:isPin": (value: boolean) => void;
|
|
510
510
|
}, import('vue').PublicProps, {
|
|
511
|
-
columns: import('../..').
|
|
511
|
+
columns: import('../..').SchemaConfig[];
|
|
512
512
|
searchFieldList: Record<string, any>[];
|
|
513
513
|
}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLDivElement, import('vue').ComponentProvideOptions, {
|
|
514
514
|
P: {};
|
|
@@ -519,7 +519,7 @@ declare const _default: import('vue').DefineComponent<InputLayerProps, {}, {}, {
|
|
|
519
519
|
Defaults: {};
|
|
520
520
|
}, Readonly<import('vue').ExtractPropTypes<{
|
|
521
521
|
columns: {
|
|
522
|
-
type: import('vue').PropType<import('../..').
|
|
522
|
+
type: import('vue').PropType<import('../..').SchemaConfig[]>;
|
|
523
523
|
default: () => never[];
|
|
524
524
|
};
|
|
525
525
|
searchFieldList: {
|
|
@@ -540,12 +540,12 @@ declare const _default: import('vue').DefineComponent<InputLayerProps, {}, {}, {
|
|
|
540
540
|
}>, {
|
|
541
541
|
getSearchFields: () => Record<string, any>[];
|
|
542
542
|
}, {}, {}, {}, {
|
|
543
|
-
columns: import('../..').
|
|
543
|
+
columns: import('../..').SchemaConfig[];
|
|
544
544
|
searchFieldList: Record<string, any>[];
|
|
545
545
|
}> | null;
|
|
546
546
|
orderPanelRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
|
|
547
547
|
columns: {
|
|
548
|
-
type: import('vue').PropType<import('../..').
|
|
548
|
+
type: import('vue').PropType<import('../..').SchemaConfig[]>;
|
|
549
549
|
default: () => never[];
|
|
550
550
|
};
|
|
551
551
|
}>> & Readonly<{
|
|
@@ -557,7 +557,7 @@ declare const _default: import('vue').DefineComponent<InputLayerProps, {}, {}, {
|
|
|
557
557
|
clear: (...args: any[]) => void;
|
|
558
558
|
save: (...args: any[]) => void;
|
|
559
559
|
}, import('vue').PublicProps, {
|
|
560
|
-
columns: import('../..').
|
|
560
|
+
columns: import('../..').SchemaConfig[];
|
|
561
561
|
}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLDivElement, import('vue').ComponentProvideOptions, {
|
|
562
562
|
P: {};
|
|
563
563
|
B: {};
|
|
@@ -567,7 +567,7 @@ declare const _default: import('vue').DefineComponent<InputLayerProps, {}, {}, {
|
|
|
567
567
|
Defaults: {};
|
|
568
568
|
}, Readonly<import('vue').ExtractPropTypes<{
|
|
569
569
|
columns: {
|
|
570
|
-
type: import('vue').PropType<import('../..').
|
|
570
|
+
type: import('vue').PropType<import('../..').SchemaConfig[]>;
|
|
571
571
|
default: () => never[];
|
|
572
572
|
};
|
|
573
573
|
}>> & Readonly<{
|
|
@@ -576,11 +576,11 @@ declare const _default: import('vue').DefineComponent<InputLayerProps, {}, {}, {
|
|
|
576
576
|
}>, {
|
|
577
577
|
init: (data: Record<string, any>[]) => void;
|
|
578
578
|
}, {}, {}, {}, {
|
|
579
|
-
columns: import('../..').
|
|
579
|
+
columns: import('../..').SchemaConfig[];
|
|
580
580
|
}> | null;
|
|
581
581
|
columnPanelRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
|
|
582
582
|
columns: {
|
|
583
|
-
type: import('vue').PropType<import('../..').
|
|
583
|
+
type: import('vue').PropType<import('../..').SchemaConfig[]>;
|
|
584
584
|
default: () => never[];
|
|
585
585
|
};
|
|
586
586
|
columnConfig: {
|
|
@@ -593,7 +593,7 @@ declare const _default: import('vue').DefineComponent<InputLayerProps, {}, {}, {
|
|
|
593
593
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
594
594
|
save: (...args: any[]) => void;
|
|
595
595
|
}, import('vue').PublicProps, {
|
|
596
|
-
columns: import('../..').
|
|
596
|
+
columns: import('../..').SchemaConfig[];
|
|
597
597
|
}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
|
|
598
598
|
treeRef: unknown;
|
|
599
599
|
}, HTMLDivElement, import('vue').ComponentProvideOptions, {
|
|
@@ -605,7 +605,7 @@ declare const _default: import('vue').DefineComponent<InputLayerProps, {}, {}, {
|
|
|
605
605
|
Defaults: {};
|
|
606
606
|
}, Readonly<import('vue').ExtractPropTypes<{
|
|
607
607
|
columns: {
|
|
608
|
-
type: import('vue').PropType<import('../..').
|
|
608
|
+
type: import('vue').PropType<import('../..').SchemaConfig[]>;
|
|
609
609
|
default: () => never[];
|
|
610
610
|
};
|
|
611
611
|
columnConfig: {
|
|
@@ -616,7 +616,7 @@ declare const _default: import('vue').DefineComponent<InputLayerProps, {}, {}, {
|
|
|
616
616
|
}>, {
|
|
617
617
|
init: () => void;
|
|
618
618
|
}, {}, {}, {}, {
|
|
619
|
-
columns: import('../..').
|
|
619
|
+
columns: import('../..').SchemaConfig[];
|
|
620
620
|
}> | null;
|
|
621
621
|
tableRef: unknown;
|
|
622
622
|
}, HTMLDivElement, import('vue').ComponentProvideOptions, {
|
|
@@ -628,7 +628,7 @@ declare const _default: import('vue').DefineComponent<InputLayerProps, {}, {}, {
|
|
|
628
628
|
Defaults: {};
|
|
629
629
|
}, Readonly<import('vue').ExtractPropTypes<{
|
|
630
630
|
columns: {
|
|
631
|
-
type: import('vue').PropType<import('../..').
|
|
631
|
+
type: import('vue').PropType<import('../..').SchemaConfig[]>;
|
|
632
632
|
required: true;
|
|
633
633
|
default: () => never[];
|
|
634
634
|
};
|
|
@@ -701,7 +701,7 @@ declare const _default: import('vue').DefineComponent<InputLayerProps, {}, {}, {
|
|
|
701
701
|
}, {}, {}, {}, {
|
|
702
702
|
immediate: boolean;
|
|
703
703
|
buttons: import('../..').ButtonCompType[];
|
|
704
|
-
columns: import('../..').
|
|
704
|
+
columns: import('../..').SchemaConfig[];
|
|
705
705
|
isTree: boolean;
|
|
706
706
|
isShowNumber: boolean;
|
|
707
707
|
isMultiple: boolean;
|
|
@@ -5,7 +5,7 @@ export declare const JInputRows: {
|
|
|
5
5
|
default: () => never[];
|
|
6
6
|
};
|
|
7
7
|
columns: {
|
|
8
|
-
type: import('vue').PropType<import('..').
|
|
8
|
+
type: import('vue').PropType<import('..').SchemaConfig[]>;
|
|
9
9
|
default: () => never[];
|
|
10
10
|
};
|
|
11
11
|
editConfig: {
|
|
@@ -57,7 +57,7 @@ export declare const JInputRows: {
|
|
|
57
57
|
}, import('vue').PublicProps, {
|
|
58
58
|
id: string;
|
|
59
59
|
modelValue: Record<string, any>[];
|
|
60
|
-
columns: import('..').
|
|
60
|
+
columns: import('..').SchemaConfig[];
|
|
61
61
|
editConfig: import('.').EditConfigType;
|
|
62
62
|
isWrap: boolean;
|
|
63
63
|
isCompact: boolean;
|
|
@@ -78,7 +78,7 @@ export declare const JInputRows: {
|
|
|
78
78
|
default: () => never[];
|
|
79
79
|
};
|
|
80
80
|
columns: {
|
|
81
|
-
type: import('vue').PropType<import('..').
|
|
81
|
+
type: import('vue').PropType<import('..').SchemaConfig[]>;
|
|
82
82
|
default: () => never[];
|
|
83
83
|
};
|
|
84
84
|
editConfig: {
|
|
@@ -119,7 +119,7 @@ export declare const JInputRows: {
|
|
|
119
119
|
}>, {}, {}, {}, {}, {
|
|
120
120
|
id: string;
|
|
121
121
|
modelValue: Record<string, any>[];
|
|
122
|
-
columns: import('..').
|
|
122
|
+
columns: import('..').SchemaConfig[];
|
|
123
123
|
editConfig: import('.').EditConfigType;
|
|
124
124
|
isWrap: boolean;
|
|
125
125
|
isCompact: boolean;
|
|
@@ -135,7 +135,7 @@ export declare const JInputRows: {
|
|
|
135
135
|
default: () => never[];
|
|
136
136
|
};
|
|
137
137
|
columns: {
|
|
138
|
-
type: import('vue').PropType<import('..').
|
|
138
|
+
type: import('vue').PropType<import('..').SchemaConfig[]>;
|
|
139
139
|
default: () => never[];
|
|
140
140
|
};
|
|
141
141
|
editConfig: {
|
|
@@ -187,7 +187,7 @@ export declare const JInputRows: {
|
|
|
187
187
|
}, string, {
|
|
188
188
|
id: string;
|
|
189
189
|
modelValue: Record<string, any>[];
|
|
190
|
-
columns: import('..').
|
|
190
|
+
columns: import('..').SchemaConfig[];
|
|
191
191
|
editConfig: import('.').EditConfigType;
|
|
192
192
|
isWrap: boolean;
|
|
193
193
|
isCompact: boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { EditConfigType } from './interface';
|
|
2
|
-
import {
|
|
2
|
+
import { SchemaConfig } from '../../comp/src/interface';
|
|
3
3
|
import { PropType } from 'vue';
|
|
4
4
|
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
5
5
|
/**
|
|
@@ -14,7 +14,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
14
14
|
* @zh 列配置
|
|
15
15
|
*/
|
|
16
16
|
columns: {
|
|
17
|
-
type: PropType<
|
|
17
|
+
type: PropType<SchemaConfig[]>;
|
|
18
18
|
default: () => never[];
|
|
19
19
|
};
|
|
20
20
|
/**
|
|
@@ -83,7 +83,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
83
83
|
* @zh 列配置
|
|
84
84
|
*/
|
|
85
85
|
columns: {
|
|
86
|
-
type: PropType<
|
|
86
|
+
type: PropType<SchemaConfig[]>;
|
|
87
87
|
default: () => never[];
|
|
88
88
|
};
|
|
89
89
|
/**
|
|
@@ -142,7 +142,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
142
142
|
}>, {
|
|
143
143
|
id: string;
|
|
144
144
|
modelValue: Record<string, any>[];
|
|
145
|
-
columns:
|
|
145
|
+
columns: SchemaConfig[];
|
|
146
146
|
editConfig: EditConfigType;
|
|
147
147
|
isWrap: boolean;
|
|
148
148
|
isCompact: boolean;
|
|
@@ -35,7 +35,7 @@ export declare const JLayerForm: {
|
|
|
35
35
|
default: () => {};
|
|
36
36
|
};
|
|
37
37
|
schema: {
|
|
38
|
-
type: import('vue').PropType<import('..').
|
|
38
|
+
type: import('vue').PropType<import('..').SchemaConfig[]>;
|
|
39
39
|
default: () => never[];
|
|
40
40
|
};
|
|
41
41
|
}>> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
|
|
@@ -44,7 +44,7 @@ export declare const JLayerForm: {
|
|
|
44
44
|
type: "link" | "default" | "text" | "primary" | "dashed" | "ghost";
|
|
45
45
|
layerWidth: number;
|
|
46
46
|
layerHeight: number;
|
|
47
|
-
schema: import('..').
|
|
47
|
+
schema: import('..').SchemaConfig[];
|
|
48
48
|
layerLabel: string;
|
|
49
49
|
formConfig: {
|
|
50
50
|
labelWidth: number;
|
|
@@ -96,7 +96,7 @@ export declare const JLayerForm: {
|
|
|
96
96
|
default: () => {};
|
|
97
97
|
};
|
|
98
98
|
schema: {
|
|
99
|
-
type: import('vue').PropType<import('..').
|
|
99
|
+
type: import('vue').PropType<import('..').SchemaConfig[]>;
|
|
100
100
|
default: () => never[];
|
|
101
101
|
};
|
|
102
102
|
}>> & Readonly<{}>, {}, {}, {}, {}, {
|
|
@@ -105,7 +105,7 @@ export declare const JLayerForm: {
|
|
|
105
105
|
type: "link" | "default" | "text" | "primary" | "dashed" | "ghost";
|
|
106
106
|
layerWidth: number;
|
|
107
107
|
layerHeight: number;
|
|
108
|
-
schema: import('..').
|
|
108
|
+
schema: import('..').SchemaConfig[];
|
|
109
109
|
layerLabel: string;
|
|
110
110
|
formConfig: {
|
|
111
111
|
labelWidth: number;
|
|
@@ -154,7 +154,7 @@ export declare const JLayerForm: {
|
|
|
154
154
|
default: () => {};
|
|
155
155
|
};
|
|
156
156
|
schema: {
|
|
157
|
-
type: import('vue').PropType<import('..').
|
|
157
|
+
type: import('vue').PropType<import('..').SchemaConfig[]>;
|
|
158
158
|
default: () => never[];
|
|
159
159
|
};
|
|
160
160
|
}>> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
|
|
@@ -163,7 +163,7 @@ export declare const JLayerForm: {
|
|
|
163
163
|
type: "link" | "default" | "text" | "primary" | "dashed" | "ghost";
|
|
164
164
|
layerWidth: number;
|
|
165
165
|
layerHeight: number;
|
|
166
|
-
schema: import('..').
|
|
166
|
+
schema: import('..').SchemaConfig[];
|
|
167
167
|
layerLabel: string;
|
|
168
168
|
formConfig: {
|
|
169
169
|
labelWidth: number;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { SchemaConfig } from '../../comp/src/interface';
|
|
2
2
|
import { PropType } from 'vue';
|
|
3
3
|
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
4
4
|
/**
|
|
@@ -62,7 +62,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
62
62
|
* @zh 表单配置
|
|
63
63
|
*/
|
|
64
64
|
schema: {
|
|
65
|
-
type: PropType<
|
|
65
|
+
type: PropType<SchemaConfig[]>;
|
|
66
66
|
default: () => never[];
|
|
67
67
|
};
|
|
68
68
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
@@ -127,7 +127,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
127
127
|
* @zh 表单配置
|
|
128
128
|
*/
|
|
129
129
|
schema: {
|
|
130
|
-
type: PropType<
|
|
130
|
+
type: PropType<SchemaConfig[]>;
|
|
131
131
|
default: () => never[];
|
|
132
132
|
};
|
|
133
133
|
}>> & Readonly<{}>, {
|
|
@@ -136,7 +136,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
136
136
|
type: "link" | "default" | "text" | "primary" | "dashed" | "ghost";
|
|
137
137
|
layerWidth: number;
|
|
138
138
|
layerHeight: number;
|
|
139
|
-
schema:
|
|
139
|
+
schema: SchemaConfig[];
|
|
140
140
|
layerLabel: string;
|
|
141
141
|
formConfig: {
|
|
142
142
|
labelWidth: number;
|
|
@@ -1,20 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
* @zh id
|
|
4
|
-
*/
|
|
5
|
-
id?: string;
|
|
1
|
+
import { BaseSchemaConfig } from '../../comp/src/interface';
|
|
2
|
+
export interface PageSchemaConfig extends BaseSchemaConfig {
|
|
6
3
|
/**
|
|
7
4
|
* @zh 类型
|
|
8
5
|
*/
|
|
9
6
|
type: string;
|
|
10
|
-
/**
|
|
11
|
-
* @zh 插槽名称
|
|
12
|
-
*/
|
|
13
|
-
slot?: string;
|
|
14
|
-
/**
|
|
15
|
-
* @zh 配置信息
|
|
16
|
-
*/
|
|
17
|
-
config?: Record<string, any>;
|
|
18
7
|
/**
|
|
19
8
|
* @zh 子集
|
|
20
9
|
*/
|
|
@@ -9,7 +9,7 @@ declare const JTable: {
|
|
|
9
9
|
default: () => never[];
|
|
10
10
|
};
|
|
11
11
|
columns: {
|
|
12
|
-
type: import('vue').PropType<import('..').
|
|
12
|
+
type: import('vue').PropType<import('..').ColumnSchemaConfig[]>;
|
|
13
13
|
required: true;
|
|
14
14
|
default: () => never[];
|
|
15
15
|
};
|
|
@@ -137,7 +137,7 @@ declare const JTable: {
|
|
|
137
137
|
}, import('vue').PublicProps, {
|
|
138
138
|
id: string;
|
|
139
139
|
modelValue: Record<string, any>[];
|
|
140
|
-
columns: import('..').
|
|
140
|
+
columns: import('..').ColumnSchemaConfig[];
|
|
141
141
|
records: Record<string, any>[];
|
|
142
142
|
isTree: boolean;
|
|
143
143
|
isShowNumber: boolean;
|
|
@@ -176,7 +176,7 @@ declare const JTable: {
|
|
|
176
176
|
default: () => never[];
|
|
177
177
|
};
|
|
178
178
|
columns: {
|
|
179
|
-
type: import('vue').PropType<import('..').
|
|
179
|
+
type: import('vue').PropType<import('..').ColumnSchemaConfig[]>;
|
|
180
180
|
required: true;
|
|
181
181
|
default: () => never[];
|
|
182
182
|
};
|
|
@@ -285,7 +285,7 @@ declare const JTable: {
|
|
|
285
285
|
}, {}, {}, {}, {
|
|
286
286
|
id: string;
|
|
287
287
|
modelValue: Record<string, any>[];
|
|
288
|
-
columns: import('..').
|
|
288
|
+
columns: import('..').ColumnSchemaConfig[];
|
|
289
289
|
records: Record<string, any>[];
|
|
290
290
|
isTree: boolean;
|
|
291
291
|
isShowNumber: boolean;
|
|
@@ -319,7 +319,7 @@ declare const JTable: {
|
|
|
319
319
|
default: () => never[];
|
|
320
320
|
};
|
|
321
321
|
columns: {
|
|
322
|
-
type: import('vue').PropType<import('..').
|
|
322
|
+
type: import('vue').PropType<import('..').ColumnSchemaConfig[]>;
|
|
323
323
|
required: true;
|
|
324
324
|
default: () => never[];
|
|
325
325
|
};
|
|
@@ -447,7 +447,7 @@ declare const JTable: {
|
|
|
447
447
|
}, string, {
|
|
448
448
|
id: string;
|
|
449
449
|
modelValue: Record<string, any>[];
|
|
450
|
-
columns: import('..').
|
|
450
|
+
columns: import('..').ColumnSchemaConfig[];
|
|
451
451
|
records: Record<string, any>[];
|
|
452
452
|
isTree: boolean;
|
|
453
453
|
isShowNumber: boolean;
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { BaseSchemaConfig, BaseCompConfig } from '../../comp/src/interface';
|
|
2
|
+
export interface TableColumnConfig {
|
|
3
|
+
/**
|
|
4
|
+
* @zh 列的标题
|
|
5
|
+
*/
|
|
6
|
+
label: string;
|
|
7
|
+
/**
|
|
8
|
+
* @zh 列的宽度
|
|
9
|
+
*/
|
|
10
|
+
width?: number;
|
|
11
|
+
/**
|
|
12
|
+
* @zh 列的最小宽度
|
|
13
|
+
*/
|
|
14
|
+
minWidth?: number;
|
|
15
|
+
/**
|
|
16
|
+
* @zh 列的最大宽度
|
|
17
|
+
*/
|
|
18
|
+
maxWidth?: number;
|
|
19
|
+
/**
|
|
20
|
+
* @zh 列的对齐方式
|
|
21
|
+
*/
|
|
22
|
+
align?: 'left' | 'center' | 'right';
|
|
23
|
+
/**
|
|
24
|
+
* @zh 数据类型 dataItem 数据字典 dataView 数据视图 options 选项 user 用户 department 部门 company 公司
|
|
25
|
+
*/
|
|
26
|
+
dataType?: string;
|
|
27
|
+
/**
|
|
28
|
+
* @zh 数据编码
|
|
29
|
+
*/
|
|
30
|
+
dataCode?: string;
|
|
31
|
+
/**
|
|
32
|
+
* @zh 数据
|
|
33
|
+
*/
|
|
34
|
+
options?: Record<string, any>;
|
|
35
|
+
/**
|
|
36
|
+
* @zh 数据值类型 text, number, text_list, number_list
|
|
37
|
+
*/
|
|
38
|
+
valueType?: string;
|
|
39
|
+
/**
|
|
40
|
+
* @zh 列的过滤器
|
|
41
|
+
*/
|
|
42
|
+
filter?: TableColumnFilter;
|
|
43
|
+
/**
|
|
44
|
+
* @zh 列的排序器
|
|
45
|
+
*/
|
|
46
|
+
sorter?: TableColumnSorter;
|
|
47
|
+
/**
|
|
48
|
+
* @zh 列的格式化函数
|
|
49
|
+
*/
|
|
50
|
+
fieldFormat?: (row: Record<string, any>) => any;
|
|
51
|
+
/**
|
|
52
|
+
* @zh 冻结列 left 左侧冻结 right 右侧冻结
|
|
53
|
+
*/
|
|
54
|
+
frozen?: 'left' | 'right';
|
|
55
|
+
}
|
|
56
|
+
export interface TableColumnFilter {
|
|
57
|
+
/**
|
|
58
|
+
* @zh 是否是搜索关键字
|
|
59
|
+
*/
|
|
60
|
+
isSearchKeyword?: boolean;
|
|
61
|
+
}
|
|
62
|
+
export interface TableColumnSorter {
|
|
63
|
+
/**
|
|
64
|
+
* @zh 是否不需要排序
|
|
65
|
+
*/
|
|
66
|
+
isNot?: boolean;
|
|
67
|
+
}
|
|
68
|
+
export interface ColumnSchemaConfig extends BaseSchemaConfig {
|
|
69
|
+
/**
|
|
70
|
+
* @zh 类型
|
|
71
|
+
*/
|
|
72
|
+
type: string;
|
|
73
|
+
/**
|
|
74
|
+
* @zh 列配置
|
|
75
|
+
*/
|
|
76
|
+
config: TableColumnConfig & BaseCompConfig;
|
|
77
|
+
/**
|
|
78
|
+
* @zh 子集
|
|
79
|
+
*/
|
|
80
|
+
children?: ColumnSchemaConfig[];
|
|
81
|
+
}
|
|
@@ -1,81 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { SchemaRuntimeConfig } from '../../comp/src/interface';
|
|
1
|
+
import { ColumnSchemaConfig } from './interface';
|
|
3
2
|
import { ButtonCompType } from '../../buttons/src/interface';
|
|
4
3
|
import { EditConfigType } from '../../input-rows/src/interface';
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* @zh 列的宽度
|
|
8
|
-
*/
|
|
9
|
-
width?: number;
|
|
10
|
-
/**
|
|
11
|
-
* @zh 列的最小宽度
|
|
12
|
-
*/
|
|
13
|
-
minWidth?: number;
|
|
14
|
-
/**
|
|
15
|
-
* @zh 列的最大宽度
|
|
16
|
-
*/
|
|
17
|
-
maxWidth?: number;
|
|
18
|
-
/**
|
|
19
|
-
* @zh 列的对齐方式
|
|
20
|
-
*/
|
|
21
|
-
align?: 'left' | 'center' | 'right';
|
|
22
|
-
/**
|
|
23
|
-
* @zh 默认值
|
|
24
|
-
*/
|
|
25
|
-
defaultValue?: any;
|
|
26
|
-
/**
|
|
27
|
-
* @zh 是否显示
|
|
28
|
-
*/
|
|
29
|
-
display?: boolean;
|
|
30
|
-
/**
|
|
31
|
-
* @zh 显示类型 tag 标签
|
|
32
|
-
*/
|
|
33
|
-
showType?: string;
|
|
34
|
-
/**
|
|
35
|
-
* @zh 数据类型 dataItem 数据字典 dataView 数据视图 options 选项 user 用户 department 部门 company 公司
|
|
36
|
-
*/
|
|
37
|
-
dataType?: string;
|
|
38
|
-
/**
|
|
39
|
-
* @zh 数据编码
|
|
40
|
-
*/
|
|
41
|
-
dataCode?: string;
|
|
42
|
-
/**
|
|
43
|
-
* @zh 数据
|
|
44
|
-
*/
|
|
45
|
-
options?: Record<string, any>;
|
|
46
|
-
/**
|
|
47
|
-
* @zh 数据值类型 text, number, text_list, number_list
|
|
48
|
-
*/
|
|
49
|
-
valueType?: string;
|
|
50
|
-
/**
|
|
51
|
-
* @zh 列的过滤器
|
|
52
|
-
*/
|
|
53
|
-
filter?: TableColumnFilter;
|
|
54
|
-
/**
|
|
55
|
-
* @zh 列的排序器
|
|
56
|
-
*/
|
|
57
|
-
sorter?: TableColumnSorter;
|
|
58
|
-
/**
|
|
59
|
-
* @zh 列的格式化函数
|
|
60
|
-
*/
|
|
61
|
-
fieldFormat?: (row: Record<string, any>) => any;
|
|
62
|
-
/**
|
|
63
|
-
* @zh 冻结列 left 左侧冻结 right 右侧冻结
|
|
64
|
-
*/
|
|
65
|
-
frozen?: 'left' | 'right';
|
|
66
|
-
}
|
|
67
|
-
export interface TableColumnFilter {
|
|
68
|
-
/**
|
|
69
|
-
* @zh 是否是搜索关键字
|
|
70
|
-
*/
|
|
71
|
-
isSearchKeyword?: boolean;
|
|
72
|
-
}
|
|
73
|
-
export interface TableColumnSorter {
|
|
74
|
-
/**
|
|
75
|
-
* @zh 是否不需要排序
|
|
76
|
-
*/
|
|
77
|
-
isNot?: boolean;
|
|
78
|
-
}
|
|
4
|
+
import { PropType } from 'vue';
|
|
79
5
|
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
80
6
|
id: {
|
|
81
7
|
type: StringConstructor;
|
|
@@ -93,7 +19,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
93
19
|
* @zh 表格列配置(支持树形结构)
|
|
94
20
|
*/
|
|
95
21
|
columns: {
|
|
96
|
-
type: PropType<
|
|
22
|
+
type: PropType<ColumnSchemaConfig[]>;
|
|
97
23
|
required: true;
|
|
98
24
|
default: () => never[];
|
|
99
25
|
};
|
|
@@ -276,7 +202,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
276
202
|
* @zh 表格列配置(支持树形结构)
|
|
277
203
|
*/
|
|
278
204
|
columns: {
|
|
279
|
-
type: PropType<
|
|
205
|
+
type: PropType<ColumnSchemaConfig[]>;
|
|
280
206
|
required: true;
|
|
281
207
|
default: () => never[];
|
|
282
208
|
};
|
|
@@ -439,7 +365,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
439
365
|
}>, {
|
|
440
366
|
id: string;
|
|
441
367
|
modelValue: Record<string, any>[];
|
|
442
|
-
columns:
|
|
368
|
+
columns: ColumnSchemaConfig[];
|
|
443
369
|
records: Record<string, any>[];
|
|
444
370
|
isTree: boolean;
|
|
445
371
|
isShowNumber: boolean;
|