@next-bricks/presentational 1.1.1 → 1.2.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 +9 -9
- package/dist/chunks/1761.5eb43d0f.js +2 -0
- package/dist/chunks/1761.5eb43d0f.js.map +1 -0
- package/dist/chunks/2108.ed25881f.js +2 -0
- package/dist/chunks/2108.ed25881f.js.map +1 -0
- package/dist/chunks/eo-card-item.ad2946ea.js +2 -0
- package/dist/chunks/eo-card-item.ad2946ea.js.map +1 -0
- package/dist/chunks/{main.6bf1d4c4.js → main.f67fc907.js} +2 -2
- package/dist/chunks/{main.6bf1d4c4.js.map → main.f67fc907.js.map} +1 -1
- package/dist/examples.json +4 -4
- package/dist/{index.2b5b865d.js → index.0998d496.js} +2 -2
- package/dist/{index.2b5b865d.js.map → index.0998d496.js.map} +1 -1
- package/dist/manifest.json +68 -55
- package/dist/types.json +144 -63
- package/dist-types/card-item/index.d.ts +23 -2
- package/docs/eo-card-item.md +164 -0
- package/package.json +2 -2
- package/dist/chunks/1761.f18783a9.js +0 -2
- package/dist/chunks/1761.f18783a9.js.map +0 -1
- package/dist/chunks/2108.19ba82ef.js +0 -2
- package/dist/chunks/2108.19ba82ef.js.map +0 -1
- package/dist/chunks/eo-card-item.20f8f539.js +0 -2
- package/dist/chunks/eo-card-item.20f8f539.js.map +0 -1
package/dist/manifest.json
CHANGED
|
@@ -64,6 +64,60 @@
|
|
|
64
64
|
"description": "通用描述列表构件",
|
|
65
65
|
"category": "text"
|
|
66
66
|
},
|
|
67
|
+
{
|
|
68
|
+
"name": "eo-alert",
|
|
69
|
+
"alias": [
|
|
70
|
+
"presentational.general-alert"
|
|
71
|
+
],
|
|
72
|
+
"properties": [
|
|
73
|
+
{
|
|
74
|
+
"name": "type",
|
|
75
|
+
"description": "警告类型",
|
|
76
|
+
"attribute": false,
|
|
77
|
+
"type": "AlertType"
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
"name": "hasTitle",
|
|
81
|
+
"description": "是否显示标题。开启后,可以使用 `title` 插槽",
|
|
82
|
+
"type": "boolean"
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
"name": "showIcon",
|
|
86
|
+
"description": "是否显示提示图标",
|
|
87
|
+
"type": "boolean"
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
"name": "closable",
|
|
91
|
+
"description": "是否显示关闭按钮",
|
|
92
|
+
"type": "boolean"
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
"name": "localStorageKey",
|
|
96
|
+
"description": "以该值和页面 url 作为命名空间,决定是否显示该警告提示",
|
|
97
|
+
"type": "string"
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
"name": "disableUrlNamespace",
|
|
101
|
+
"description": "关闭后仅以 `localStorageKey` 作为命名空间",
|
|
102
|
+
"type": "boolean"
|
|
103
|
+
}
|
|
104
|
+
],
|
|
105
|
+
"events": [],
|
|
106
|
+
"slots": [
|
|
107
|
+
{
|
|
108
|
+
"name": null,
|
|
109
|
+
"description": "内容区"
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
"name": "title",
|
|
113
|
+
"description": "标题"
|
|
114
|
+
}
|
|
115
|
+
],
|
|
116
|
+
"methods": [],
|
|
117
|
+
"parts": [],
|
|
118
|
+
"description": "告警提示",
|
|
119
|
+
"category": "display-component"
|
|
120
|
+
},
|
|
67
121
|
{
|
|
68
122
|
"name": "eo-code-display",
|
|
69
123
|
"alias": [
|
|
@@ -121,60 +175,6 @@
|
|
|
121
175
|
"description": "代码展示",
|
|
122
176
|
"category": "display-component"
|
|
123
177
|
},
|
|
124
|
-
{
|
|
125
|
-
"name": "eo-alert",
|
|
126
|
-
"alias": [
|
|
127
|
-
"presentational.general-alert"
|
|
128
|
-
],
|
|
129
|
-
"properties": [
|
|
130
|
-
{
|
|
131
|
-
"name": "type",
|
|
132
|
-
"description": "警告类型",
|
|
133
|
-
"attribute": false,
|
|
134
|
-
"type": "AlertType"
|
|
135
|
-
},
|
|
136
|
-
{
|
|
137
|
-
"name": "hasTitle",
|
|
138
|
-
"description": "是否显示标题。开启后,可以使用 `title` 插槽",
|
|
139
|
-
"type": "boolean"
|
|
140
|
-
},
|
|
141
|
-
{
|
|
142
|
-
"name": "showIcon",
|
|
143
|
-
"description": "是否显示提示图标",
|
|
144
|
-
"type": "boolean"
|
|
145
|
-
},
|
|
146
|
-
{
|
|
147
|
-
"name": "closable",
|
|
148
|
-
"description": "是否显示关闭按钮",
|
|
149
|
-
"type": "boolean"
|
|
150
|
-
},
|
|
151
|
-
{
|
|
152
|
-
"name": "localStorageKey",
|
|
153
|
-
"description": "以该值和页面 url 作为命名空间,决定是否显示该警告提示",
|
|
154
|
-
"type": "string"
|
|
155
|
-
},
|
|
156
|
-
{
|
|
157
|
-
"name": "disableUrlNamespace",
|
|
158
|
-
"description": "关闭后仅以 `localStorageKey` 作为命名空间",
|
|
159
|
-
"type": "boolean"
|
|
160
|
-
}
|
|
161
|
-
],
|
|
162
|
-
"events": [],
|
|
163
|
-
"slots": [
|
|
164
|
-
{
|
|
165
|
-
"name": null,
|
|
166
|
-
"description": "内容区"
|
|
167
|
-
},
|
|
168
|
-
{
|
|
169
|
-
"name": "title",
|
|
170
|
-
"description": "标题"
|
|
171
|
-
}
|
|
172
|
-
],
|
|
173
|
-
"methods": [],
|
|
174
|
-
"parts": [],
|
|
175
|
-
"description": "告警提示",
|
|
176
|
-
"category": "display-component"
|
|
177
|
-
},
|
|
178
178
|
{
|
|
179
179
|
"name": "eo-card-item",
|
|
180
180
|
"properties": [
|
|
@@ -252,9 +252,22 @@
|
|
|
252
252
|
"name": "avatarPosition",
|
|
253
253
|
"description": "图标是否放置在卡片封面",
|
|
254
254
|
"type": "\"content\" | \"cover\""
|
|
255
|
+
},
|
|
256
|
+
{
|
|
257
|
+
"name": "tagConfig",
|
|
258
|
+
"attribute": false,
|
|
259
|
+
"type": "TagConfig"
|
|
260
|
+
}
|
|
261
|
+
],
|
|
262
|
+
"events": [
|
|
263
|
+
{
|
|
264
|
+
"name": "tag.click",
|
|
265
|
+
"description": "徽标点击事件",
|
|
266
|
+
"detail": {
|
|
267
|
+
"type": "void"
|
|
268
|
+
}
|
|
255
269
|
}
|
|
256
270
|
],
|
|
257
|
-
"events": [],
|
|
258
271
|
"slots": [
|
|
259
272
|
{
|
|
260
273
|
"name": "expanded-area-1",
|
package/dist/types.json
CHANGED
|
@@ -358,9 +358,29 @@
|
|
|
358
358
|
}
|
|
359
359
|
]
|
|
360
360
|
}
|
|
361
|
+
},
|
|
362
|
+
{
|
|
363
|
+
"name": "tagConfig",
|
|
364
|
+
"annotation": {
|
|
365
|
+
"type": "reference",
|
|
366
|
+
"typeName": {
|
|
367
|
+
"type": "identifier",
|
|
368
|
+
"name": "TagConfig"
|
|
369
|
+
}
|
|
370
|
+
}
|
|
371
|
+
}
|
|
372
|
+
],
|
|
373
|
+
"events": [
|
|
374
|
+
{
|
|
375
|
+
"name": "tag.click",
|
|
376
|
+
"detail": {
|
|
377
|
+
"annotation": {
|
|
378
|
+
"type": "keyword",
|
|
379
|
+
"value": "void"
|
|
380
|
+
}
|
|
381
|
+
}
|
|
361
382
|
}
|
|
362
383
|
],
|
|
363
|
-
"events": [],
|
|
364
384
|
"methods": [],
|
|
365
385
|
"types": [
|
|
366
386
|
{
|
|
@@ -547,6 +567,67 @@
|
|
|
547
567
|
"computed": false
|
|
548
568
|
}
|
|
549
569
|
]
|
|
570
|
+
},
|
|
571
|
+
{
|
|
572
|
+
"type": "interface",
|
|
573
|
+
"name": "TagConfig",
|
|
574
|
+
"body": [
|
|
575
|
+
{
|
|
576
|
+
"type": "propertySignature",
|
|
577
|
+
"key": {
|
|
578
|
+
"type": "identifier",
|
|
579
|
+
"name": "text"
|
|
580
|
+
},
|
|
581
|
+
"annotation": {
|
|
582
|
+
"type": "keyword",
|
|
583
|
+
"value": "string"
|
|
584
|
+
},
|
|
585
|
+
"optional": true,
|
|
586
|
+
"computed": false
|
|
587
|
+
},
|
|
588
|
+
{
|
|
589
|
+
"type": "propertySignature",
|
|
590
|
+
"key": {
|
|
591
|
+
"type": "identifier",
|
|
592
|
+
"name": "icon"
|
|
593
|
+
},
|
|
594
|
+
"annotation": {
|
|
595
|
+
"type": "reference",
|
|
596
|
+
"typeName": {
|
|
597
|
+
"type": "identifier",
|
|
598
|
+
"name": "GeneralIconProps"
|
|
599
|
+
}
|
|
600
|
+
},
|
|
601
|
+
"optional": true,
|
|
602
|
+
"computed": false
|
|
603
|
+
},
|
|
604
|
+
{
|
|
605
|
+
"type": "propertySignature",
|
|
606
|
+
"key": {
|
|
607
|
+
"type": "identifier",
|
|
608
|
+
"name": "bgColor"
|
|
609
|
+
},
|
|
610
|
+
"annotation": {
|
|
611
|
+
"type": "keyword",
|
|
612
|
+
"value": "string"
|
|
613
|
+
},
|
|
614
|
+
"optional": true,
|
|
615
|
+
"computed": false
|
|
616
|
+
},
|
|
617
|
+
{
|
|
618
|
+
"type": "propertySignature",
|
|
619
|
+
"key": {
|
|
620
|
+
"type": "identifier",
|
|
621
|
+
"name": "color"
|
|
622
|
+
},
|
|
623
|
+
"annotation": {
|
|
624
|
+
"type": "keyword",
|
|
625
|
+
"value": "string"
|
|
626
|
+
},
|
|
627
|
+
"optional": true,
|
|
628
|
+
"computed": false
|
|
629
|
+
}
|
|
630
|
+
]
|
|
550
631
|
}
|
|
551
632
|
]
|
|
552
633
|
},
|
|
@@ -1209,68 +1290,6 @@
|
|
|
1209
1290
|
}
|
|
1210
1291
|
]
|
|
1211
1292
|
},
|
|
1212
|
-
"eo-code-display": {
|
|
1213
|
-
"properties": [
|
|
1214
|
-
{
|
|
1215
|
-
"name": "value",
|
|
1216
|
-
"annotation": {
|
|
1217
|
-
"type": "keyword",
|
|
1218
|
-
"value": "string"
|
|
1219
|
-
}
|
|
1220
|
-
},
|
|
1221
|
-
{
|
|
1222
|
-
"name": "language",
|
|
1223
|
-
"annotation": {
|
|
1224
|
-
"type": "keyword",
|
|
1225
|
-
"value": "string"
|
|
1226
|
-
}
|
|
1227
|
-
},
|
|
1228
|
-
{
|
|
1229
|
-
"name": "hideLineNumber",
|
|
1230
|
-
"annotation": {
|
|
1231
|
-
"type": "keyword",
|
|
1232
|
-
"value": "boolean"
|
|
1233
|
-
}
|
|
1234
|
-
},
|
|
1235
|
-
{
|
|
1236
|
-
"name": "maxLines",
|
|
1237
|
-
"annotation": {
|
|
1238
|
-
"type": "keyword",
|
|
1239
|
-
"value": "number"
|
|
1240
|
-
}
|
|
1241
|
-
},
|
|
1242
|
-
{
|
|
1243
|
-
"name": "minLines",
|
|
1244
|
-
"annotation": {
|
|
1245
|
-
"type": "keyword",
|
|
1246
|
-
"value": "number"
|
|
1247
|
-
}
|
|
1248
|
-
},
|
|
1249
|
-
{
|
|
1250
|
-
"name": "showCopyButton",
|
|
1251
|
-
"annotation": {
|
|
1252
|
-
"type": "keyword",
|
|
1253
|
-
"value": "boolean"
|
|
1254
|
-
}
|
|
1255
|
-
},
|
|
1256
|
-
{
|
|
1257
|
-
"name": "showExportButton",
|
|
1258
|
-
"annotation": {
|
|
1259
|
-
"type": "keyword",
|
|
1260
|
-
"value": "boolean"
|
|
1261
|
-
}
|
|
1262
|
-
},
|
|
1263
|
-
{
|
|
1264
|
-
"name": "exportFileName",
|
|
1265
|
-
"annotation": {
|
|
1266
|
-
"type": "keyword",
|
|
1267
|
-
"value": "string"
|
|
1268
|
-
}
|
|
1269
|
-
}
|
|
1270
|
-
],
|
|
1271
|
-
"events": [],
|
|
1272
|
-
"methods": []
|
|
1273
|
-
},
|
|
1274
1293
|
"eo-alert": {
|
|
1275
1294
|
"properties": [
|
|
1276
1295
|
{
|
|
@@ -1374,6 +1393,68 @@
|
|
|
1374
1393
|
}
|
|
1375
1394
|
]
|
|
1376
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
|
+
},
|
|
1377
1458
|
"eo-pagination": {
|
|
1378
1459
|
"properties": [
|
|
1379
1460
|
{
|
|
@@ -2,7 +2,7 @@ import React, { CSSProperties, Ref } from "react";
|
|
|
2
2
|
import { ReactNextElement } from "@next-core/react-element";
|
|
3
3
|
import type { LinkProps } from "@next-bricks/basic/link";
|
|
4
4
|
import type { GeneralIconProps } from "@next-bricks/icons/general-icon";
|
|
5
|
-
import type { ActionType } from "@next-bricks/basic/mini-actions";
|
|
5
|
+
import type { SimpleActionType, ActionType } from "@next-bricks/basic/mini-actions";
|
|
6
6
|
import "@next-core/theme";
|
|
7
7
|
import "./host-contenxt.css";
|
|
8
8
|
interface IconAvatar {
|
|
@@ -20,6 +20,24 @@ interface ImgAvatar {
|
|
|
20
20
|
shape?: "circle" | "square" | "round-square";
|
|
21
21
|
bgColor?: string;
|
|
22
22
|
}
|
|
23
|
+
interface TagConfig {
|
|
24
|
+
text?: string;
|
|
25
|
+
icon?: GeneralIconProps;
|
|
26
|
+
bgColor?: string;
|
|
27
|
+
color?: string;
|
|
28
|
+
}
|
|
29
|
+
export declare enum TagColor {
|
|
30
|
+
blue = "blue",
|
|
31
|
+
cyan = "cyan",
|
|
32
|
+
geekblue = "geekblue",
|
|
33
|
+
grayblue = "grayblue",
|
|
34
|
+
gray = "gray",
|
|
35
|
+
green = "green",
|
|
36
|
+
orange = "orange",
|
|
37
|
+
purple = "purple",
|
|
38
|
+
red = "red",
|
|
39
|
+
yellow = "yellow"
|
|
40
|
+
}
|
|
23
41
|
export interface EoCardItemProps {
|
|
24
42
|
hasHeader?: boolean;
|
|
25
43
|
cardTitle: string;
|
|
@@ -36,6 +54,7 @@ export interface EoCardItemProps {
|
|
|
36
54
|
hasCover?: boolean;
|
|
37
55
|
coverImage?: string;
|
|
38
56
|
coverColor?: string;
|
|
57
|
+
tagConfig?: TagConfig;
|
|
39
58
|
avatarPosition?: "content" | "cover";
|
|
40
59
|
}
|
|
41
60
|
/**
|
|
@@ -102,6 +121,7 @@ export declare class EoCardItem extends ReactNextElement implements EoCardItemPr
|
|
|
102
121
|
* 图标是否放置在卡片封面
|
|
103
122
|
*/
|
|
104
123
|
accessor avatarPosition: "content" | "cover";
|
|
124
|
+
accessor tagConfig: TagConfig | undefined;
|
|
105
125
|
/**
|
|
106
126
|
* 是否有扩展区域 1
|
|
107
127
|
* @internal
|
|
@@ -116,7 +136,8 @@ export declare class EoCardItem extends ReactNextElement implements EoCardItemPr
|
|
|
116
136
|
}
|
|
117
137
|
interface EoCardItemComponentProps extends EoCardItemProps {
|
|
118
138
|
callback?: Ref<HTMLDivElement>;
|
|
119
|
-
onActionClick?: (action:
|
|
139
|
+
onActionClick?: (action: SimpleActionType) => void;
|
|
140
|
+
onTagClick?: () => void;
|
|
120
141
|
}
|
|
121
142
|
export declare function EoCardItemComponent(props: EoCardItemComponentProps): React.JSX.Element;
|
|
122
143
|
export {};
|
package/docs/eo-card-item.md
CHANGED
|
@@ -251,3 +251,167 @@ properties:
|
|
|
251
251
|
icon: monitor
|
|
252
252
|
size: 20
|
|
253
253
|
```
|
|
254
|
+
|
|
255
|
+
### Tag
|
|
256
|
+
|
|
257
|
+
```yaml preview
|
|
258
|
+
- brick: div
|
|
259
|
+
properties:
|
|
260
|
+
textContent: Text Tag
|
|
261
|
+
style:
|
|
262
|
+
marginBottom: 10px
|
|
263
|
+
- brick: eo-grid-layout
|
|
264
|
+
properties:
|
|
265
|
+
gap: 16px
|
|
266
|
+
columns: 4
|
|
267
|
+
children:
|
|
268
|
+
- brick: eo-card-item
|
|
269
|
+
properties:
|
|
270
|
+
tagConfig:
|
|
271
|
+
text: 禁用
|
|
272
|
+
bgColor: gray
|
|
273
|
+
cardTitle: 资源监控微应用
|
|
274
|
+
description: 资源监控微应用相关前后台
|
|
275
|
+
- brick: eo-card-item
|
|
276
|
+
properties:
|
|
277
|
+
tagConfig:
|
|
278
|
+
text: 蓝色
|
|
279
|
+
bgColor: blue
|
|
280
|
+
cardTitle: 资源监控微应用
|
|
281
|
+
description: 资源监控微应用相关前后台
|
|
282
|
+
- brick: eo-card-item
|
|
283
|
+
properties:
|
|
284
|
+
tagConfig:
|
|
285
|
+
text: 绿色
|
|
286
|
+
bgColor: green
|
|
287
|
+
cardTitle: 资源监控微应用
|
|
288
|
+
description: 资源监控微应用相关前后台
|
|
289
|
+
- brick: eo-card-item
|
|
290
|
+
properties:
|
|
291
|
+
tagConfig:
|
|
292
|
+
text: 黄色
|
|
293
|
+
bgColor: yellow
|
|
294
|
+
cardTitle: 资源监控微应用
|
|
295
|
+
description: 资源监控微应用相关前后台
|
|
296
|
+
- brick: eo-card-item
|
|
297
|
+
properties:
|
|
298
|
+
tagConfig:
|
|
299
|
+
text: 红色
|
|
300
|
+
bgColor: red
|
|
301
|
+
cardTitle: 资源监控微应用
|
|
302
|
+
description: 资源监控微应用相关前后台
|
|
303
|
+
- brick: eo-card-item
|
|
304
|
+
properties:
|
|
305
|
+
tagConfig:
|
|
306
|
+
text: 青色
|
|
307
|
+
bgColor: cyan
|
|
308
|
+
cardTitle: 资源监控微应用
|
|
309
|
+
description: 资源监控微应用相关前后台
|
|
310
|
+
- brick: eo-card-item
|
|
311
|
+
properties:
|
|
312
|
+
tagConfig:
|
|
313
|
+
text: 灰蓝色
|
|
314
|
+
bgColor: grayblue
|
|
315
|
+
cardTitle: 资源监控微应用
|
|
316
|
+
description: 资源监控微应用相关前后台
|
|
317
|
+
- brick: eo-card-item
|
|
318
|
+
properties:
|
|
319
|
+
tagConfig:
|
|
320
|
+
text: 紫色
|
|
321
|
+
bgColor: purple
|
|
322
|
+
cardTitle: 资源监控微应用
|
|
323
|
+
description: 资源监控微应用相关前后台
|
|
324
|
+
- brick: eo-card-item
|
|
325
|
+
properties:
|
|
326
|
+
tagConfig:
|
|
327
|
+
text: 自定义
|
|
328
|
+
bgColor: "rgb(228 236 183)"
|
|
329
|
+
color: "#000"
|
|
330
|
+
cardTitle: 资源监控微应用
|
|
331
|
+
description: 资源监控微应用相关前后台
|
|
332
|
+
- brick: div
|
|
333
|
+
properties:
|
|
334
|
+
textContent: Icon Tag
|
|
335
|
+
style:
|
|
336
|
+
margin: 10px
|
|
337
|
+
- brick: eo-grid-layout
|
|
338
|
+
properties:
|
|
339
|
+
gap: 16px
|
|
340
|
+
columns: 4
|
|
341
|
+
children:
|
|
342
|
+
- brick: eo-card-item
|
|
343
|
+
properties:
|
|
344
|
+
tagConfig:
|
|
345
|
+
icon:
|
|
346
|
+
lib: antd
|
|
347
|
+
icon: info-circle
|
|
348
|
+
theme: outlined
|
|
349
|
+
bgColor: blue
|
|
350
|
+
cardTitle: 资源监控微应用
|
|
351
|
+
description: 资源监控微应用相关前后台
|
|
352
|
+
url: /test
|
|
353
|
+
target: _blank
|
|
354
|
+
- brick: eo-card-item
|
|
355
|
+
properties:
|
|
356
|
+
tagConfig:
|
|
357
|
+
icon:
|
|
358
|
+
lib: antd
|
|
359
|
+
icon: check-circle
|
|
360
|
+
theme: outlined
|
|
361
|
+
bgColor: green
|
|
362
|
+
cardTitle: 资源监控微应用
|
|
363
|
+
description: 资源监控微应用相关前后台
|
|
364
|
+
url: /test
|
|
365
|
+
target: _blank
|
|
366
|
+
- brick: eo-card-item
|
|
367
|
+
properties:
|
|
368
|
+
tagConfig:
|
|
369
|
+
icon:
|
|
370
|
+
lib: antd
|
|
371
|
+
icon: info-circle
|
|
372
|
+
theme: outlined
|
|
373
|
+
bgColor: yellow
|
|
374
|
+
cardTitle: 资源监控微应用
|
|
375
|
+
description: 资源监控微应用相关前后台
|
|
376
|
+
url: /test
|
|
377
|
+
target: _blank
|
|
378
|
+
- brick: eo-card-item
|
|
379
|
+
properties:
|
|
380
|
+
tagConfig:
|
|
381
|
+
icon:
|
|
382
|
+
lib: antd
|
|
383
|
+
icon: close-circle
|
|
384
|
+
theme: outlined
|
|
385
|
+
bgColor: red
|
|
386
|
+
cardTitle: 资源监控微应用
|
|
387
|
+
description: 资源监控微应用相关前后台
|
|
388
|
+
url: /test
|
|
389
|
+
target: _blank
|
|
390
|
+
- brick: eo-card-item
|
|
391
|
+
events:
|
|
392
|
+
tag.click:
|
|
393
|
+
- action: message.success
|
|
394
|
+
args:
|
|
395
|
+
- 收藏成功
|
|
396
|
+
- target: _self
|
|
397
|
+
properties:
|
|
398
|
+
tagConfig:
|
|
399
|
+
icon:
|
|
400
|
+
lib: antd
|
|
401
|
+
icon: star
|
|
402
|
+
theme: filled
|
|
403
|
+
startColor: yellow
|
|
404
|
+
endColor: yellow
|
|
405
|
+
bgColor: blue
|
|
406
|
+
properties:
|
|
407
|
+
tagConfig:
|
|
408
|
+
icon:
|
|
409
|
+
lib: antd
|
|
410
|
+
icon: star
|
|
411
|
+
theme: filled
|
|
412
|
+
bgColor: blue
|
|
413
|
+
cardTitle: 资源监控微应用
|
|
414
|
+
description: 资源监控微应用相关前后台
|
|
415
|
+
url: /test
|
|
416
|
+
target: _blank
|
|
417
|
+
```
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@next-bricks/presentational",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.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": "a46e15a0df53a6b416fabe7e5477eec1ecdb3289"
|
|
47
47
|
}
|