@next-bricks/presentational 1.6.9 → 1.7.1

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.
@@ -64,60 +64,6 @@
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
- },
121
67
  {
122
68
  "name": "eo-pagination",
123
69
  "properties": [
@@ -168,63 +114,6 @@
168
114
  "description": "分页",
169
115
  "category": "navigation"
170
116
  },
171
- {
172
- "name": "eo-code-display",
173
- "alias": [
174
- "presentational.code-display"
175
- ],
176
- "properties": [
177
- {
178
- "name": "value",
179
- "description": "代码内容",
180
- "default": "\"\"",
181
- "type": "string"
182
- },
183
- {
184
- "name": "language",
185
- "description": "语言,具体查阅 [Supported languages](https://prismjs.com/#supported-languages)",
186
- "type": "string"
187
- },
188
- {
189
- "name": "hideLineNumber",
190
- "description": "是否隐藏行号",
191
- "type": "boolean"
192
- },
193
- {
194
- "name": "maxLines",
195
- "description": "最大行数",
196
- "type": "number"
197
- },
198
- {
199
- "name": "minLines",
200
- "description": "最小行数",
201
- "type": "number"
202
- },
203
- {
204
- "name": "showCopyButton",
205
- "description": "是否显示复制按钮",
206
- "default": "true",
207
- "type": "boolean"
208
- },
209
- {
210
- "name": "showExportButton",
211
- "description": "是否显示导出按钮",
212
- "type": "boolean"
213
- },
214
- {
215
- "name": "exportFileName",
216
- "description": "导出的文件名",
217
- "default": "download.txt",
218
- "type": "string"
219
- }
220
- ],
221
- "events": [],
222
- "slots": [],
223
- "methods": [],
224
- "parts": [],
225
- "description": "代码展示",
226
- "category": "display-component"
227
- },
228
117
  {
229
118
  "name": "eo-card-item",
230
119
  "properties": [
@@ -276,6 +165,11 @@
276
165
  "attribute": false,
277
166
  "type": "ActionType[]"
278
167
  },
168
+ {
169
+ "name": "selected",
170
+ "description": "是否选中",
171
+ "type": "boolean"
172
+ },
279
173
  {
280
174
  "name": "styleType",
281
175
  "description": "卡片样式类型",
@@ -424,6 +318,117 @@
424
318
  "description": "信息卡片",
425
319
  "category": "card-info"
426
320
  },
321
+ {
322
+ "name": "eo-code-display",
323
+ "alias": [
324
+ "presentational.code-display"
325
+ ],
326
+ "properties": [
327
+ {
328
+ "name": "value",
329
+ "description": "代码内容",
330
+ "default": "\"\"",
331
+ "type": "string"
332
+ },
333
+ {
334
+ "name": "language",
335
+ "description": "语言,具体查阅 [Supported languages](https://prismjs.com/#supported-languages)",
336
+ "type": "string"
337
+ },
338
+ {
339
+ "name": "hideLineNumber",
340
+ "description": "是否隐藏行号",
341
+ "type": "boolean"
342
+ },
343
+ {
344
+ "name": "maxLines",
345
+ "description": "最大行数",
346
+ "type": "number"
347
+ },
348
+ {
349
+ "name": "minLines",
350
+ "description": "最小行数",
351
+ "type": "number"
352
+ },
353
+ {
354
+ "name": "showCopyButton",
355
+ "description": "是否显示复制按钮",
356
+ "default": "true",
357
+ "type": "boolean"
358
+ },
359
+ {
360
+ "name": "showExportButton",
361
+ "description": "是否显示导出按钮",
362
+ "type": "boolean"
363
+ },
364
+ {
365
+ "name": "exportFileName",
366
+ "description": "导出的文件名",
367
+ "default": "download.txt",
368
+ "type": "string"
369
+ }
370
+ ],
371
+ "events": [],
372
+ "slots": [],
373
+ "methods": [],
374
+ "parts": [],
375
+ "description": "代码展示",
376
+ "category": "display-component"
377
+ },
378
+ {
379
+ "name": "eo-alert",
380
+ "alias": [
381
+ "presentational.general-alert"
382
+ ],
383
+ "properties": [
384
+ {
385
+ "name": "type",
386
+ "description": "警告类型",
387
+ "attribute": false,
388
+ "type": "AlertType"
389
+ },
390
+ {
391
+ "name": "hasTitle",
392
+ "description": "是否显示标题。开启后,可以使用 `title` 插槽",
393
+ "type": "boolean"
394
+ },
395
+ {
396
+ "name": "showIcon",
397
+ "description": "是否显示提示图标",
398
+ "type": "boolean"
399
+ },
400
+ {
401
+ "name": "closable",
402
+ "description": "是否显示关闭按钮",
403
+ "type": "boolean"
404
+ },
405
+ {
406
+ "name": "localStorageKey",
407
+ "description": "以该值和页面 url 作为命名空间,决定是否显示该警告提示",
408
+ "type": "string"
409
+ },
410
+ {
411
+ "name": "disableUrlNamespace",
412
+ "description": "关闭后仅以 `localStorageKey` 作为命名空间",
413
+ "type": "boolean"
414
+ }
415
+ ],
416
+ "events": [],
417
+ "slots": [
418
+ {
419
+ "name": null,
420
+ "description": "内容区"
421
+ },
422
+ {
423
+ "name": "title",
424
+ "description": "标题"
425
+ }
426
+ ],
427
+ "methods": [],
428
+ "parts": [],
429
+ "description": "告警提示",
430
+ "category": "display-component"
431
+ },
427
432
  {
428
433
  "name": "eo-humanize-time",
429
434
  "alias": [
@@ -631,28 +636,6 @@
631
636
  "parts": [],
632
637
  "description": "加载步骤框"
633
638
  },
634
- {
635
- "name": "eo-current-time",
636
- "properties": [
637
- {
638
- "name": "format",
639
- "description": "时间格式",
640
- "default": "\"YYYY-MM-DD HH:mm:ss\"",
641
- "type": "string"
642
- },
643
- {
644
- "name": "icon",
645
- "description": "前置图标",
646
- "attribute": false,
647
- "type": "GeneralIconProps"
648
- }
649
- ],
650
- "events": [],
651
- "slots": [],
652
- "methods": [],
653
- "parts": [],
654
- "description": "构件 `eo-current-time`"
655
- },
656
639
  {
657
640
  "name": "eo-carousel-text",
658
641
  "properties": [
@@ -692,6 +675,28 @@
692
675
  "methods": [],
693
676
  "parts": [],
694
677
  "description": "构件 `eo-carousel-text`"
678
+ },
679
+ {
680
+ "name": "eo-current-time",
681
+ "properties": [
682
+ {
683
+ "name": "format",
684
+ "description": "时间格式",
685
+ "default": "\"YYYY-MM-DD HH:mm:ss\"",
686
+ "type": "string"
687
+ },
688
+ {
689
+ "name": "icon",
690
+ "description": "前置图标",
691
+ "attribute": false,
692
+ "type": "GeneralIconProps"
693
+ }
694
+ ],
695
+ "events": [],
696
+ "slots": [],
697
+ "methods": [],
698
+ "parts": [],
699
+ "description": "构件 `eo-current-time`"
695
700
  }
696
701
  ],
697
702
  "providers": []
package/dist/types.json CHANGED
@@ -315,6 +315,13 @@
315
315
  }
316
316
  }
317
317
  },
