@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/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
- cardTitle: 安全评分
11
- value: 93
12
- icon:
13
- lib: easyops
14
- category: monitor
15
- icon: infra-monitor
16
- bgColor: "#E6F0FC"
17
- color: "#3480EA"
18
- style:
19
- width: 300px
20
- children:
21
- - brick: eo-tooltip
22
- slot: titleSuffix
23
- properties:
24
- content: 安全评分是根据您的资产状态进行的评分
25
- trigger: hover
26
- placement: top-start
27
- children:
28
- - brick: eo-icon
29
- properties:
30
- lib: antd
31
- icon: question-circle
32
- theme: outlined
33
- style:
34
- font-size: 12px
35
- color: var(--text-color-secondary)
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.18.3",
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": "95d825e556c4ccba595899198bfcbdf94e75acdd"
46
+ "gitHead": "381d003d13e728c8bbb2deafbb6acacc579b7987"
47
47
  }