@next-bricks/presentational 1.14.4 → 1.15.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.
@@ -69,63 +69,6 @@
69
69
  "description": "通用描述列表构件",
70
70
  "category": "text"
71
71
  },
72
- {
73
- "name": "eo-code-display",
74
- "alias": [
75
- "presentational.code-display"
76
- ],
77
- "properties": [
78
- {
79
- "name": "value",
80
- "description": "代码内容",
81
- "default": "\"\"",
82
- "type": "string"
83
- },
84
- {
85
- "name": "language",
86
- "description": "语言,具体查阅 [Supported languages](https://prismjs.com/#supported-languages)",
87
- "type": "string"
88
- },
89
- {
90
- "name": "hideLineNumber",
91
- "description": "是否隐藏行号",
92
- "type": "boolean"
93
- },
94
- {
95
- "name": "maxLines",
96
- "description": "最大行数",
97
- "type": "number"
98
- },
99
- {
100
- "name": "minLines",
101
- "description": "最小行数",
102
- "type": "number"
103
- },
104
- {
105
- "name": "showCopyButton",
106
- "description": "是否显示复制按钮",
107
- "default": "true",
108
- "type": "boolean"
109
- },
110
- {
111
- "name": "showExportButton",
112
- "description": "是否显示导出按钮",
113
- "type": "boolean"
114
- },
115
- {
116
- "name": "exportFileName",
117
- "description": "导出的文件名",
118
- "default": "download.txt",
119
- "type": "string"
120
- }
121
- ],
122
- "events": [],
123
- "slots": [],
124
- "methods": [],
125
- "parts": [],
126
- "description": "代码展示",
127
- "category": "display-component"
128
- },
129
72
  {
130
73
  "name": "eo-alert",
131
74
  "alias": [
@@ -185,6 +128,63 @@
185
128
  "description": "告警提示",
186
129
  "category": "display-component"
187
130
  },
131
+ {
132
+ "name": "eo-code-display",
133
+ "alias": [
134
+ "presentational.code-display"
135
+ ],
136
+ "properties": [
137
+ {
138
+ "name": "value",
139
+ "description": "代码内容",
140
+ "default": "\"\"",
141
+ "type": "string"
142
+ },
143
+ {
144
+ "name": "language",
145
+ "description": "语言,具体查阅 [Supported languages](https://prismjs.com/#supported-languages)",
146
+ "type": "string"
147
+ },
148
+ {
149
+ "name": "hideLineNumber",
150
+ "description": "是否隐藏行号",
151
+ "type": "boolean"
152
+ },
153
+ {
154
+ "name": "maxLines",
155
+ "description": "最大行数",
156
+ "type": "number"
157
+ },
158
+ {
159
+ "name": "minLines",
160
+ "description": "最小行数",
161
+ "type": "number"
162
+ },
163
+ {
164
+ "name": "showCopyButton",
165
+ "description": "是否显示复制按钮",
166
+ "default": "true",
167
+ "type": "boolean"
168
+ },
169
+ {
170
+ "name": "showExportButton",
171
+ "description": "是否显示导出按钮",
172
+ "type": "boolean"
173
+ },
174
+ {
175
+ "name": "exportFileName",
176
+ "description": "导出的文件名",
177
+ "default": "download.txt",
178
+ "type": "string"
179
+ }
180
+ ],
181
+ "events": [],
182
+ "slots": [],
183
+ "methods": [],
184
+ "parts": [],
185
+ "description": "代码展示",
186
+ "category": "display-component"
187
+ },
188
188
  {
189
189
  "name": "eo-pagination",
190
190
  "properties": [
@@ -690,6 +690,28 @@
690
690
  "parts": [],
691
691
  "description": "加载步骤框"
692
692
  },
693
+ {
694
+ "name": "eo-current-time",
695
+ "properties": [
696
+ {
697
+ "name": "format",
698
+ "description": "时间格式",
699
+ "default": "\"YYYY-MM-DD HH:mm:ss\"",
700
+ "type": "string"
701
+ },
702
+ {
703
+ "name": "icon",
704
+ "description": "前置图标",
705
+ "attribute": false,
706
+ "type": "GeneralIconProps"
707
+ }
708
+ ],
709
+ "events": [],
710
+ "slots": [],
711
+ "methods": [],
712
+ "parts": [],
713
+ "description": "构件 `eo-current-time`"
714
+ },
693
715
  {
694
716
  "name": "eo-carousel-text",
695
717
  "properties": [
@@ -729,28 +751,6 @@
729
751
  "methods": [],
730
752
  "parts": [],
731
753
  "description": "构件 `eo-carousel-text`"
732
- },
733
- {
734
- "name": "eo-current-time",
735
- "properties": [
736
- {
737
- "name": "format",
738
- "description": "时间格式",
739
- "default": "\"YYYY-MM-DD HH:mm:ss\"",
740
- "type": "string"
741
- },
742
- {
743
- "name": "icon",
744
- "description": "前置图标",
745
- "attribute": false,
746
- "type": "GeneralIconProps"
747
- }
748
- ],
749
- "events": [],
750
- "slots": [],
751
- "methods": [],
752
- "parts": [],
753
- "description": "构件 `eo-current-time`"
754
754
  }
755
755
  ],
756
756
  "providers": []
package/dist/types.json CHANGED
@@ -193,6 +193,19 @@
193
193
  },
194
194
  "optional": true,
195
195
  "computed": false
196
+ },
197
+ {
198
+ "type": "propertySignature",
199
+ "key": {
200
+ "type": "identifier",
201
+ "name": "gridColumn"
202
+ },
203
+ "annotation": {
204
+ "type": "keyword",
205
+ "value": "string"
206
+ },
207
+ "optional": true,
208
+ "computed": false
196
209
  }
