@next-bricks/presentational 1.17.2 → 1.18.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.
@@ -32,6 +32,11 @@
32
32
  "attribute": true,
33
33
  "type": "number"
34
34
  },
35
+ {
36
+ "name": "templateColumns",
37
+ "description": "CSS [grid-template-columns](https://developer.mozilla.org/en-US/docs/Web/CSS/grid-template-columns)",
38
+ "type": "string"
39
+ },
35
40
  {
36
41
  "name": "layout",
37
42
  "description": "布局模式",
@@ -128,6 +133,63 @@
128
133
  "description": "告警提示",
129
134
  "category": "display-component"
130
135
  },
136
+ {
137
+ "name": "eo-code-display",
138
+ "alias": [
139
+ "presentational.code-display"
140
+ ],
141
+ "properties": [
142
+ {
143
+ "name": "value",
144
+ "description": "代码内容",
145
+ "default": "\"\"",
146
+ "type": "string"
147
+ },
148
+ {
149
+ "name": "language",
150
+ "description": "语言,具体查阅 [Supported languages](https://prismjs.com/#supported-languages)",
151
+ "type": "string"
152
+ },
153
+ {
154
+ "name": "hideLineNumber",
155
+ "description": "是否隐藏行号",
156
+ "type": "boolean"
157
+ },
158
+ {
159
+ "name": "maxLines",
160
+ "description": "最大行数",
161
+ "type": "number"
162
+ },
163
+ {
164
+ "name": "minLines",
165
+ "description": "最小行数",
166
+ "type": "number"
167
+ },
168
+ {
169
+ "name": "showCopyButton",
170
+ "description": "是否显示复制按钮",
171
+ "default": "true",
172
+ "type": "boolean"
173
+ },
174
+ {
175
+ "name": "showExportButton",
176
+ "description": "是否显示导出按钮",
177
+ "type": "boolean"
178
+ },
179
+ {
180
+ "name": "exportFileName",
181
+ "description": "导出的文件名",
182
+ "default": "download.txt",
183
+ "type": "string"
184
+ }
185
+ ],
186
+ "events": [],
187
+ "slots": [],
188
+ "methods": [],
189
+ "parts": [],
190
+ "description": "代码展示",
191
+ "category": "display-component"
192
+ },
131
193
  {
132
194
  "name": "eo-pagination",
133
195
  "properties": [
@@ -398,63 +460,6 @@
398
460
  "description": "分割线",
399
461
  "category": "container-display"
400
462
  },
401
- {
402
- "name": "eo-code-display",
403
- "alias": [
404
- "presentational.code-display"
405
- ],
406
- "properties": [
407
- {
408
- "name": "value",
409
- "description": "代码内容",
410
- "default": "\"\"",
411
- "type": "string"
412
- },
413
- {
414
- "name": "language",
415
- "description": "语言,具体查阅 [Supported languages](https://prismjs.com/#supported-languages)",
416
- "type": "string"
417
- },
418
- {
419
- "name": "hideLineNumber",
420
- "description": "是否隐藏行号",
421
- "type": "boolean"
422
- },
423
- {
424
- "name": "maxLines",
425
- "description": "最大行数",
426
- "type": "number"
427
- },
428
- {
429
- "name": "minLines",
430
- "description": "最小行数",
431
- "type": "number"
432
- },
433
- {
434
- "name": "showCopyButton",
435
- "description": "是否显示复制按钮",
436
- "default": "true",
437
- "type": "boolean"
438
- },
439
- {
440
- "name": "showExportButton",
441
- "description": "是否显示导出按钮",
442
- "type": "boolean"
443
- },
444
- {
445
- "name": "exportFileName",
446
- "description": "导出的文件名",
447
- "default": "download.txt",
448
- "type": "string"
449
- }
450
- ],
451
- "events": [],
452
- "slots": [],
453
- "methods": [],
454
- "parts": [],
455
- "description": "代码展示",
456
- "category": "display-component"
457
- },
458
463
  {
459
464
  "name": "eo-info-card-item",
460
465
  "properties": [
@@ -675,6 +680,46 @@
675
680
  "parts": [],
676
681
  "description": "构件 `eo-current-time`"
677
682
  },
683
+ {
684
+ "name": "eo-carousel-text",
685
+ "properties": [
686
+ {
687
+ "name": "text",
688
+ "description": "展示内容",
689
+ "default": "\"\"",
690
+ "type": "string"
691
+ },
692
+ {
693
+ "name": "containerWidth",
694
+ "description": "容器宽度",
695
+ "default": "\"100%\"",
696
+ "type": "CSSProperties[\"width\"]"
697
+ },
698
+ {
699
+ "name": "fontSize",
700
+ "description": "字体大小",
701
+ "default": "\"var(--normal-font-size)\"",
702
+ "type": "CSSProperties[\"fontSize\"]"
703
+ },
704
+ {
705
+ "name": "fontColor",
706
+ "description": "字体颜色",
707
+ "default": "\"var(--text-color-default)\"",
708
+ "type": "CSSProperties[\"color\"]"
709
+ },
710
+ {
711
+ "name": "speed",
712
+ "description": "移动速度,单位 px/s",
713
+ "default": "100",
714
+ "type": "number"
715
+ }
716
+ ],
717
+ "events": [],
718
+ "slots": [],
719
+ "methods": [],
720
+ "parts": [],
721
+ "description": "构件 `eo-carousel-text`"
722
+ },
678
723
  {
679
724
  "name": "eo-loading-step",
680
725
  "properties": [
@@ -738,46 +783,6 @@
738
783
  ],
739
784
  "parts": [],
740
785
  "description": "加载步骤框"
741
- },
742
- {
743
- "name": "eo-carousel-text",
744
- "properties": [
745
- {
746
- "name": "text",
747
- "description": "展示内容",
748
- "default": "\"\"",
749
- "type": "string"
750
- },
751
- {
752
- "name": "containerWidth",
753
- "description": "容器宽度",
754
- "default": "\"100%\"",
755
- "type": "CSSProperties[\"width\"]"
756
- },
757
- {
758
- "name": "fontSize",
759
- "description": "字体大小",
760
- "default": "\"var(--normal-font-size)\"",
761
- "type": "CSSProperties[\"fontSize\"]"
762
- },
763
- {
764
- "name": "fontColor",
765
- "description": "字体颜色",
766
- "default": "\"var(--text-color-default)\"",
767
- "type": "CSSProperties[\"color\"]"
768
- },
769
- {
770
- "name": "speed",
771
- "description": "移动速度,单位 px/s",
772
- "default": "100",
773
- "type": "number"
774
- }
775
- ],
776
- "events": [],
777
- "slots": [],
778
- "methods": [],
779
- "parts": [],
780
- "description": "构件 `eo-carousel-text`"
781
786
  }
782
787
  ],
783
788
  "providers": []
package/dist/types.json CHANGED
@@ -35,6 +35,13 @@
35
35
  "value": "number"
36
36
  }
