@a2simcode/ui 0.0.248 → 0.0.249
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/card-list/index.d.ts +189 -0
- package/dist/components/card-list/src/card-list.vue.d.ts +94 -0
- package/dist/components/index.d.ts +3 -1
- package/dist/components/input-layer/index.d.ts +3 -3
- package/dist/components/input-layer/src/input-layer.vue.d.ts +1 -1
- package/dist/components/table-panel/index.d.ts +136 -0
- package/dist/components/table-panel/src/table-panel.vue.d.ts +136 -0
- package/dist/simcode-ui.es.js +5538 -5087
- package/dist/simcode-ui.umd.js +2 -2
- package/dist/stats.html +1 -1
- package/dist/ui.css +1 -1
- package/docs/components/card-list.md +38 -0
- package/docs/components/meta/card-list.ts +210 -0
- package/docs/components/meta/table-panel.ts +54 -0
- package/docs/components/table-panel.md +15 -0
- package/docs/examples/card-list/basic.vue +70 -0
- package/docs/examples/card-list/selection-pagination.vue +69 -0
- package/docs/examples/table-panel/card.vue +101 -0
- package/package.json +3 -3
|
@@ -0,0 +1,189 @@
|
|
|
1
|
+
export declare const JCardList: {
|
|
2
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('..').CardListProps> & Readonly<{
|
|
3
|
+
onClick?: ((id: string, data: {
|
|
4
|
+
item: Record<string, any>;
|
|
5
|
+
index: number;
|
|
6
|
+
button: import('..').ButtonCompType;
|
|
7
|
+
}) => any) | undefined;
|
|
8
|
+
"onUpdate:tablePage"?: ((value: number) => any) | undefined;
|
|
9
|
+
"onUpdate:pageSize"?: ((value: number) => any) | undefined;
|
|
10
|
+
onLoadPageData?: ((data: {
|
|
11
|
+
rows: number;
|
|
12
|
+
page: number;
|
|
13
|
+
}) => any) | undefined;
|
|
14
|
+
onSelectionChange?: ((data: {
|
|
15
|
+
selections: string[];
|
|
16
|
+
rows: Record<string, any>[];
|
|
17
|
+
}) => any) | undefined;
|
|
18
|
+
}>, {
|
|
19
|
+
clearSelection: () => void;
|
|
20
|
+
toggleRowSelection: (rows: Record<string, any>[], selected: boolean) => void;
|
|
21
|
+
getSelections: () => Record<string, any>[];
|
|
22
|
+
selections: import('vue').Ref<string[], string[]>;
|
|
23
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
24
|
+
click: (id: string, data: {
|
|
25
|
+
item: Record<string, any>;
|
|
26
|
+
index: number;
|
|
27
|
+
button: import('..').ButtonCompType;
|
|
28
|
+
}) => any;
|
|
29
|
+
"update:tablePage": (value: number) => any;
|
|
30
|
+
"update:pageSize": (value: number) => any;
|
|
31
|
+
loadPageData: (data: {
|
|
32
|
+
rows: number;
|
|
33
|
+
page: number;
|
|
34
|
+
}) => any;
|
|
35
|
+
selectionChange: (data: {
|
|
36
|
+
selections: string[];
|
|
37
|
+
rows: Record<string, any>[];
|
|
38
|
+
}) => any;
|
|
39
|
+
}, import('vue').PublicProps, {
|
|
40
|
+
loading: boolean;
|
|
41
|
+
labelKey: string;
|
|
42
|
+
buttons: import('..').ButtonCompType[];
|
|
43
|
+
isPage: boolean;
|
|
44
|
+
pageLayoutSimple: boolean;
|
|
45
|
+
pageSizes: number[];
|
|
46
|
+
pageTotal: number;
|
|
47
|
+
tablePage: number;
|
|
48
|
+
pageSize: number;
|
|
49
|
+
rowKey: string;
|
|
50
|
+
backgroundColor: string;
|
|
51
|
+
cardWidth: number | string;
|
|
52
|
+
dataSource: Record<string, any>[];
|
|
53
|
+
loadSrc: (item: Record<string, any>) => string;
|
|
54
|
+
fallback: string;
|
|
55
|
+
maxBtns: number;
|
|
56
|
+
isRadio: boolean;
|
|
57
|
+
isMultiSelect: boolean;
|
|
58
|
+
showBigEditButton: boolean;
|
|
59
|
+
imageFit: "fill" | "contain" | "cover" | "none" | "scale-down";
|
|
60
|
+
setButton: (data: {
|
|
61
|
+
buttons: import('..').ButtonCompType[];
|
|
62
|
+
row: Record<string, any>;
|
|
63
|
+
}) => void;
|
|
64
|
+
cardAspectRatio: number | string;
|
|
65
|
+
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLDivElement, import('vue').ComponentProvideOptions, {
|
|
66
|
+
P: {};
|
|
67
|
+
B: {};
|
|
68
|
+
D: {};
|
|
69
|
+
C: {};
|
|
70
|
+
M: {};
|
|
71
|
+
Defaults: {};
|
|
72
|
+
}, Readonly<import('..').CardListProps> & Readonly<{
|
|
73
|
+
onClick?: ((id: string, data: {
|
|
74
|
+
item: Record<string, any>;
|
|
75
|
+
index: number;
|
|
76
|
+
button: import('..').ButtonCompType;
|
|
77
|
+
}) => any) | undefined;
|
|
78
|
+
"onUpdate:tablePage"?: ((value: number) => any) | undefined;
|
|
79
|
+
"onUpdate:pageSize"?: ((value: number) => any) | undefined;
|
|
80
|
+
onLoadPageData?: ((data: {
|
|
81
|
+
rows: number;
|
|
82
|
+
page: number;
|
|
83
|
+
}) => any) | undefined;
|
|
84
|
+
onSelectionChange?: ((data: {
|
|
85
|
+
selections: string[];
|
|
86
|
+
rows: Record<string, any>[];
|
|
87
|
+
}) => any) | undefined;
|
|
88
|
+
}>, {
|
|
89
|
+
clearSelection: () => void;
|
|
90
|
+
toggleRowSelection: (rows: Record<string, any>[], selected: boolean) => void;
|
|
91
|
+
getSelections: () => Record<string, any>[];
|
|
92
|
+
selections: import('vue').Ref<string[], string[]>;
|
|
93
|
+
}, {}, {}, {}, {
|
|
94
|
+
loading: boolean;
|
|
95
|
+
labelKey: string;
|
|
96
|
+
buttons: import('..').ButtonCompType[];
|
|
97
|
+
isPage: boolean;
|
|
98
|
+
pageLayoutSimple: boolean;
|
|
99
|
+
pageSizes: number[];
|
|
100
|
+
pageTotal: number;
|
|
101
|
+
tablePage: number;
|
|
102
|
+
pageSize: number;
|
|
103
|
+
rowKey: string;
|
|
104
|
+
backgroundColor: string;
|
|
105
|
+
cardWidth: number | string;
|
|
106
|
+
dataSource: Record<string, any>[];
|
|
107
|
+
loadSrc: (item: Record<string, any>) => string;
|
|
108
|
+
fallback: string;
|
|
109
|
+
maxBtns: number;
|
|
110
|
+
isRadio: boolean;
|
|
111
|
+
isMultiSelect: boolean;
|
|
112
|
+
showBigEditButton: boolean;
|
|
113
|
+
imageFit: "fill" | "contain" | "cover" | "none" | "scale-down";
|
|
114
|
+
setButton: (data: {
|
|
115
|
+
buttons: import('..').ButtonCompType[];
|
|
116
|
+
row: Record<string, any>;
|
|
117
|
+
}) => void;
|
|
118
|
+
cardAspectRatio: number | string;
|
|
119
|
+
}>;
|
|
120
|
+
__isFragment?: never;
|
|
121
|
+
__isTeleport?: never;
|
|
122
|
+
__isSuspense?: never;
|
|
123
|
+
} & import('vue').ComponentOptionsBase<Readonly<import('..').CardListProps> & Readonly<{
|
|
124
|
+
onClick?: ((id: string, data: {
|
|
125
|
+
item: Record<string, any>;
|
|
126
|
+
index: number;
|
|
127
|
+
button: import('..').ButtonCompType;
|
|
128
|
+
}) => any) | undefined;
|
|
129
|
+
"onUpdate:tablePage"?: ((value: number) => any) | undefined;
|
|
130
|
+
"onUpdate:pageSize"?: ((value: number) => any) | undefined;
|
|
131
|
+
onLoadPageData?: ((data: {
|
|
132
|
+
rows: number;
|
|
133
|
+
page: number;
|
|
134
|
+
}) => any) | undefined;
|
|
135
|
+
onSelectionChange?: ((data: {
|
|
136
|
+
selections: string[];
|
|
137
|
+
rows: Record<string, any>[];
|
|
138
|
+
}) => any) | undefined;
|
|
139
|
+
}>, {
|
|
140
|
+
clearSelection: () => void;
|
|
141
|
+
toggleRowSelection: (rows: Record<string, any>[], selected: boolean) => void;
|
|
142
|
+
getSelections: () => Record<string, any>[];
|
|
143
|
+
selections: import('vue').Ref<string[], string[]>;
|
|
144
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
145
|
+
click: (id: string, data: {
|
|
146
|
+
item: Record<string, any>;
|
|
147
|
+
index: number;
|
|
148
|
+
button: import('..').ButtonCompType;
|
|
149
|
+
}) => any;
|
|
150
|
+
"update:tablePage": (value: number) => any;
|
|
151
|
+
"update:pageSize": (value: number) => any;
|
|
152
|
+
loadPageData: (data: {
|
|
153
|
+
rows: number;
|
|
154
|
+
page: number;
|
|
155
|
+
}) => any;
|
|
156
|
+
selectionChange: (data: {
|
|
157
|
+
selections: string[];
|
|
158
|
+
rows: Record<string, any>[];
|
|
159
|
+
}) => any;
|
|
160
|
+
}, string, {
|
|
161
|
+
loading: boolean;
|
|
162
|
+
labelKey: string;
|
|
163
|
+
buttons: import('..').ButtonCompType[];
|
|
164
|
+
isPage: boolean;
|
|
165
|
+
pageLayoutSimple: boolean;
|
|
166
|
+
pageSizes: number[];
|
|
167
|
+
pageTotal: number;
|
|
168
|
+
tablePage: number;
|
|
169
|
+
pageSize: number;
|
|
170
|
+
rowKey: string;
|
|
171
|
+
backgroundColor: string;
|
|
172
|
+
cardWidth: number | string;
|
|
173
|
+
dataSource: Record<string, any>[];
|
|
174
|
+
loadSrc: (item: Record<string, any>) => string;
|
|
175
|
+
fallback: string;
|
|
176
|
+
maxBtns: number;
|
|
177
|
+
isRadio: boolean;
|
|
178
|
+
isMultiSelect: boolean;
|
|
179
|
+
showBigEditButton: boolean;
|
|
180
|
+
imageFit: "fill" | "contain" | "cover" | "none" | "scale-down";
|
|
181
|
+
setButton: (data: {
|
|
182
|
+
buttons: import('..').ButtonCompType[];
|
|
183
|
+
row: Record<string, any>;
|
|
184
|
+
}) => void;
|
|
185
|
+
cardAspectRatio: number | string;
|
|
186
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & {
|
|
187
|
+
install: (app: import('vue').App) => void;
|
|
188
|
+
};
|
|
189
|
+
export default JCardList;
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import { ButtonCompType } from '../../buttons/src/interface';
|
|
2
|
+
export interface CardListProps {
|
|
3
|
+
loadSrc?: (item: Record<string, any>) => string;
|
|
4
|
+
labelKey?: string;
|
|
5
|
+
dataSource?: Record<string, any>[];
|
|
6
|
+
buttons?: ButtonCompType[];
|
|
7
|
+
fallback?: string;
|
|
8
|
+
isPage?: boolean;
|
|
9
|
+
pageSizes?: number[];
|
|
10
|
+
pageTotal?: number;
|
|
11
|
+
tablePage?: number;
|
|
12
|
+
pageSize?: number;
|
|
13
|
+
pageLayoutSimple?: boolean;
|
|
14
|
+
setButton?: (data: {
|
|
15
|
+
buttons: ButtonCompType[];
|
|
16
|
+
row: Record<string, any>;
|
|
17
|
+
}) => void;
|
|
18
|
+
maxBtns?: number;
|
|
19
|
+
loading?: boolean;
|
|
20
|
+
isRadio?: boolean;
|
|
21
|
+
isMultiSelect?: boolean;
|
|
22
|
+
rowKey?: string;
|
|
23
|
+
backgroundColor?: string;
|
|
24
|
+
showBigEditButton?: boolean;
|
|
25
|
+
cardWidth?: number | string;
|
|
26
|
+
cardHeight?: number;
|
|
27
|
+
cardAspectRatio?: number | string;
|
|
28
|
+
imageFit?: 'fill' | 'contain' | 'cover' | 'none' | 'scale-down';
|
|
29
|
+
}
|
|
30
|
+
declare const _default: import('vue').DefineComponent<CardListProps, {
|
|
31
|
+
clearSelection: () => void;
|
|
32
|
+
toggleRowSelection: (rows: Record<string, any>[], selected: boolean) => void;
|
|
33
|
+
getSelections: () => Record<string, any>[];
|
|
34
|
+
selections: import('vue').Ref<string[], string[]>;
|
|
35
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
36
|
+
click: (id: string, data: {
|
|
37
|
+
item: Record<string, any>;
|
|
38
|
+
index: number;
|
|
39
|
+
button: ButtonCompType;
|
|
40
|
+
}) => any;
|
|
41
|
+
"update:tablePage": (value: number) => any;
|
|
42
|
+
"update:pageSize": (value: number) => any;
|
|
43
|
+
loadPageData: (data: {
|
|
44
|
+
rows: number;
|
|
45
|
+
page: number;
|
|
46
|
+
}) => any;
|
|
47
|
+
selectionChange: (data: {
|
|
48
|
+
selections: string[];
|
|
49
|
+
rows: Record<string, any>[];
|
|
50
|
+
}) => any;
|
|
51
|
+
}, string, import('vue').PublicProps, Readonly<CardListProps> & Readonly<{
|
|
52
|
+
onClick?: ((id: string, data: {
|
|
53
|
+
item: Record<string, any>;
|
|
54
|
+
index: number;
|
|
55
|
+
button: ButtonCompType;
|
|
56
|
+
}) => any) | undefined;
|
|
57
|
+
"onUpdate:tablePage"?: ((value: number) => any) | undefined;
|
|
58
|
+
"onUpdate:pageSize"?: ((value: number) => any) | undefined;
|
|
59
|
+
onLoadPageData?: ((data: {
|
|
60
|
+
rows: number;
|
|
61
|
+
page: number;
|
|
62
|
+
}) => any) | undefined;
|
|
63
|
+
onSelectionChange?: ((data: {
|
|
64
|
+
selections: string[];
|
|
65
|
+
rows: Record<string, any>[];
|
|
66
|
+
}) => any) | undefined;
|
|
67
|
+
}>, {
|
|
68
|
+
loading: boolean;
|
|
69
|
+
labelKey: string;
|
|
70
|
+
buttons: ButtonCompType[];
|
|
71
|
+
isPage: boolean;
|
|
72
|
+
pageLayoutSimple: boolean;
|
|
73
|
+
pageSizes: number[];
|
|
74
|
+
pageTotal: number;
|
|
75
|
+
tablePage: number;
|
|
76
|
+
pageSize: number;
|
|
77
|
+
rowKey: string;
|
|
78
|
+
backgroundColor: string;
|
|
79
|
+
cardWidth: number | string;
|
|
80
|
+
dataSource: Record<string, any>[];
|
|
81
|
+
loadSrc: (item: Record<string, any>) => string;
|
|
82
|
+
fallback: string;
|
|
83
|
+
maxBtns: number;
|
|
84
|
+
isRadio: boolean;
|
|
85
|
+
isMultiSelect: boolean;
|
|
86
|
+
showBigEditButton: boolean;
|
|
87
|
+
imageFit: "fill" | "contain" | "cover" | "none" | "scale-down";
|
|
88
|
+
setButton: (data: {
|
|
89
|
+
buttons: ButtonCompType[];
|
|
90
|
+
row: Record<string, any>;
|
|
91
|
+
}) => void;
|
|
92
|
+
cardAspectRatio: number | string;
|
|
93
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
94
|
+
export default _default;
|
|
@@ -62,7 +62,8 @@ import { default as JMap } from './map';
|
|
|
62
62
|
import { default as JInputMap } from './input-map';
|
|
63
63
|
import { default as JWorkflowViewer, JWorkflow } from './workflow-viewer';
|
|
64
64
|
import { default as JInputCards } from './input-cards';
|
|
65
|
-
|
|
65
|
+
import { default as JCardList } from './card-list';
|
|
66
|
+
export { JButton, JButtons, JInput, JDate, JTime, JNowTime, JIcon, JRadio, JSelect, JCascaderSelect, JCheckbox, JNumber, JAutoComplete, JLayout, JTable, JDialog, JDialogFull, JDrawer, JLayer, JDynamicLayer, JInputTag, JRate, JSlider, JUpload, JEcharts, JBarcode, JCodeMirror, JCount, JInputCount, JCountUp, JDataPanel, JDivider, JHpanel, JVpanel, JGuid, JInputButton, JInputCode, JInputColor, JTitle, JDecoratedTitle, JInputDecoratedTitle, JButtonSelect, JTree, JTreeSelect, JComp, JForm, JFormItem, JPage, JSliderCaptcha, JMenu, JTablePanel, JInputRows, JInputLayer, JLayerForm, JSwitch, JTabs, JCollapse, JEditor, JWorkflowViewer, JWorkflow, JPanel, JInputCards, JMap, JInputMap, JCardList, };
|
|
66
67
|
export * from '../core';
|
|
67
68
|
export type { ButtonProps } from './button/src/button.vue';
|
|
68
69
|
export type { DateProps } from './date/src/date.vue';
|
|
@@ -79,6 +80,7 @@ export type { InputTagProps } from './input-tag/src/input-tag.vue';
|
|
|
79
80
|
export type { NumberProps } from './number/src/number.vue';
|
|
80
81
|
export type { RateProps } from './rate/src/rate.vue';
|
|
81
82
|
export type { SliderProps } from './slider/src/slider.vue';
|
|
83
|
+
export type { CardListProps } from './card-list/src/card-list.vue';
|
|
82
84
|
export type { InputLayerProps } from './input-layer/src/input-layer.vue';
|
|
83
85
|
export type { CountProps } from './count/src/count.vue';
|
|
84
86
|
export type { CountUpProps } from './count-up/src/count-up.vue';
|
|
@@ -31,8 +31,8 @@ export declare const JInputLayer: {
|
|
|
31
31
|
defaultExpandAll: boolean;
|
|
32
32
|
isPage: boolean;
|
|
33
33
|
onlyButton: boolean;
|
|
34
|
-
pidKey: string;
|
|
35
34
|
isMultiSelect: boolean;
|
|
35
|
+
pidKey: string;
|
|
36
36
|
searchInputList: any[];
|
|
37
37
|
isSaveSelectData: boolean;
|
|
38
38
|
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
|
|
@@ -71,8 +71,8 @@ export declare const JInputLayer: {
|
|
|
71
71
|
defaultExpandAll: boolean;
|
|
72
72
|
isPage: boolean;
|
|
73
73
|
onlyButton: boolean;
|
|
74
|
-
pidKey: string;
|
|
75
74
|
isMultiSelect: boolean;
|
|
75
|
+
pidKey: string;
|
|
76
76
|
searchInputList: any[];
|
|
77
77
|
isSaveSelectData: boolean;
|
|
78
78
|
}>;
|
|
@@ -111,8 +111,8 @@ export declare const JInputLayer: {
|
|
|
111
111
|
defaultExpandAll: boolean;
|
|
112
112
|
isPage: boolean;
|
|
113
113
|
onlyButton: boolean;
|
|
114
|
-
pidKey: string;
|
|
115
114
|
isMultiSelect: boolean;
|
|
115
|
+
pidKey: string;
|
|
116
116
|
searchInputList: any[];
|
|
117
117
|
isSaveSelectData: boolean;
|
|
118
118
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & {
|
|
@@ -99,8 +99,8 @@ declare const _default: import('vue').DefineComponent<InputLayerProps, {
|
|
|
99
99
|
defaultExpandAll: boolean;
|
|
100
100
|
isPage: boolean;
|
|
101
101
|
onlyButton: boolean;
|
|
102
|
-
pidKey: string;
|
|
103
102
|
isMultiSelect: boolean;
|
|
103
|
+
pidKey: string;
|
|
104
104
|
searchInputList: any[];
|
|
105
105
|
isSaveSelectData: boolean;
|
|
106
106
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
declare const JTablePanel: {
|
|
2
2
|
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
|
|
3
|
+
viewMode: {
|
|
4
|
+
type: import('vue').PropType<"table" | "card">;
|
|
5
|
+
default: string;
|
|
6
|
+
};
|
|
3
7
|
modelValue: {
|
|
4
8
|
type: import('vue').PropType<Record<string, any>[]>;
|
|
5
9
|
default: () => never[];
|
|
@@ -145,6 +149,38 @@ declare const JTablePanel: {
|
|
|
145
149
|
type: BooleanConstructor;
|
|
146
150
|
default: boolean;
|
|
147
151
|
};
|
|
152
|
+
cardLabelKey: {
|
|
153
|
+
type: StringConstructor;
|
|
154
|
+
default: string;
|
|
155
|
+
};
|
|
156
|
+
cardLoadSrc: {
|
|
157
|
+
type: import('vue').PropType<(item: Record<string, any>) => string>;
|
|
158
|
+
default: undefined;
|
|
159
|
+
};
|
|
160
|
+
cardFallback: {
|
|
161
|
+
type: StringConstructor;
|
|
162
|
+
default: string;
|
|
163
|
+
};
|
|
164
|
+
cardBackgroundColor: {
|
|
165
|
+
type: StringConstructor;
|
|
166
|
+
default: string;
|
|
167
|
+
};
|
|
168
|
+
cardShowBigEditButton: {
|
|
169
|
+
type: BooleanConstructor;
|
|
170
|
+
default: boolean;
|
|
171
|
+
};
|
|
172
|
+
cardWidth: {
|
|
173
|
+
type: NumberConstructor;
|
|
174
|
+
default: number;
|
|
175
|
+
};
|
|
176
|
+
cardHeight: {
|
|
177
|
+
type: NumberConstructor;
|
|
178
|
+
default: number;
|
|
179
|
+
};
|
|
180
|
+
cardImageFit: {
|
|
181
|
+
type: import('vue').PropType<"fill" | "contain" | "cover" | "none" | "scale-down">;
|
|
182
|
+
default: string;
|
|
183
|
+
};
|
|
148
184
|
}>> & Readonly<{
|
|
149
185
|
onSelect?: ((...args: any[]) => any) | undefined;
|
|
150
186
|
onReady?: ((...args: any[]) => any) | undefined;
|
|
@@ -195,6 +231,7 @@ declare const JTablePanel: {
|
|
|
195
231
|
subActions: import('..').ButtonCompType[];
|
|
196
232
|
loadChildren: (record: Record<string, any>) => Promise<any[]>;
|
|
197
233
|
searchList: Record<string, any>[];
|
|
234
|
+
viewMode: "table" | "card";
|
|
198
235
|
batchButtons: import('..').ButtonCompType[];
|
|
199
236
|
noPadding: boolean;
|
|
200
237
|
showFilterButton: boolean;
|
|
@@ -202,6 +239,14 @@ declare const JTablePanel: {
|
|
|
202
239
|
showColumnButton: boolean;
|
|
203
240
|
showRefreshButton: boolean;
|
|
204
241
|
showFullscreenButton: boolean;
|
|
242
|
+
cardLabelKey: string;
|
|
243
|
+
cardLoadSrc: (item: Record<string, any>) => string;
|
|
244
|
+
cardFallback: string;
|
|
245
|
+
cardBackgroundColor: string;
|
|
246
|
+
cardShowBigEditButton: boolean;
|
|
247
|
+
cardWidth: number;
|
|
248
|
+
cardHeight: number;
|
|
249
|
+
cardImageFit: "fill" | "none" | "contain" | "cover" | "scale-down";
|
|
205
250
|
}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
|
|
206
251
|
topLeftRef: HTMLDivElement;
|
|
207
252
|
keywordPanelRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
|
|
@@ -403,6 +448,7 @@ declare const JTablePanel: {
|
|
|
403
448
|
}, {}, {}, {}, {
|
|
404
449
|
columns: import('..').SchemaConfig[];
|
|
405
450
|
}> | null;
|
|
451
|
+
cardListRef: unknown;
|
|
406
452
|
tableRef: unknown;
|
|
407
453
|
}, HTMLDivElement, import('vue').ComponentProvideOptions, {
|
|
408
454
|
P: {};
|
|
@@ -412,6 +458,10 @@ declare const JTablePanel: {
|
|
|
412
458
|
M: {};
|
|
413
459
|
Defaults: {};
|
|
414
460
|
}, Readonly<import('vue').ExtractPropTypes<{
|
|
461
|
+
viewMode: {
|
|
462
|
+
type: import('vue').PropType<"table" | "card">;
|
|
463
|
+
default: string;
|
|
464
|
+
};
|
|
415
465
|
modelValue: {
|
|
416
466
|
type: import('vue').PropType<Record<string, any>[]>;
|
|
417
467
|
default: () => never[];
|
|
@@ -557,6 +607,38 @@ declare const JTablePanel: {
|
|
|
557
607
|
type: BooleanConstructor;
|
|
558
608
|
default: boolean;
|
|
559
609
|
};
|
|
610
|
+
cardLabelKey: {
|
|
611
|
+
type: StringConstructor;
|
|
612
|
+
default: string;
|
|
613
|
+
};
|
|
614
|
+
cardLoadSrc: {
|
|
615
|
+
type: import('vue').PropType<(item: Record<string, any>) => string>;
|
|
616
|
+
default: undefined;
|
|
617
|
+
};
|
|
618
|
+
cardFallback: {
|
|
619
|
+
type: StringConstructor;
|
|
620
|
+
default: string;
|
|
621
|
+
};
|
|
622
|
+
cardBackgroundColor: {
|
|
623
|
+
type: StringConstructor;
|
|
624
|
+
default: string;
|
|
625
|
+
};
|
|
626
|
+
cardShowBigEditButton: {
|
|
627
|
+
type: BooleanConstructor;
|
|
628
|
+
default: boolean;
|
|
629
|
+
};
|
|
630
|
+
cardWidth: {
|
|
631
|
+
type: NumberConstructor;
|
|
632
|
+
default: number;
|
|
633
|
+
};
|
|
634
|
+
cardHeight: {
|
|
635
|
+
type: NumberConstructor;
|
|
636
|
+
default: number;
|
|
637
|
+
};
|
|
638
|
+
cardImageFit: {
|
|
639
|
+
type: import('vue').PropType<"fill" | "contain" | "cover" | "none" | "scale-down">;
|
|
640
|
+
default: string;
|
|
641
|
+
};
|
|
560
642
|
}>> & Readonly<{
|
|
561
643
|
onSelect?: ((...args: any[]) => any) | undefined;
|
|
562
644
|
onReady?: ((...args: any[]) => any) | undefined;
|
|
@@ -604,6 +686,7 @@ declare const JTablePanel: {
|
|
|
604
686
|
subActions: import('..').ButtonCompType[];
|
|
605
687
|
loadChildren: (record: Record<string, any>) => Promise<any[]>;
|
|
606
688
|
searchList: Record<string, any>[];
|
|
689
|
+
viewMode: "table" | "card";
|
|
607
690
|
batchButtons: import('..').ButtonCompType[];
|
|
608
691
|
noPadding: boolean;
|
|
609
692
|
showFilterButton: boolean;
|
|
@@ -611,11 +694,23 @@ declare const JTablePanel: {
|
|
|
611
694
|
showColumnButton: boolean;
|
|
612
695
|
showRefreshButton: boolean;
|
|
613
696
|
showFullscreenButton: boolean;
|
|
697
|
+
cardLabelKey: string;
|
|
698
|
+
cardLoadSrc: (item: Record<string, any>) => string;
|
|
699
|
+
cardFallback: string;
|
|
700
|
+
cardBackgroundColor: string;
|
|
701
|
+
cardShowBigEditButton: boolean;
|
|
702
|
+
cardWidth: number;
|
|
703
|
+
cardHeight: number;
|
|
704
|
+
cardImageFit: "fill" | "none" | "contain" | "cover" | "scale-down";
|
|
614
705
|
}>;
|
|
615
706
|
__isFragment?: never;
|
|
616
707
|
__isTeleport?: never;
|
|
617
708
|
__isSuspense?: never;
|
|
618
709
|
} & import('vue').ComponentOptionsBase<Readonly<import('vue').ExtractPropTypes<{
|
|
710
|
+
viewMode: {
|
|
711
|
+
type: import('vue').PropType<"table" | "card">;
|
|
712
|
+
default: string;
|
|
713
|
+
};
|
|
619
714
|
modelValue: {
|
|
620
715
|
type: import('vue').PropType<Record<string, any>[]>;
|
|
621
716
|
default: () => never[];
|
|
@@ -761,6 +856,38 @@ declare const JTablePanel: {
|
|
|
761
856
|
type: BooleanConstructor;
|
|
762
857
|
default: boolean;
|
|
763
858
|
};
|
|
859
|
+
cardLabelKey: {
|
|
860
|
+
type: StringConstructor;
|
|
861
|
+
default: string;
|
|
862
|
+
};
|
|
863
|
+
cardLoadSrc: {
|
|
864
|
+
type: import('vue').PropType<(item: Record<string, any>) => string>;
|
|
865
|
+
default: undefined;
|
|
866
|
+
};
|
|
867
|
+
cardFallback: {
|
|
868
|
+
type: StringConstructor;
|
|
869
|
+
default: string;
|
|
870
|
+
};
|
|
871
|
+
cardBackgroundColor: {
|
|
872
|
+
type: StringConstructor;
|
|
873
|
+
default: string;
|
|
874
|
+
};
|
|
875
|
+
cardShowBigEditButton: {
|
|
876
|
+
type: BooleanConstructor;
|
|
877
|
+
default: boolean;
|
|
878
|
+
};
|
|
879
|
+
cardWidth: {
|
|
880
|
+
type: NumberConstructor;
|
|
881
|
+
default: number;
|
|
882
|
+
};
|
|
883
|
+
cardHeight: {
|
|
884
|
+
type: NumberConstructor;
|
|
885
|
+
default: number;
|
|
886
|
+
};
|
|
887
|
+
cardImageFit: {
|
|
888
|
+
type: import('vue').PropType<"fill" | "contain" | "cover" | "none" | "scale-down">;
|
|
889
|
+
default: string;
|
|
890
|
+
};
|
|
764
891
|
}>> & Readonly<{
|
|
765
892
|
onSelect?: ((...args: any[]) => any) | undefined;
|
|
766
893
|
onReady?: ((...args: any[]) => any) | undefined;
|
|
@@ -811,6 +938,7 @@ declare const JTablePanel: {
|
|
|
811
938
|
subActions: import('..').ButtonCompType[];
|
|
812
939
|
loadChildren: (record: Record<string, any>) => Promise<any[]>;
|
|
813
940
|
searchList: Record<string, any>[];
|
|
941
|
+
viewMode: "table" | "card";
|
|
814
942
|
batchButtons: import('..').ButtonCompType[];
|
|
815
943
|
noPadding: boolean;
|
|
816
944
|
showFilterButton: boolean;
|
|
@@ -818,6 +946,14 @@ declare const JTablePanel: {
|
|
|
818
946
|
showColumnButton: boolean;
|
|
819
947
|
showRefreshButton: boolean;
|
|
820
948
|
showFullscreenButton: boolean;
|
|
949
|
+
cardLabelKey: string;
|
|
950
|
+
cardLoadSrc: (item: Record<string, any>) => string;
|
|
951
|
+
cardFallback: string;
|
|
952
|
+
cardBackgroundColor: string;
|
|
953
|
+
cardShowBigEditButton: boolean;
|
|
954
|
+
cardWidth: number;
|
|
955
|
+
cardHeight: number;
|
|
956
|
+
cardImageFit: "fill" | "none" | "contain" | "cover" | "scale-down";
|
|
821
957
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & {
|
|
822
958
|
install: (app: import('vue').App) => void;
|
|
823
959
|
};
|