@next-bricks/presentational 0.18.3 → 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 +1 -1
- 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 +1 -1
- package/dist/{index.e6219660.js → index.929be31a.js} +2 -2
- package/dist/{index.e6219660.js.map → index.929be31a.js.map} +1 -1
- package/dist/manifest.json +6 -0
- package/dist/types.json +40 -0
- package/dist-types/statistics-card/index.d.ts +5 -0
- package/docs/eo-statistics-card.md +31 -29
- package/package.json +2 -2
- 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/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
|
}
|
|
@@ -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",
|
|
@@ -43,5 +43,5 @@
|
|
|
43
43
|
"@next-bricks/containers": "*",
|
|
44
44
|
"@next-bricks/icons": "*"
|
|
45
45
|
},
|
|
46
|
-
"gitHead": "
|
|
46
|
+
"gitHead": "381d003d13e728c8bbb2deafbb6acacc579b7987"
|
|
47
47
|
}
|