37
37
  },
38
+ {
39
+ "name": "templateColumns",
40
+ "annotation": {
41
+ "type": "keyword",
42
+ "value": "string"
43
+ }
44
+ },
38
45
  {
39
46
  "name": "layout",
40
47
  "annotation": {
@@ -1466,6 +1473,77 @@
1466
1473
  "events": [],
1467
1474
  "methods": []
1468
1475
  },
1476
+ "eo-carousel-text": {
1477
+ "properties": [
1478
+ {
1479
+ "name": "text",
1480
+ "annotation": {
1481
+ "type": "keyword",
1482
+ "value": "string"
1483
+ }
1484
+ },
1485
+ {
1486
+ "name": "containerWidth",
1487
+ "annotation": {
1488
+ "type": "indexedAccess",
1489
+ "objectType": {
1490
+ "type": "reference",
1491
+ "typeName": {
1492
+ "type": "identifier",
1493
+ "name": "CSSProperties"
1494
+ }
1495
+ },
1496
+ "indexType": {
1497
+ "type": "jsLiteral",
1498
+ "value": "width"
1499
+ }
1500
+ }
1501
+ },
1502
+ {
1503
+ "name": "fontSize",
1504
+ "annotation": {
1505
+ "type": "indexedAccess",
1506
+ "objectType": {
1507
+ "type": "reference",
1508
+ "typeName": {
1509
+ "type": "identifier",
1510
+ "name": "CSSProperties"
1511
+ }
1512
+ },
1513
+ "indexType": {
1514
+ "type": "jsLiteral",
1515
+ "value": "fontSize"
1516
+ }
1517
+ }
1518
+ },
1519
+ {
1520
+ "name": "fontColor",
1521
+ "annotation": {
1522
+ "type": "indexedAccess",
1523
+ "objectType": {
1524
+ "type": "reference",
1525
+ "typeName": {
1526
+ "type": "identifier",
1527
+ "name": "CSSProperties"
1528
+ }
1529
+ },
1530
+ "indexType": {
1531
+ "type": "jsLiteral",
1532
+ "value": "color"
1533
+ }
1534
+ }
1535
+ },
1536
+ {
1537
+ "name": "speed",
1538
+ "annotation": {
1539
+ "type": "keyword",
1540
+ "value": "number"
1541
+ }
1542
+ }
1543
+ ],
1544
+ "events": [],
1545
+ "methods": []
1546
+ },
1469
1547
  "eo-loading-step": {
1470
1548
  "properties": [
1471
1549
  {
@@ -1575,77 +1653,6 @@
1575
1653
  }
1576
1654
  ]
1577
1655
  },
1578
- "eo-carousel-text": {
1579
- "properties": [
1580
- {
1581
- "name": "text",
1582
- "annotation": {
1583
- "type": "keyword",
1584
- "value": "string"
1585
- }
1586
- },
1587
- {
1588
- "name": "containerWidth",
1589
- "annotation": {
1590
- "type": "indexedAccess",
1591
- "objectType": {
1592
- "type": "reference",
1593
- "typeName": {
1594
- "type": "identifier",
1595
- "name": "CSSProperties"
1596
- }
1597
- },
1598
- "indexType": {
1599
- "type": "jsLiteral",
1600
- "value": "width"
1601
- }
1602
- }
1603
- },
1604
- {
1605
- "name": "fontSize",
1606
- "annotation": {
1607
- "type": "indexedAccess",
1608
- "objectType": {
1609
- "type": "reference",
1610
- "typeName": {
1611
- "type": "identifier",
1612
- "name": "CSSProperties"
1613
- }
1614
- },
1615
- "indexType": {
1616
- "type": "jsLiteral",
1617
- "value": "fontSize"
1618
- }
1619
- }
1620
- },
1621
- {
1622
- "name": "fontColor",
1623
- "annotation": {
1624
- "type": "indexedAccess",
1625
- "objectType": {
1626
- "type": "reference",
1627
- "typeName": {
1628
- "type": "identifier",
1629
- "name": "CSSProperties"
1630
- }
1631
- },
1632
- "indexType": {
1633
- "type": "jsLiteral",
1634
- "value": "color"
1635
- }
1636
- }
1637
- },
1638
- {
1639
- "name": "speed",
1640
- "annotation": {
1641
- "type": "keyword",
1642
- "value": "number"
1643
- }
1644
- }
1645
- ],
1646
- "events": [],
1647
- "methods": []
1648
- },
1649
1656
  "eo-alert": {
1650
1657
  "properties": [
1651
1658
  {
@@ -1756,6 +1763,68 @@
1756
1763
  }
1757
1764
  ]
1758
1765
  },
1766
+ "eo-code-display": {
1767
+ "properties": [
1768
+ {
1769
+ "name": "value",
1770
+ "annotation": {
1771
+ "type": "keyword",
1772
+ "value": "string"
1773
+ }
1774
+ },
1775
+ {
1776
+ "name": "language",
1777
+ "annotation": {
1778
+ "type": "keyword",
1779
+ "value": "string"
1780
+ }
1781
+ },
1782
+ {
1783
+ "name": "hideLineNumber",
1784
+ "annotation": {
1785
+ "type": "keyword",
1786
+ "value": "boolean"
1787
+ }
1788
+ },
1789
+ {
1790
+ "name": "maxLines",
1791
+ "annotation": {
1792
+ "type": "keyword",
1793
+ "value": "number"
1794
+ }
1795
+ },
1796
+ {
1797
+ "name": "minLines",
1798
+ "annotation": {
1799
+ "type": "keyword",
1800
+ "value": "number"
1801
+ }
1802
+ },
1803
+ {
1804
+ "name": "showCopyButton",
1805
+ "annotation": {
1806
+ "type": "keyword",
1807
+ "value": "boolean"
1808
+ }
1809
+ },
1810
+ {
1811
+ "name": "showExportButton",
1812
+ "annotation": {
1813
+ "type": "keyword",
1814
+ "value": "boolean"
1815
+ }
1816
+ },
1817
+ {
1818
+ "name": "exportFileName",
1819
+ "annotation": {
1820
+ "type": "keyword",
1821
+ "value": "string"
1822
+ }
1823
+ }
1824
+ ],
1825
+ "events": [],
1826
+ "methods": []
1827
+ },
1759
1828
  "eo-pagination": {
1760
1829
  "properties": [
1761
1830
  {
@@ -1949,68 +2018,6 @@
1949
2018
  }
1950
2019
  ]
1951
2020
  },
1952
- "eo-code-display": {
1953
- "properties": [
1954
- {
1955
- "name": "value",
1956
- "annotation": {
1957
- "type": "keyword",
1958
- "value": "string"
1959
- }
1960
- },
1961
- {
1962
- "name": "language",
1963
- "annotation": {
1964
- "type": "keyword",
1965
- "value": "string"
1966
- }
1967
- },
1968
- {
1969
- "name": "hideLineNumber",
1970
- "annotation": {
1971
- "type": "keyword",
1972
- "value": "boolean"
1973
- }
1974
- },
1975
- {
1976
- "name": "maxLines",
1977
- "annotation": {
1978
- "type": "keyword",
1979
- "value": "number"
1980
- }
1981
- },
1982
- {
1983
- "name": "minLines",
1984
- "annotation": {
1985
- "type": "keyword",
1986
- "value": "number"
1987
- }
1988
- },
1989
- {
1990
- "name": "showCopyButton",
1991
- "annotation": {
1992
- "type": "keyword",
1993
- "value": "boolean"
1994
- }
1995
- },
1996
- {
1997
- "name": "showExportButton",
1998
- "annotation": {
1999
- "type": "keyword",
2000
- "value": "boolean"
2001
- }
2002
- },
2003
- {
2004
- "name": "exportFileName",
2005
- "annotation": {
2006
- "type": "keyword",
2007
- "value": "string"
2008
- }
2009
- }
2010
- ],
2011
- "events": [],
2012
- "methods": []
2013
- },
2014
2021
  "eo-humanize-time": {
2015
2022
  "properties": [
2016
2023
  {
@@ -17,6 +17,7 @@ export interface DescriptionsProps {
17
17
  list?: DescriptionItem[];
18
18
  showCard?: boolean;
19
19
  column?: number;
20
+ templateColumns?: string;
20
21
  layout?: Layout;
21
22
  bordered?: boolean;
22
23
  hideGroups?: string[] | string;
@@ -46,6 +47,10 @@ declare class Descriptions extends ReactNextElement {
46
47
  * 列数
47
48
  */
48
49
  accessor column: number | undefined;
50
+ /**
51
+ * CSS [grid-template-columns](https://developer.mozilla.org/en-US/docs/Web/CSS/grid-template-columns)
52
+ */
53
+ accessor templateColumns: string | undefined;
49
54
  /**
50
55
  * 布局模式
51
56
  * @default "horizontal"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@next-bricks/presentational",
3
- "version": "1.17.2",
3
+ "version": "1.18.0",
4
4
  "homepage": "https://github.com/easyops-cn/next-advanced-bricks/tree/master/bricks/presentational",
5
5
  "repository": {
6
6
  "type": "git",
@@ -44,5 +44,5 @@
44
44
  "@next-bricks/containers": "*",
45
45
  "@next-bricks/icons": "*"
46
46
  },
47
- "gitHead": "14362c5c68c0474db5ba0d39835702b173acf013"
47
+ "gitHead": "4164cd26b58b926f078b39259bf72861ad7e341d"
48
48
  }