@antdv-next1/pro-card 2.0.7 → 2.0.10
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/README.md +1 -1
- package/dist/Card.d.ts +54 -0
- package/dist/Card.js +443 -0
- package/dist/ProCard.d.ts +64 -54
- package/dist/ProCard.js +115 -289
- package/dist/components/CheckCard/CheckCard.d.ts +6 -5
- package/dist/components/CheckCard/CheckCard.js +25 -29
- package/dist/components/CheckCard/Group.js +2 -2
- package/dist/components/CheckCard/index.d.ts +2 -2
- package/dist/components/CheckCard/style/index.js +24 -12
- package/dist/components/Statistic/index.d.ts +18 -14
- package/dist/components/Statistic/index.js +48 -48
- package/dist/components/StatisticCard/index.d.ts +52 -12
- package/dist/components/StatisticCard/index.js +133 -133
- package/dist/index.d.ts +2 -2
- package/dist/pro-card.esm.js +17945 -21780
- package/dist/pro-card.js +79 -79
- package/package.json +3 -3
|
@@ -31,54 +31,6 @@ const Statistic = /* @__PURE__ */ defineComponent((props, { attrs }) => {
|
|
|
31
31
|
};
|
|
32
32
|
}, {
|
|
33
33
|
props: {
|
|
34
|
-
description: {
|
|
35
|
-
type: [
|
|
36
|
-
Object,
|
|
37
|
-
Function,
|
|
38
|
-
String,
|
|
39
|
-
Number,
|
|
40
|
-
null,
|
|
41
|
-
Boolean,
|
|
42
|
-
Array
|
|
43
|
-
],
|
|
44
|
-
required: false,
|
|
45
|
-
default: void 0
|
|
46
|
-
},
|
|
47
|
-
tooltip: {
|
|
48
|
-
type: [
|
|
49
|
-
Object,
|
|
50
|
-
Function,
|
|
51
|
-
String,
|
|
52
|
-
Number,
|
|
53
|
-
null,
|
|
54
|
-
Boolean,
|
|
55
|
-
Array
|
|
56
|
-
],
|
|
57
|
-
required: false,
|
|
58
|
-
default: void 0
|
|
59
|
-
},
|
|
60
|
-
status: { required: false },
|
|
61
|
-
icon: {
|
|
62
|
-
type: [
|
|
63
|
-
Object,
|
|
64
|
-
Function,
|
|
65
|
-
String,
|
|
66
|
-
Number,
|
|
67
|
-
null,
|
|
68
|
-
Boolean,
|
|
69
|
-
Array
|
|
70
|
-
],
|
|
71
|
-
required: false,
|
|
72
|
-
default: void 0
|
|
73
|
-
},
|
|
74
|
-
layout: {
|
|
75
|
-
type: String,
|
|
76
|
-
required: false
|
|
77
|
-
},
|
|
78
|
-
trend: {
|
|
79
|
-
type: String,
|
|
80
|
-
required: false
|
|
81
|
-
},
|
|
82
34
|
formatter: {
|
|
83
35
|
type: [
|
|
84
36
|
Boolean,
|
|
@@ -176,6 +128,54 @@ const Statistic = /* @__PURE__ */ defineComponent((props, { attrs }) => {
|
|
|
176
128
|
onMouseleave: {
|
|
177
129
|
type: Function,
|
|
178
130
|
required: false
|
|
131
|
+
},
|
|
132
|
+
description: {
|
|
133
|
+
type: [
|
|
134
|
+
Object,
|
|
135
|
+
Function,
|
|
136
|
+
String,
|
|
137
|
+
Number,
|
|
138
|
+
null,
|
|
139
|
+
Boolean,
|
|
140
|
+
Array
|
|
141
|
+
],
|
|
142
|
+
required: false,
|
|
143
|
+
default: void 0
|
|
144
|
+
},
|
|
145
|
+
tooltip: {
|
|
146
|
+
type: [
|
|
147
|
+
Object,
|
|
148
|
+
Function,
|
|
149
|
+
String,
|
|
150
|
+
Number,
|
|
151
|
+
null,
|
|
152
|
+
Boolean,
|
|
153
|
+
Array
|
|
154
|
+
],
|
|
155
|
+
required: false,
|
|
156
|
+
default: void 0
|
|
157
|
+
},
|
|
158
|
+
status: { required: false },
|
|
159
|
+
icon: {
|
|
160
|
+
type: [
|
|
161
|
+
Object,
|
|
162
|
+
Function,
|
|
163
|
+
String,
|
|
164
|
+
Number,
|
|
165
|
+
null,
|
|
166
|
+
Boolean,
|
|
167
|
+
Array
|
|
168
|
+
],
|
|
169
|
+
required: false,
|
|
170
|
+
default: void 0
|
|
171
|
+
},
|
|
172
|
+
layout: {
|
|
173
|
+
type: String,
|
|
174
|
+
required: false
|
|
175
|
+
},
|
|
176
|
+
trend: {
|
|
177
|
+
type: String,
|
|
178
|
+
required: false
|
|
179
179
|
}
|
|
180
180
|
},
|
|
181
181
|
name: "Statistic",
|
|
@@ -1,27 +1,67 @@
|
|
|
1
|
+
import { CollapsibleType } from "../../typing.js";
|
|
1
2
|
import { ProCardProps } from "../../ProCard.js";
|
|
2
|
-
import Statistic, { StatisticProps } from "../Statistic/index.js";
|
|
3
|
+
import Statistic$1, { StatisticProps as StatisticProps$1 } from "../Statistic/index.js";
|
|
3
4
|
import * as _$vue from "vue";
|
|
4
5
|
import { VNode } from "vue";
|
|
5
6
|
import { VueNode } from "@v-c/util";
|
|
7
|
+
import * as _$antdv_next0 from "antdv-next";
|
|
6
8
|
import { CustomSlotsType } from "@v-c/util/dist/type";
|
|
9
|
+
import * as _$antdv_next_dist_grid_row0 from "antdv-next/dist/grid/row";
|
|
7
10
|
|
|
8
11
|
//#region src/components/StatisticCard/index.d.ts
|
|
9
|
-
|
|
10
|
-
/** 图表配置 */
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
statistic?: StatisticProps;
|
|
14
|
-
/** Chart 相对于 statistic 的位置 */
|
|
15
|
-
chartPlacement?: 'right' | 'bottom' | 'left';
|
|
16
|
-
/** 底部额外展示区域 */
|
|
12
|
+
type StatisticCardProps = ProCardProps & {
|
|
13
|
+
/** 图表配置 */chart?: VueNode; /** 数值统计配置 */
|
|
14
|
+
statistic?: StatisticProps$1; /** Chart 相对于 statistic 的位置 */
|
|
15
|
+
chartPlacement?: 'right' | 'bottom' | 'left'; /** 底部额外展示区域 */
|
|
17
16
|
footer?: VueNode;
|
|
18
|
-
}
|
|
17
|
+
};
|
|
19
18
|
declare const _StatisticCard: _$vue.DefineSetupFnComponent<StatisticCardProps, {}, CustomSlotsType<{
|
|
20
19
|
default?: () => VNode[];
|
|
21
|
-
}>,
|
|
20
|
+
}>, _$antdv_next0.CardProps & _$antdv_next0.RowProps & {
|
|
21
|
+
tooltip?: VueNode;
|
|
22
|
+
split?: "vertical" | "horizontal";
|
|
23
|
+
direction?: "column" | "row";
|
|
24
|
+
gutter?: _$antdv_next_dist_grid_row0.Gutter | [_$antdv_next_dist_grid_row0.Gutter, _$antdv_next_dist_grid_row0.Gutter];
|
|
25
|
+
colStyle?: _$vue.CSSProperties;
|
|
26
|
+
borderBeam?: _$antdv_next0.BorderBeamProps | boolean;
|
|
27
|
+
layout?: "default" | "center";
|
|
28
|
+
boxShadow?: boolean;
|
|
29
|
+
disabled?: boolean;
|
|
30
|
+
headerBordered?: boolean;
|
|
31
|
+
ghost?: boolean;
|
|
32
|
+
collapsible?: CollapsibleType;
|
|
33
|
+
collapsed?: boolean;
|
|
34
|
+
collapsibleIconRender?: ({
|
|
35
|
+
collapsed
|
|
36
|
+
}: {
|
|
37
|
+
collapsed: boolean;
|
|
38
|
+
}) => VueNode;
|
|
39
|
+
defaultCollapsed?: boolean;
|
|
40
|
+
onCollapse?: (collapsed: boolean) => void;
|
|
41
|
+
checked?: boolean;
|
|
42
|
+
onChecked?: (e: MouseEvent) => void;
|
|
43
|
+
colSpan?: _$antdv_next0.ColProps["span"];
|
|
44
|
+
colOffset?: _$antdv_next0.ColProps["offset"];
|
|
45
|
+
colFlex?: _$antdv_next0.ColProps["flex"];
|
|
46
|
+
colOrder?: _$antdv_next0.ColProps["order"];
|
|
47
|
+
colPull?: _$antdv_next0.ColProps["pull"];
|
|
48
|
+
colPush?: _$antdv_next0.ColProps["push"];
|
|
49
|
+
colXs?: _$antdv_next0.ColProps["xs"];
|
|
50
|
+
colSm?: _$antdv_next0.ColProps["sm"];
|
|
51
|
+
colMd?: _$antdv_next0.ColProps["md"];
|
|
52
|
+
colLg?: _$antdv_next0.ColProps["lg"];
|
|
53
|
+
colXl?: _$antdv_next0.ColProps["xl"];
|
|
54
|
+
colXxl?: _$antdv_next0.ColProps["xxl"];
|
|
55
|
+
onClick?: (e: MouseEvent) => void;
|
|
56
|
+
} & {
|
|
57
|
+
/** 图表配置 */chart?: VueNode; /** 数值统计配置 */
|
|
58
|
+
statistic?: StatisticProps$1; /** Chart 相对于 statistic 的位置 */
|
|
59
|
+
chartPlacement?: "right" | "bottom" | "left"; /** 底部额外展示区域 */
|
|
60
|
+
footer?: VueNode;
|
|
61
|
+
} & {}, _$vue.PublicProps>;
|
|
22
62
|
declare const StatisticCard: typeof _StatisticCard & {
|
|
23
63
|
isProCard?: boolean;
|
|
24
|
-
Statistic?: typeof Statistic;
|
|
64
|
+
Statistic?: typeof Statistic$1;
|
|
25
65
|
};
|
|
26
66
|
//#endregion
|
|
27
67
|
export { StatisticCardProps, StatisticCard as default };
|
|
@@ -30,61 +30,137 @@ const StatisticCard = /* @__PURE__ */ defineComponent((props, { attrs, slots })
|
|
|
30
30
|
};
|
|
31
31
|
}, {
|
|
32
32
|
props: {
|
|
33
|
-
|
|
33
|
+
title: {
|
|
34
34
|
type: [
|
|
35
|
+
Function,
|
|
36
|
+
String,
|
|
37
|
+
Number,
|
|
38
|
+
null,
|
|
35
39
|
Object,
|
|
40
|
+
Boolean
|
|
41
|
+
],
|
|
42
|
+
required: false,
|
|
43
|
+
default: void 0
|
|
44
|
+
},
|
|
45
|
+
extra: {
|
|
46
|
+
type: [
|
|
36
47
|
Function,
|
|
37
48
|
String,
|
|
38
49
|
Number,
|
|
39
50
|
null,
|
|
40
|
-
|
|
41
|
-
|
|
51
|
+
Object,
|
|
52
|
+
Boolean
|
|
42
53
|
],
|
|
43
54
|
required: false,
|
|
44
55
|
default: void 0
|
|
45
56
|
},
|
|
46
|
-
|
|
57
|
+
bordered: {
|
|
58
|
+
type: Boolean,
|
|
59
|
+
required: false,
|
|
60
|
+
default: void 0
|
|
61
|
+
},
|
|
62
|
+
headStyle: {
|
|
47
63
|
type: Object,
|
|
48
64
|
required: false
|
|
49
65
|
},
|
|
50
|
-
|
|
66
|
+
bodyStyle: {
|
|
67
|
+
type: Object,
|
|
68
|
+
required: false
|
|
69
|
+
},
|
|
70
|
+
loading: {
|
|
71
|
+
type: Boolean,
|
|
72
|
+
required: false,
|
|
73
|
+
default: void 0
|
|
74
|
+
},
|
|
75
|
+
hoverable: {
|
|
76
|
+
type: Boolean,
|
|
77
|
+
required: false,
|
|
78
|
+
default: void 0
|
|
79
|
+
},
|
|
80
|
+
id: {
|
|
51
81
|
type: String,
|
|
52
82
|
required: false
|
|
53
83
|
},
|
|
54
|
-
|
|
84
|
+
size: {
|
|
85
|
+
type: String,
|
|
86
|
+
required: false
|
|
87
|
+
},
|
|
88
|
+
type: {
|
|
89
|
+
type: String,
|
|
90
|
+
required: false
|
|
91
|
+
},
|
|
92
|
+
cover: {
|
|
55
93
|
type: [
|
|
56
|
-
Object,
|
|
57
94
|
Function,
|
|
58
95
|
String,
|
|
59
96
|
Number,
|
|
60
97
|
null,
|
|
61
|
-
|
|
62
|
-
|
|
98
|
+
Object,
|
|
99
|
+
Boolean
|
|
63
100
|
],
|
|
64
101
|
required: false,
|
|
65
102
|
default: void 0
|
|
66
103
|
},
|
|
67
|
-
|
|
104
|
+
actions: {
|
|
105
|
+
type: Array,
|
|
106
|
+
required: false
|
|
107
|
+
},
|
|
108
|
+
tabList: {
|
|
109
|
+
type: Array,
|
|
110
|
+
required: false
|
|
111
|
+
},
|
|
112
|
+
tabBarExtraContent: {
|
|
68
113
|
type: [
|
|
69
|
-
Object,
|
|
70
114
|
Function,
|
|
71
115
|
String,
|
|
72
116
|
Number,
|
|
73
117
|
null,
|
|
74
|
-
|
|
75
|
-
|
|
118
|
+
Object,
|
|
119
|
+
Boolean
|
|
76
120
|
],
|
|
77
121
|
required: false,
|
|
78
122
|
default: void 0
|
|
79
123
|
},
|
|
80
|
-
|
|
124
|
+
activeTabKey: {
|
|
81
125
|
type: String,
|
|
82
126
|
required: false
|
|
83
127
|
},
|
|
84
|
-
|
|
128
|
+
defaultActiveTabKey: {
|
|
85
129
|
type: String,
|
|
86
130
|
required: false
|
|
87
131
|
},
|
|
132
|
+
tabProps: {
|
|
133
|
+
type: Object,
|
|
134
|
+
required: false
|
|
135
|
+
},
|
|
136
|
+
classes: {
|
|
137
|
+
type: [Object, Function],
|
|
138
|
+
required: false
|
|
139
|
+
},
|
|
140
|
+
styles: {
|
|
141
|
+
type: [Object, Function],
|
|
142
|
+
required: false
|
|
143
|
+
},
|
|
144
|
+
variant: {
|
|
145
|
+
type: String,
|
|
146
|
+
required: false
|
|
147
|
+
},
|
|
148
|
+
rootClass: {
|
|
149
|
+
type: String,
|
|
150
|
+
required: false
|
|
151
|
+
},
|
|
152
|
+
prefixCls: {
|
|
153
|
+
type: String,
|
|
154
|
+
required: false
|
|
155
|
+
},
|
|
156
|
+
onTabChange: {
|
|
157
|
+
type: Function,
|
|
158
|
+
required: false
|
|
159
|
+
},
|
|
160
|
+
"onUpdate:activeTabKey": {
|
|
161
|
+
type: Function,
|
|
162
|
+
required: false
|
|
163
|
+
},
|
|
88
164
|
gutter: {
|
|
89
165
|
type: [
|
|
90
166
|
Number,
|
|
@@ -94,6 +170,40 @@ const StatisticCard = /* @__PURE__ */ defineComponent((props, { attrs, slots })
|
|
|
94
170
|
],
|
|
95
171
|
required: false
|
|
96
172
|
},
|
|
173
|
+
align: {
|
|
174
|
+
type: [String, Object],
|
|
175
|
+
required: false
|
|
176
|
+
},
|
|
177
|
+
justify: {
|
|
178
|
+
type: [String, Object],
|
|
179
|
+
required: false
|
|
180
|
+
},
|
|
181
|
+
wrap: {
|
|
182
|
+
type: Boolean,
|
|
183
|
+
required: false,
|
|
184
|
+
default: void 0
|
|
185
|
+
},
|
|
186
|
+
tooltip: {
|
|
187
|
+
type: [
|
|
188
|
+
Object,
|
|
189
|
+
Function,
|
|
190
|
+
String,
|
|
191
|
+
Number,
|
|
192
|
+
null,
|
|
193
|
+
Boolean,
|
|
194
|
+
Array
|
|
195
|
+
],
|
|
196
|
+
required: false,
|
|
197
|
+
default: void 0
|
|
198
|
+
},
|
|
199
|
+
split: {
|
|
200
|
+
type: String,
|
|
201
|
+
required: false
|
|
202
|
+
},
|
|
203
|
+
direction: {
|
|
204
|
+
type: String,
|
|
205
|
+
required: false
|
|
206
|
+
},
|
|
97
207
|
colStyle: {
|
|
98
208
|
type: Object,
|
|
99
209
|
required: false
|
|
@@ -175,149 +285,39 @@ const StatisticCard = /* @__PURE__ */ defineComponent((props, { attrs, slots })
|
|
|
175
285
|
type: Function,
|
|
176
286
|
required: false
|
|
177
287
|
},
|
|
178
|
-
|
|
288
|
+
chart: {
|
|
179
289
|
type: [
|
|
180
|
-
Function,
|
|
181
|
-
String,
|
|
182
|
-
Number,
|
|
183
|
-
null,
|
|
184
290
|
Object,
|
|
185
|
-
Boolean
|
|
186
|
-
],
|
|
187
|
-
required: false,
|
|
188
|
-
default: void 0
|
|
189
|
-
},
|
|
190
|
-
extra: {
|
|
191
|
-
type: [
|
|
192
291
|
Function,
|
|
193
292
|
String,
|
|
194
293
|
Number,
|
|
195
294
|
null,
|
|
196
|
-
|
|
197
|
-
|
|
295
|
+
Boolean,
|
|
296
|
+
Array
|
|
198
297
|
],
|
|
199
298
|
required: false,
|
|
200
299
|
default: void 0
|
|
201
300
|
},
|
|
202
|
-
|
|
203
|
-
type: Boolean,
|
|
204
|
-
required: false,
|
|
205
|
-
default: void 0
|
|
206
|
-
},
|
|
207
|
-
headStyle: {
|
|
208
|
-
type: Object,
|
|
209
|
-
required: false
|
|
210
|
-
},
|
|
211
|
-
bodyStyle: {
|
|
301
|
+
statistic: {
|
|
212
302
|
type: Object,
|
|
213
303
|
required: false
|
|
214
304
|
},
|
|
215
|
-
|
|
216
|
-
type: Boolean,
|
|
217
|
-
required: false,
|
|
218
|
-
default: void 0
|
|
219
|
-
},
|
|
220
|
-
hoverable: {
|
|
221
|
-
type: Boolean,
|
|
222
|
-
required: false,
|
|
223
|
-
default: void 0
|
|
224
|
-
},
|
|
225
|
-
id: {
|
|
226
|
-
type: String,
|
|
227
|
-
required: false
|
|
228
|
-
},
|
|
229
|
-
size: {
|
|
230
|
-
type: String,
|
|
231
|
-
required: false
|
|
232
|
-
},
|
|
233
|
-
type: {
|
|
305
|
+
chartPlacement: {
|
|
234
306
|
type: String,
|
|
235
307
|
required: false
|
|
236
308
|
},
|
|
237
|
-
|
|
309
|
+
footer: {
|
|
238
310
|
type: [
|
|
239
|
-
Function,
|
|
240
|
-
String,
|
|
241
|
-
Number,
|
|
242
|
-
null,
|
|
243
311
|
Object,
|
|
244
|
-
Boolean
|
|
245
|
-
],
|
|
246
|
-
required: false,
|
|
247
|
-
default: void 0
|
|
248
|
-
},
|
|
249
|
-
actions: {
|
|
250
|
-
type: Array,
|
|
251
|
-
required: false
|
|
252
|
-
},
|
|
253
|
-
tabList: {
|
|
254
|
-
type: Array,
|
|
255
|
-
required: false
|
|
256
|
-
},
|
|
257
|
-
tabBarExtraContent: {
|
|
258
|
-
type: [
|
|
259
312
|
Function,
|
|
260
313
|
String,
|
|
261
314
|
Number,
|
|
262
315
|
null,
|
|
263
|
-
|
|
264
|
-
|
|
316
|
+
Boolean,
|
|
317
|
+
Array
|
|
265
318
|
],
|
|
266
319
|
required: false,
|
|
267
320
|
default: void 0
|
|
268
|
-
},
|
|
269
|
-
activeTabKey: {
|
|
270
|
-
type: String,
|
|
271
|
-
required: false
|
|
272
|
-
},
|
|
273
|
-
defaultActiveTabKey: {
|
|
274
|
-
type: String,
|
|
275
|
-
required: false
|
|
276
|
-
},
|
|
277
|
-
tabProps: {
|
|
278
|
-
type: Object,
|
|
279
|
-
required: false
|
|
280
|
-
},
|
|
281
|
-
classes: {
|
|
282
|
-
type: [Object, Function],
|
|
283
|
-
required: false
|
|
284
|
-
},
|
|
285
|
-
styles: {
|
|
286
|
-
type: [Object, Function],
|
|
287
|
-
required: false
|
|
288
|
-
},
|
|
289
|
-
variant: {
|
|
290
|
-
type: String,
|
|
291
|
-
required: false
|
|
292
|
-
},
|
|
293
|
-
rootClass: {
|
|
294
|
-
type: String,
|
|
295
|
-
required: false
|
|
296
|
-
},
|
|
297
|
-
prefixCls: {
|
|
298
|
-
type: String,
|
|
299
|
-
required: false
|
|
300
|
-
},
|
|
301
|
-
onTabChange: {
|
|
302
|
-
type: Function,
|
|
303
|
-
required: false
|
|
304
|
-
},
|
|
305
|
-
"onUpdate:activeTabKey": {
|
|
306
|
-
type: Function,
|
|
307
|
-
required: false
|
|
308
|
-
},
|
|
309
|
-
align: {
|
|
310
|
-
type: [String, Object],
|
|
311
|
-
required: false
|
|
312
|
-
},
|
|
313
|
-
justify: {
|
|
314
|
-
type: [String, Object],
|
|
315
|
-
required: false
|
|
316
|
-
},
|
|
317
|
-
wrap: {
|
|
318
|
-
type: Boolean,
|
|
319
|
-
required: false,
|
|
320
|
-
default: void 0
|
|
321
321
|
}
|
|
322
322
|
},
|
|
323
323
|
name: "StatisticCard",
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import ProCard, { ProCardProps } from "./ProCard.js";
|
|
2
|
-
import ProCheckCardGroup, { ProCheckCardGroupProps } from "./components/CheckCard/Group.js";
|
|
2
|
+
import ProCheckCardGroup, { CheckCardGroupContextType, CheckCardItemGroupType, CheckCardItemType, CheckCardOptionType, CheckCardValueType, CheckGroupValueType, ProCheckCardGroupProps } from "./components/CheckCard/Group.js";
|
|
3
3
|
import ProCheckCard, { ProCheckCardProps } from "./components/CheckCard/CheckCard.js";
|
|
4
4
|
import Statistic, { StatisticProps } from "./components/Statistic/index.js";
|
|
5
5
|
import StatisticCard, { StatisticCardProps } from "./components/StatisticCard/index.js";
|
|
6
|
-
export { ProCard, type ProCardProps, ProCheckCard, ProCheckCardGroup, type ProCheckCardGroupProps, type ProCheckCardProps, Statistic, StatisticCard, type StatisticCardProps, type StatisticProps, ProCard as default };
|
|
6
|
+
export { type CheckCardGroupContextType, type CheckCardItemGroupType, type CheckCardItemType, type CheckCardOptionType, type CheckCardValueType, type CheckGroupValueType, ProCard, type ProCardProps, ProCheckCard, ProCheckCardGroup, type ProCheckCardGroupProps, type ProCheckCardProps, Statistic, StatisticCard, type StatisticCardProps, type StatisticProps, ProCard as default };
|