197
210
  ]
198
211
  },
@@ -1496,6 +1509,29 @@
1496
1509
  }
1497
1510
  ]
1498
1511
  },
1512
+ "eo-current-time": {
1513
+ "properties": [
1514
+ {
1515
+ "name": "format",
1516
+ "annotation": {
1517
+ "type": "keyword",
1518
+ "value": "string"
1519
+ }
1520
+ },
1521
+ {
1522
+ "name": "icon",
1523
+ "annotation": {
1524
+ "type": "reference",
1525
+ "typeName": {
1526
+ "type": "identifier",
1527
+ "name": "GeneralIconProps"
1528
+ }
1529
+ }
1530
+ }
1531
+ ],
1532
+ "events": [],
1533
+ "methods": []
1534
+ },
1499
1535
  "eo-carousel-text": {
1500
1536
  "properties": [
1501
1537
  {
@@ -1567,28 +1603,115 @@
1567
1603
  "events": [],
1568
1604
  "methods": []
1569
1605
  },
1570
- "eo-current-time": {
1606
+ "eo-alert": {
1571
1607
  "properties": [
1572
1608
  {
1573
- "name": "format",
1609
+ "name": "type",
1610
+ "annotation": {
1611
+ "type": "reference",
1612
+ "typeName": {
1613
+ "type": "identifier",
1614
+ "name": "AlertType"
1615
+ }
1616
+ }
1617
+ },
1618
+ {
1619
+ "name": "hasTitle",
1620
+ "annotation": {
1621
+ "type": "keyword",
1622
+ "value": "boolean"
1623
+ }
1624
+ },
1625
+ {
1626
+ "name": "showIcon",
1627
+ "annotation": {
1628
+ "type": "keyword",
1629
+ "value": "boolean"
1630
+ }
1631
+ },
1632
+ {
1633
+ "name": "closable",
1634
+ "annotation": {
1635
+ "type": "keyword",
1636
+ "value": "boolean"
1637
+ }
1638
+ },
1639
+ {
1640
+ "name": "localStorageKey",
1574
1641
  "annotation": {
1575
1642
  "type": "keyword",
1576
1643
  "value": "string"
1577
1644
  }
1578
1645
  },
1579
1646
  {
1580
- "name": "icon",
1647
+ "name": "disableUrlNamespace",
1581
1648
  "annotation": {
1582
- "type": "reference",
1583
- "typeName": {
1584
- "type": "identifier",
1585
- "name": "GeneralIconProps"
1586
- }
1649
+ "type": "keyword",
1650
+ "value": "boolean"
1651
+ }
1652
+ },
1653
+ {
1654
+ "name": "textContent",
1655
+ "annotation": {
1656
+ "type": "keyword",
1657
+ "value": "string"
1587
1658
  }
1588
1659
  }
1589
1660
  ],
1590
1661
  "events": [],
1591
- "methods": []
1662
+ "methods": [],
1663
+ "types": [
1664
+ {
1665
+ "type": "enum",
1666
+ "name": "AlertType",
1667
+ "members": [
1668
+ {
1669
+ "type": "enumMember",
1670
+ "id": {
1671
+ "type": "jsLiteral",
1672
+ "value": "SUCCESS"
1673
+ },
1674
+ "initializer": {
1675
+ "type": "jsLiteral",
1676
+ "value": "success"
1677
+ }
1678
+ },
1679
+ {
1680
+ "type": "enumMember",
1681
+ "id": {
1682
+ "type": "jsLiteral",
1683
+ "value": "INFO"
1684
+ },
1685
+ "initializer": {
1686
+ "type": "jsLiteral",
1687
+ "value": "info"
1688
+ }
1689
+ },
1690
+ {
1691
+ "type": "enumMember",
1692
+ "id": {
1693
+ "type": "jsLiteral",
1694
+ "value": "WARNING"
1695
+ },
1696
+ "initializer": {
1697
+ "type": "jsLiteral",
1698
+ "value": "warning"
1699
+ }
1700
+ },
1701
+ {
1702
+ "type": "enumMember",
1703
+ "id": {
1704
+ "type": "jsLiteral",
1705
+ "value": "ERROR"
1706
+ },
1707
+ "initializer": {
1708
+ "type": "jsLiteral",
1709
+ "value": "error"
1710
+ }
1711
+ }
1712
+ ]
1713
+ }
1714
+ ]
1592
1715
  },
1593
1716
  "eo-code-display": {
1594
1717
  "properties": [
@@ -1652,58 +1775,93 @@
1652
1775
  "events": [],
1653
1776
  "methods": []
1654
1777
  },
1655
- "eo-alert": {
1778
+ "eo-humanize-time": {
1656
1779
  "properties": [
1657
1780
  {
1658
- "name": "type",
1781
+ "name": "value",
1659
1782
  "annotation": {
1660
- "type": "reference",
1661
- "typeName": {
1662
- "type": "identifier",
1663
- "name": "AlertType"
1664
- }
1783
+ "type": "union",
1784
+ "types": [
1785
+ {
1786
+ "type": "keyword",
1787
+ "value": "number"
1788
+ },
1789
+ {
1790
+ "type": "keyword",
1791
+ "value": "string"
1792
+ }
1793
+ ]
1665
1794
  }
1666
1795
  },
1667
1796
  {
1668
- "name": "hasTitle",
1797
+ "name": "inputFormat",
1669
1798
  "annotation": {
1670
1799
  "type": "keyword",
1671
- "value": "boolean"
1800
+ "value": "string"
1672
1801
  }
1673
1802
  },
1674
1803
  {
1675
- "name": "showIcon",
1804
+ "name": "outputFormat",
1676
1805
  "annotation": {
1677
1806
  "type": "keyword",
1678
- "value": "boolean"
1807
+ "value": "string"
1679
1808
  }
1680
1809
  },
1681
1810
  {
1682
- "name": "closable",
1811
+ "name": "type",
1812
+ "annotation": {
1813
+ "type": "union",
1814
+ "types": [
1815
+ {
1816
+ "type": "jsLiteral",
1817
+ "value": "datetime"
1818
+ },
1819
+ {
1820
+ "type": "jsLiteral",
1821
+ "value": "date"
1822
+ }
1823
+ ]
1824
+ }
1825
+ },
1826
+ {
1827
+ "name": "isCostTime",
1683
1828
  "annotation": {
1684
1829
  "type": "keyword",
1685
1830
  "value": "boolean"
1686
1831
  }
1687
1832
  },
1688
1833
  {
1689
- "name": "localStorageKey",
1834
+ "name": "formatter",
1690
1835
  "annotation": {
1691
- "type": "keyword",
1692
- "value": "string"
1836
+ "type": "reference",
1837
+ "typeName": {
1838
+ "type": "identifier",
1839
+ "name": "HumanizeTimeFormat"
1840
+ }
1693
1841
  }
1694
1842
  },
1695
1843
  {
1696
- "name": "disableUrlNamespace",
1844
+ "name": "isMicrosecond",
1697
1845
  "annotation": {
1698
1846
  "type": "keyword",
1699
1847
  "value": "boolean"
1700
1848
  }
1701
1849
  },
1702
1850
  {
1703
- "name": "textContent",
1851
+ "name": "isMillisecond",
1704
1852
  "annotation": {
1705
1853
  "type": "keyword",
1706
- "value": "string"
1854
+ "value": "boolean"
1855
+ }
1856
+ },
1857
+ {
1858
+ "name": "link",
1859
+ "annotation": {
1860
+ "type": "reference",
1861
+ "typeName": {
1862
+ "type": "identifier",
1863
+ "name": "LinkInfo"
1864
+ }
1707
1865
  }
1708
1866
  }
1709
1867
  ],
@@ -1711,52 +1869,36 @@
1711
1869
  "methods": [],
1712
1870
  "types": [
1713
1871
  {
1714
- "type": "enum",
1715
- "name": "AlertType",
1716
- "members": [
1872
+ "type": "interface",
1873
+ "name": "LinkInfo",
1874
+ "body": [
1717
1875
  {
1718
- "type": "enumMember",
1719
- "id": {
1720
- "type": "jsLiteral",
1721
- "value": "SUCCESS"
1876
+ "type": "propertySignature",
1877
+ "key": {
1878
+ "type": "identifier",
1879
+ "name": "url"
1722
1880
  },
1723
- "initializer": {
1724
- "type": "jsLiteral",
1725
- "value": "success"
1726
- }
1727
- },
1728
- {
1729
- "type": "enumMember",
1730
- "id": {
1731
- "type": "jsLiteral",
1732
- "value": "INFO"
1881
+ "annotation": {
1882
+ "type": "keyword",
1883
+ "value": "string"
1733
1884
  },
1734
- "initializer": {
1735
- "type": "jsLiteral",
1736
- "value": "info"
1737
- }
1885
+ "computed": false
1738
1886
  },
1739
1887
  {
1740
- "type": "enumMember",
1741
- "id": {
1742
- "type": "jsLiteral",
1743
- "value": "WARNING"
1888
+ "type": "propertySignature",
1889
+ "key": {
1890
+ "type": "identifier",
1891
+ "name": "target"
1744
1892
  },
1745
- "initializer": {
1746
- "type": "jsLiteral",
1747
- "value": "warning"
1748
- }
1749
- },
1750
- {
1751
- "type": "enumMember",
1752
- "id": {
1753
- "type": "jsLiteral",
1754
- "value": "ERROR"
1893
+ "annotation": {
1894
+ "type": "reference",
1895
+ "typeName": {
1896
+ "type": "identifier",
1897
+ "name": "Target"
1898
+ }
1755
1899
  },
1756
- "initializer": {
1757
- "type": "jsLiteral",
1758
- "value": "error"
1759
- }
1900
+ "optional": true,
1901
+ "computed": false
1760
1902
  }
1761
1903
  ]
1762
1904
  }
@@ -1954,134 +2096,5 @@
1954
2096
  ]
1955
2097
  }
1956
2098
  ]
1957
- },
1958
- "eo-humanize-time": {
1959
- "properties": [
1960
- {
1961
- "name": "value",
1962
- "annotation": {
1963
- "type": "union",
1964
- "types": [
1965
- {
1966
- "type": "keyword",
1967
- "value": "number"
1968
- },
1969
- {
1970
- "type": "keyword",
1971
- "value": "string"
1972
- }
1973
- ]
1974
- }
1975
- },
1976
- {
1977
- "name": "inputFormat",
1978
- "annotation": {
1979
- "type": "keyword",
1980
- "value": "string"
1981
- }
1982
- },
1983
- {
1984
- "name": "outputFormat",
1985
- "annotation": {
1986
- "type": "keyword",
1987
- "value": "string"
1988
- }
1989
- },
1990
- {
1991
- "name": "type",
1992
- "annotation": {
1993
- "type": "union",
1994
- "types": [
1995
- {
1996
- "type": "jsLiteral",
1997
- "value": "datetime"
1998
- },
1999
- {
2000
- "type": "jsLiteral",
2001
- "value": "date"
2002
- }
2003
- ]
2004
- }
2005
- },
2006
- {
2007
- "name": "isCostTime",
2008
- "annotation": {
2009
- "type": "keyword",
2010
- "value": "boolean"
2011
- }
2012
- },
2013
- {
2014
- "name": "formatter",
2015
- "annotation": {
2016
- "type": "reference",
2017
- "typeName": {
2018
- "type": "identifier",
2019
- "name": "HumanizeTimeFormat"
2020
- }
2021
- }
2022
- },
2023
- {
2024
- "name": "isMicrosecond",
2025
- "annotation": {
2026
- "type": "keyword",
2027
- "value": "boolean"
2028
- }
2029
- },
2030
- {
2031
- "name": "isMillisecond",
2032
- "annotation": {
2033
- "type": "keyword",
2034
- "value": "boolean"
2035
- }
2036
- },
2037
- {
2038
- "name": "link",
2039
- "annotation": {
2040
- "type": "reference",
2041
- "typeName": {
2042
- "type": "identifier",
2043
- "name": "LinkInfo"
2044
- }
2045
- }
2046
- }
2047
- ],
2048
- "events": [],
2049
- "methods": [],
2050
- "types": [
2051
- {
2052
- "type": "interface",
2053
- "name": "LinkInfo",
2054
- "body": [
2055
- {
2056
- "type": "propertySignature",
2057
- "key": {
2058
- "type": "identifier",
2059
- "name": "url"
2060
- },
2061
- "annotation": {
2062
- "type": "keyword",
2063
- "value": "string"
2064
- },
2065
- "computed": false
2066
- },
2067
- {
2068
- "type": "propertySignature",
2069
- "key": {
2070
- "type": "identifier",
2071
- "name": "target"
2072
- },
2073
- "annotation": {
2074
- "type": "reference",
2075
- "typeName": {
2076
- "type": "identifier",
2077
- "name": "Target"
2078
- }
2079
- },
2080
- "optional": true,
2081
- "computed": false
2082
- }
2083
- ]
2084
- }
2085
- ]
2086
2099
  }
2087
2100
  }
@@ -9,6 +9,7 @@ interface DescriptionItem {
9
9
  group?: string;
10
10
  text?: string | number;
11
11
  useBrick?: UseBrickConf;
12
+ gridColumn?: string;
12
13
  }
13
14
  type Layout = "horizontal" | "vertical";
14
15
  export interface DescriptionsProps {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@next-bricks/presentational",
3
- "version": "1.14.4",
3
+ "version": "1.15.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": "361eda0bb88dc010502fdf25811ace594f6b2e31"
47
+ "gitHead": "a9951b03e97f897339cc149ed4a8f8a2a63ca024"
48
48
  }