318
+ {
319
+ "name": "selected",
320
+ "annotation": {
321
+ "type": "keyword",
322
+ "value": "boolean"
323
+ }
324
+ },
318
325
  {
319
326
  "name": "styleType",
320
327
  "annotation": {
@@ -1423,29 +1430,6 @@
1423
1430
  }
1424
1431
  ]
1425
1432
  },
1426
- "eo-current-time": {
1427
- "properties": [
1428
- {
1429
- "name": "format",
1430
- "annotation": {
1431
- "type": "keyword",
1432
- "value": "string"
1433
- }
1434
- },
1435
- {
1436
- "name": "icon",
1437
- "annotation": {
1438
- "type": "reference",
1439
- "typeName": {
1440
- "type": "identifier",
1441
- "name": "GeneralIconProps"
1442
- }
1443
- }
1444
- }
1445
- ],
1446
- "events": [],
1447
- "methods": []
1448
- },
1449
1433
  "eo-carousel-text": {
1450
1434
  "properties": [
1451
1435
  {
@@ -1517,108 +1501,28 @@
1517
1501
  "events": [],
1518
1502
  "methods": []
1519
1503
  },
1520
- "eo-alert": {
1504
+ "eo-current-time": {
1521
1505
  "properties": [
1522
1506
  {
1523
- "name": "type",
1524
- "annotation": {
1525
- "type": "reference",
1526
- "typeName": {
1527
- "type": "identifier",
1528
- "name": "AlertType"
1529
- }
1530
- }
1531
- },
1532
- {
1533
- "name": "hasTitle",
1534
- "annotation": {
1535
- "type": "keyword",
1536
- "value": "boolean"
1537
- }
1538
- },
1539
- {
1540
- "name": "showIcon",
1541
- "annotation": {
1542
- "type": "keyword",
1543
- "value": "boolean"
1544
- }
1545
- },
1546
- {
1547
- "name": "closable",
1548
- "annotation": {
1549
- "type": "keyword",
1550
- "value": "boolean"
1551
- }
1552
- },
1553
- {
1554
- "name": "localStorageKey",
1507
+ "name": "format",
1555
1508
  "annotation": {
1556
1509
  "type": "keyword",
1557
1510
  "value": "string"
1558
1511
  }
1559
1512
  },
1560
1513
  {
1561
- "name": "disableUrlNamespace",
1514
+ "name": "icon",
1562
1515
  "annotation": {
1563
- "type": "keyword",
1564
- "value": "boolean"
1516
+ "type": "reference",
1517
+ "typeName": {
1518
+ "type": "identifier",
1519
+ "name": "GeneralIconProps"
1520
+ }
1565
1521
  }
1566
1522
  }
1567
1523
  ],
1568
1524
  "events": [],
1569
- "methods": [],
1570
- "types": [
1571
- {
1572
- "type": "enum",
1573
- "name": "AlertType",
1574
- "members": [
1575
- {
1576
- "type": "enumMember",
1577
- "id": {
1578
- "type": "jsLiteral",
1579
- "value": "SUCCESS"
1580
- },
1581
- "initializer": {
1582
- "type": "jsLiteral",
1583
- "value": "success"
1584
- }
1585
- },
1586
- {
1587
- "type": "enumMember",
1588
- "id": {
1589
- "type": "jsLiteral",
1590
- "value": "INFO"
1591
- },
1592
- "initializer": {
1593
- "type": "jsLiteral",
1594
- "value": "info"
1595
- }
1596
- },
1597
- {
1598
- "type": "enumMember",
1599
- "id": {
1600
- "type": "jsLiteral",
1601
- "value": "WARNING"
1602
- },
1603
- "initializer": {
1604
- "type": "jsLiteral",
1605
- "value": "warning"
1606
- }
1607
- },
1608
- {
1609
- "type": "enumMember",
1610
- "id": {
1611
- "type": "jsLiteral",
1612
- "value": "ERROR"
1613
- },
1614
- "initializer": {
1615
- "type": "jsLiteral",
1616
- "value": "error"
1617
- }
1618
- }
1619
- ]
1620
- }
1621
- ]
1525
+ "methods": []
1622
1526
  },
1623
1527
  "eo-pagination": {
1624
1528
  "properties": [
@@ -1761,6 +1665,109 @@
1761
1665
  "events": [],
1762
1666
  "methods": []
1763
1667
  },
1668
+ "eo-alert": {
1669
+ "properties": [
1670
+ {
1671
+ "name": "type",
1672
+ "annotation": {
1673
+ "type": "reference",
1674
+ "typeName": {
1675
+ "type": "identifier",
1676
+ "name": "AlertType"
1677
+ }
1678
+ }
1679
+ },
1680
+ {
1681
+ "name": "hasTitle",
1682
+ "annotation": {
1683
+ "type": "keyword",
1684
+ "value": "boolean"
1685
+ }
1686
+ },
1687
+ {
1688
+ "name": "showIcon",
1689
+ "annotation": {
1690
+ "type": "keyword",
1691
+ "value": "boolean"
1692
+ }
1693
+ },
1694
+ {
1695
+ "name": "closable",
1696
+ "annotation": {
1697
+ "type": "keyword",
1698
+ "value": "boolean"
1699
+ }
1700
+ },
1701
+ {
1702
+ "name": "localStorageKey",
1703
+ "annotation": {
1704
+ "type": "keyword",
1705
+ "value": "string"
1706
+ }
1707
+ },
1708
+ {
1709
+ "name": "disableUrlNamespace",
1710
+ "annotation": {
1711
+ "type": "keyword",
1712
+ "value": "boolean"
1713
+ }
1714
+ }
1715
+ ],
1716
+ "events": [],
1717
+ "methods": [],
1718
+ "types": [
1719
+ {
1720
+ "type": "enum",
1721
+ "name": "AlertType",
1722
+ "members": [
1723
+ {
1724
+ "type": "enumMember",
1725
+ "id": {
1726
+ "type": "jsLiteral",
1727
+ "value": "SUCCESS"
1728
+ },
1729
+ "initializer": {
1730
+ "type": "jsLiteral",
1731
+ "value": "success"
1732
+ }
1733
+ },
1734
+ {
1735
+ "type": "enumMember",
1736
+ "id": {
1737
+ "type": "jsLiteral",
1738
+ "value": "INFO"
1739
+ },
1740
+ "initializer": {
1741
+ "type": "jsLiteral",
1742
+ "value": "info"
1743
+ }
1744
+ },
1745
+ {
1746
+ "type": "enumMember",
1747
+ "id": {
1748
+ "type": "jsLiteral",
1749
+ "value": "WARNING"
1750
+ },
1751
+ "initializer": {
1752
+ "type": "jsLiteral",
1753
+ "value": "warning"
1754
+ }
1755
+ },
1756
+ {
1757
+ "type": "enumMember",
1758
+ "id": {
1759
+ "type": "jsLiteral",
1760
+ "value": "ERROR"
1761
+ },
1762
+ "initializer": {
1763
+ "type": "jsLiteral",
1764
+ "value": "error"
1765
+ }
1766
+ }
1767
+ ]
1768
+ }
1769
+ ]
1770
+ },
1764
1771
  "eo-humanize-time": {
1765
1772
  "properties": [
1766
1773
  {
@@ -50,6 +50,7 @@ export interface EoCardItemProps {
50
50
  actions?: ActionType[];
51
51
  hasExpandedArea1?: boolean;
52
52
  hasExpandedArea2?: boolean;
53
+ selected?: boolean;
53
54
  styleType?: "grayish";
54
55
  hasCover?: boolean;
55
56
  coverImage?: string;
@@ -102,6 +103,10 @@ export declare class EoCardItem extends ReactNextElement implements EoCardItemPr
102
103
  * 操作按钮组
103
104
  */
104
105
  accessor actions: ActionType[] | undefined;
106
+ /**
107
+ * 是否选中
108
+ */
109
+ accessor selected: boolean;
105
110
  /**
106
111
  * 卡片样式类型
107
112
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@next-bricks/presentational",
3
- "version": "1.6.9",
3
+ "version": "1.7.1",
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": "adfe580e70057118d49130e5142c6d26978da17c"
46
+ "gitHead": "2858863672997f65acda9d92e27ae1f0d11f3a47"
47
47
  }