@next-bricks/presentational 0.18.2 → 0.19.0
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/bricks.json +15 -15
- package/dist/chunks/{9359.8b63121c.js → 9359.835ce5a8.js} +2 -2
- package/dist/chunks/9359.835ce5a8.js.map +1 -0
- package/dist/chunks/eo-statistics-card.953c7d00.js +2 -0
- package/dist/chunks/eo-statistics-card.953c7d00.js.map +1 -0
- package/dist/chunks/{main.dfa3ebd2.js → main.0c533315.js} +2 -2
- package/dist/chunks/{main.dfa3ebd2.js.map → main.0c533315.js.map} +1 -1
- package/dist/examples.json +4 -4
- package/dist/{index.30d10352.js → index.929be31a.js} +2 -2
- package/dist/{index.30d10352.js.map → index.929be31a.js.map} +1 -1
- package/dist/manifest.json +63 -57
- package/dist/types.json +102 -62
- package/dist-types/statistics-card/index.d.ts +5 -0
- package/docs/eo-statistics-card.md +31 -29
- package/package.json +3 -3
- package/dist/chunks/9359.8b63121c.js.map +0 -1
- package/dist/chunks/eo-statistics-card.4317c99c.js +0 -2
- package/dist/chunks/eo-statistics-card.4317c99c.js.map +0 -1
package/dist/manifest.json
CHANGED
|
@@ -113,6 +113,63 @@
|
|
|
113
113
|
"description": "告警提示",
|
|
114
114
|
"category": "display-component"
|
|
115
115
|
},
|
|
116
|
+
{
|
|
117
|
+
"name": "eo-code-display",
|
|
118
|
+
"alias": [
|
|
119
|
+
"presentational.code-display"
|
|
120
|
+
],
|
|
121
|
+
"properties": [
|
|
122
|
+
{
|
|
123
|
+
"name": "value",
|
|
124
|
+
"description": "代码内容",
|
|
125
|
+
"default": "\"\"",
|
|
126
|
+
"type": "string"
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
"name": "language",
|
|
130
|
+
"description": "语言,具体查阅 [Supported languages](https://prismjs.com/#supported-languages)",
|
|
131
|
+
"type": "string"
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
"name": "hideLineNumber",
|
|
135
|
+
"description": "是否隐藏行号",
|
|
136
|
+
"type": "boolean"
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
"name": "maxLines",
|
|
140
|
+
"description": "最大行数",
|
|
141
|
+
"type": "number"
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
"name": "minLines",
|
|
145
|
+
"description": "最小行数",
|
|
146
|
+
"type": "number"
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
"name": "showCopyButton",
|
|
150
|
+
"description": "是否显示复制按钮",
|
|
151
|
+
"default": "true",
|
|
152
|
+
"type": "boolean"
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
"name": "showExportButton",
|
|
156
|
+
"description": "是否显示导出按钮",
|
|
157
|
+
"type": "boolean"
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
"name": "exportFileName",
|
|
161
|
+
"description": "导出的文件名",
|
|
162
|
+
"default": "download.txt",
|
|
163
|
+
"type": "string"
|
|
164
|
+
}
|
|
165
|
+
],
|
|
166
|
+
"events": [],
|
|
167
|
+
"slots": [],
|
|
168
|
+
"methods": [],
|
|
169
|
+
"parts": [],
|
|
170
|
+
"description": "代码展示",
|
|
171
|
+
"category": "display-component"
|
|
172
|
+
},
|
|
116
173
|
{
|
|
117
174
|
"name": "eo-pagination",
|
|
118
175
|
"properties": [
|
|
@@ -421,6 +478,12 @@
|
|
|
421
478
|
"description": "描述位置",
|
|
422
479
|
"default": "\"bottom\"",
|
|
423
480
|
"type": "\"bottom\" | \"right\""
|
|
481
|
+
},
|
|
482
|
+
{
|
|
483
|
+
"name": "valueStyle",
|
|
484
|
+
"description": "值样式",
|
|
485
|
+
"attribute": false,
|
|
486
|
+
"type": "React.CSSProperties"
|
|
424
487
|
}
|
|
425
488
|
],
|
|
426
489
|
"events": [],
|
|
@@ -449,63 +512,6 @@
|
|
|
449
512
|
"methods": [],
|
|
450
513
|
"parts": [],
|
|
451
514
|
"description": "统计卡片"
|
|
452
|
-
},
|
|
453
|
-
{
|
|
454
|
-
"name": "eo-code-display",
|
|
455
|
-
"alias": [
|
|
456
|
-
"presentational.code-display"
|
|
457
|
-
],
|
|
458
|
-
"properties": [
|
|
459
|
-
{
|
|
460
|
-
"name": "value",
|
|
461
|
-
"description": "代码内容",
|
|
462
|
-
"default": "\"\"",
|
|
463
|
-
"type": "string"
|
|
464
|
-
},
|
|
465
|
-
{
|
|
466
|
-
"name": "language",
|
|
467
|
-
"description": "语言,具体查阅 [Supported languages](https://prismjs.com/#supported-languages)",
|
|
468
|
-
"type": "string"
|
|
469
|
-
},
|
|
470
|
-
{
|
|
471
|
-
"name": "hideLineNumber",
|
|
472
|
-
"description": "是否隐藏行号",
|
|
473
|
-
"type": "boolean"
|
|
474
|
-
},
|
|
475
|
-
{
|
|
476
|
-
"name": "maxLines",
|
|
477
|
-
"description": "最大行数",
|
|
478
|
-
"type": "number"
|
|
479
|
-
},
|
|
480
|
-
{
|
|
481
|
-
"name": "minLines",
|
|
482
|
-
"description": "最小行数",
|
|
483
|
-
"type": "number"
|
|
484
|
-
},
|
|
485
|
-
{
|
|
486
|
-
"name": "showCopyButton",
|
|
487
|
-
"description": "是否显示复制按钮",
|
|
488
|
-
"default": "true",
|
|
489
|
-
"type": "boolean"
|
|
490
|
-
},
|
|
491
|
-
{
|
|
492
|
-
"name": "showExportButton",
|
|
493
|
-
"description": "是否显示导出按钮",
|
|
494
|
-
"type": "boolean"
|
|
495
|
-
},
|
|
496
|
-
{
|
|
497
|
-
"name": "exportFileName",
|
|
498
|
-
"description": "导出的文件名",
|
|
499
|
-
"default": "download.txt",
|
|
500
|
-
"type": "string"
|
|
501
|
-
}
|
|
502
|
-
],
|
|
503
|
-
"events": [],
|
|
504
|
-
"slots": [],
|
|
505
|
-
"methods": [],
|
|
506
|
-
"parts": [],
|
|
507
|
-
"description": "代码展示",
|
|
508
|
-
"category": "display-component"
|
|
509
515
|
}
|
|
510
516
|
],
|
|
511
517
|
"providers": []
|
package/dist/types.json
CHANGED
|
@@ -921,6 +921,23 @@
|
|
|
921
921
|
}
|
|
922
922
|
]
|
|
923
923
|
}
|
|
924
|
+
},
|
|
925
|
+
{
|
|
926
|
+
"name": "valueStyle",
|
|
927
|
+
"annotation": {
|
|
928
|
+
"type": "reference",
|
|
929
|
+
"typeName": {
|
|
930
|
+
"type": "qualifiedName",
|
|
931
|
+
"left": {
|
|
932
|
+
"type": "identifier",
|
|
933
|
+
"name": "React"
|
|
934
|
+
},
|
|
935
|
+
"right": {
|
|
936
|
+
"type": "identifier",
|
|
937
|
+
"name": "CSSProperties"
|
|
938
|
+
}
|
|
939
|
+
}
|
|
940
|
+
}
|
|
924
941
|
}
|
|
925
942
|
],
|
|
926
943
|
"events": [],
|
|
@@ -1107,6 +1124,29 @@
|
|
|
1107
1124
|
},
|
|
1108
1125
|
"optional": true,
|
|
1109
1126
|
"computed": false
|
|
1127
|
+
},
|
|
1128
|
+
{
|
|
1129
|
+
"type": "propertySignature",
|
|
1130
|
+
"key": {
|
|
1131
|
+
"type": "identifier",
|
|
1132
|
+
"name": "valueStyle"
|
|
1133
|
+
},
|
|
1134
|
+
"annotation": {
|
|
1135
|
+
"type": "reference",
|
|
1136
|
+
"typeName": {
|
|
1137
|
+
"type": "qualifiedName",
|
|
1138
|
+
"left": {
|
|
1139
|
+
"type": "identifier",
|
|
1140
|
+
"name": "React"
|
|
1141
|
+
},
|
|
1142
|
+
"right": {
|
|
1143
|
+
"type": "identifier",
|
|
1144
|
+
"name": "CSSProperties"
|
|
1145
|
+
}
|
|
1146
|
+
}
|
|
1147
|
+
},
|
|
1148
|
+
"optional": true,
|
|
1149
|
+
"computed": false
|
|
1110
1150
|
}
|
|
1111
1151
|
]
|
|
1112
1152
|
}
|
|
@@ -1208,6 +1248,68 @@
|
|
|
1208
1248
|
}
|
|
1209
1249
|
]
|
|
1210
1250
|
},
|
|
1251
|
+
"eo-code-display": {
|
|
1252
|
+
"properties": [
|
|
1253
|
+
{
|
|
1254
|
+
"name": "value",
|
|
1255
|
+
"annotation": {
|
|
1256
|
+
"type": "keyword",
|
|
1257
|
+
"value": "string"
|
|
1258
|
+
}
|
|
1259
|
+
},
|
|
1260
|
+
{
|
|
1261
|
+
"name": "language",
|
|
1262
|
+
"annotation": {
|
|
1263
|
+
"type": "keyword",
|
|
1264
|
+
"value": "string"
|
|
1265
|
+
}
|
|
1266
|
+
},
|
|
1267
|
+
{
|
|
1268
|
+
"name": "hideLineNumber",
|
|
1269
|
+
"annotation": {
|
|
1270
|
+
"type": "keyword",
|
|
1271
|
+
"value": "boolean"
|
|
1272
|
+
}
|
|
1273
|
+
},
|
|
1274
|
+
{
|
|
1275
|
+
"name": "maxLines",
|
|
1276
|
+
"annotation": {
|
|
1277
|
+
"type": "keyword",
|
|
1278
|
+
"value": "number"
|
|
1279
|
+
}
|
|
1280
|
+
},
|
|
1281
|
+
{
|
|
1282
|
+
"name": "minLines",
|
|
1283
|
+
"annotation": {
|
|
1284
|
+
"type": "keyword",
|
|
1285
|
+
"value": "number"
|
|
1286
|
+
}
|
|
1287
|
+
},
|
|
1288
|
+
{
|
|
1289
|
+
"name": "showCopyButton",
|
|
1290
|
+
"annotation": {
|
|
1291
|
+
"type": "keyword",
|
|
1292
|
+
"value": "boolean"
|
|
1293
|
+
}
|
|
1294
|
+
},
|
|
1295
|
+
{
|
|
1296
|
+
"name": "showExportButton",
|
|
1297
|
+
"annotation": {
|
|
1298
|
+
"type": "keyword",
|
|
1299
|
+
"value": "boolean"
|
|
1300
|
+
}
|
|
1301
|
+
},
|
|
1302
|
+
{
|
|
1303
|
+
"name": "exportFileName",
|
|
1304
|
+
"annotation": {
|
|
1305
|
+
"type": "keyword",
|
|
1306
|
+
"value": "string"
|
|
1307
|
+
}
|
|
1308
|
+
}
|
|
1309
|
+
],
|
|
1310
|
+
"events": [],
|
|
1311
|
+
"methods": []
|
|
1312
|
+
},
|
|
1211
1313
|
"eo-pagination": {
|
|
1212
1314
|
"properties": [
|
|
1213
1315
|
{
|
|
@@ -1392,67 +1494,5 @@
|
|
|
1392
1494
|
]
|
|
1393
1495
|
}
|
|
1394
1496
|
]
|
|
1395
|
-
},
|
|
1396
|
-
"eo-code-display": {
|
|
1397
|
-
"properties": [
|
|
1398
|
-
{
|
|
1399
|
-
"name": "value",
|
|
1400
|
-
"annotation": {
|
|
1401
|
-
"type": "keyword",
|
|
1402
|
-
"value": "string"
|
|
1403
|
-
}
|
|
1404
|
-
},
|
|
1405
|
-
{
|
|
1406
|
-
"name": "language",
|
|
1407
|
-
"annotation": {
|
|
1408
|
-
"type": "keyword",
|
|
1409
|
-
"value": "string"
|
|
1410
|
-
}
|
|
1411
|
-
},
|
|
1412
|
-
{
|
|
1413
|
-
"name": "hideLineNumber",
|
|
1414
|
-
"annotation": {
|
|
1415
|
-
"type": "keyword",
|
|
1416
|
-
"value": "boolean"
|
|
1417
|
-
}
|
|
1418
|
-
},
|
|
1419
|
-
{
|
|
1420
|
-
"name": "maxLines",
|
|
1421
|
-
"annotation": {
|
|
1422
|
-
"type": "keyword",
|
|
1423
|
-
"value": "number"
|
|
1424
|
-
}
|
|
1425
|
-
},
|
|
1426
|
-
{
|
|
1427
|
-
"name": "minLines",
|
|
1428
|
-
"annotation": {
|
|
1429
|
-
"type": "keyword",
|
|
1430
|
-
"value": "number"
|
|
1431
|
-
}
|
|
1432
|
-
},
|
|
1433
|
-
{
|
|
1434
|
-
"name": "showCopyButton",
|
|
1435
|
-
"annotation": {
|
|
1436
|
-
"type": "keyword",
|
|
1437
|
-
"value": "boolean"
|
|
1438
|
-
}
|
|
1439
|
-
},
|
|
1440
|
-
{
|
|
1441
|
-
"name": "showExportButton",
|
|
1442
|
-
"annotation": {
|
|
1443
|
-
"type": "keyword",
|
|
1444
|
-
"value": "boolean"
|
|
1445
|
-
}
|
|
1446
|
-
},
|
|
1447
|
-
{
|
|
1448
|
-
"name": "exportFileName",
|
|
1449
|
-
"annotation": {
|
|
1450
|
-
"type": "keyword",
|
|
1451
|
-
"value": "string"
|
|
1452
|
-
}
|
|
1453
|
-
}
|
|
1454
|
-
],
|
|
1455
|
-
"events": [],
|
|
1456
|
-
"methods": []
|
|
1457
1497
|
}
|
|
1458
1498
|
}
|
|
@@ -14,6 +14,7 @@ export interface EoStatisticsCardProps {
|
|
|
14
14
|
outline?: "border" | "background" | "none";
|
|
15
15
|
background?: string;
|
|
16
16
|
descriptionPosition?: "bottom" | "right";
|
|
17
|
+
valueStyle?: React.CSSProperties;
|
|
17
18
|
}
|
|
18
19
|
/**
|
|
19
20
|
* 统计卡片
|
|
@@ -58,6 +59,10 @@ export declare class EoStatisticsCard extends ReactNextElement {
|
|
|
58
59
|
* 描述位置
|
|
59
60
|
*/
|
|
60
61
|
accessor descriptionPosition: "bottom" | "right";
|
|
62
|
+
/**
|
|
63
|
+
* 值样式
|
|
64
|
+
*/
|
|
65
|
+
accessor valueStyle: React.CSSProperties | undefined;
|
|
61
66
|
render(): React.JSX.Element;
|
|
62
67
|
}
|
|
63
68
|
export declare function EoStatisticsCardComponent(props: EoStatisticsCardProps): React.JSX.Element;
|
|
@@ -4,35 +4,37 @@
|
|
|
4
4
|
|
|
5
5
|
### Basic
|
|
6
6
|
|
|
7
|
-
```yaml preview
|
|
8
|
-
brick: eo-statistics-card
|
|
9
|
-
properties:
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
7
|
+
```yaml preview gap
|
|
8
|
+
- brick: eo-statistics-card
|
|
9
|
+
properties:
|
|
10
|
+
cardTitle: 安全评分
|
|
11
|
+
value: 93
|
|
12
|
+
valueStyle:
|
|
13
|
+
color: var(--color-success)
|
|
14
|
+
icon:
|
|
15
|
+
lib: easyops
|
|
16
|
+
category: monitor
|
|
17
|
+
icon: infra-monitor
|
|
18
|
+
bgColor: "#E6F0FC"
|
|
19
|
+
color: "#3480EA"
|
|
20
|
+
style:
|
|
21
|
+
width: 300px
|
|
22
|
+
children:
|
|
23
|
+
- brick: eo-tooltip
|
|
24
|
+
slot: titleSuffix
|
|
25
|
+
properties:
|
|
26
|
+
content: 安全评分是根据您的资产状态进行的评分
|
|
27
|
+
trigger: hover
|
|
28
|
+
placement: top-start
|
|
29
|
+
children:
|
|
30
|
+
- brick: eo-icon
|
|
31
|
+
properties:
|
|
32
|
+
lib: antd
|
|
33
|
+
icon: question-circle
|
|
34
|
+
theme: outlined
|
|
35
|
+
style:
|
|
36
|
+
font-size: 12px
|
|
37
|
+
color: var(--text-color-secondary)
|
|
36
38
|
```
|
|
37
39
|
|
|
38
40
|
### Outline
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@next-bricks/presentational",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.19.0",
|
|
4
4
|
"homepage": "https://github.com/easyops-cn/next-bricks/tree/master/bricks/presentational",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"postpublish": "mv package.json.bak package.json"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
|
-
"@next-core/build-next-bricks": "^1.
|
|
37
|
+
"@next-core/build-next-bricks": "^1.19.0",
|
|
38
38
|
"@next-core/test-next": "^1.0.12",
|
|
39
39
|
"babel-plugin-prismjs": "^2.1.0"
|
|
40
40
|
},
|
|
@@ -43,5 +43,5 @@
|
|
|
43
43
|
"@next-bricks/containers": "*",
|
|
44
44
|
"@next-bricks/icons": "*"
|
|
45
45
|
},
|
|
46
|
-
"gitHead": "
|
|
46
|
+
"gitHead": "381d003d13e728c8bbb2deafbb6acacc579b7987"
|
|
47
47
|
}
|