@next-bricks/presentational 1.13.3 → 1.13.4
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 +13 -13
- package/dist/chunks/7082.ee0da447.js +2 -0
- package/dist/chunks/7082.ee0da447.js.map +1 -0
- package/dist/chunks/eo-card-item.2dbcdc6f.js +3 -0
- package/dist/chunks/eo-card-item.2dbcdc6f.js.map +1 -0
- package/dist/chunks/{main.47f25a1d.js → main.e87645dc.js} +2 -2
- package/dist/chunks/{main.47f25a1d.js.map → main.e87645dc.js.map} +1 -1
- package/dist/examples.json +6 -6
- package/dist/{index.0ef8d8df.js → index.a94f4bd7.js} +2 -2
- package/dist/{index.0ef8d8df.js.map → index.a94f4bd7.js.map} +1 -1
- package/dist/manifest.json +128 -122
- package/dist/types.json +79 -62
- package/dist-types/card-item/index.d.ts +5 -0
- package/package.json +2 -2
- package/dist/chunks/7082.1d1edd18.js +0 -2
- package/dist/chunks/7082.1d1edd18.js.map +0 -1
- package/dist/chunks/eo-card-item.2e03be51.js +0 -3
- package/dist/chunks/eo-card-item.2e03be51.js.map +0 -1
- /package/dist/chunks/{eo-card-item.2e03be51.js.LICENSE.txt → eo-card-item.2dbcdc6f.js.LICENSE.txt} +0 -0
package/dist/manifest.json
CHANGED
|
@@ -123,6 +123,63 @@
|
|
|
123
123
|
"description": "告警提示",
|
|
124
124
|
"category": "display-component"
|
|
125
125
|
},
|
|
126
|
+
{
|
|
127
|
+
"name": "eo-code-display",
|
|
128
|
+
"alias": [
|
|
129
|
+
"presentational.code-display"
|
|
130
|
+
],
|
|
131
|
+
"properties": [
|
|
132
|
+
{
|
|
133
|
+
"name": "value",
|
|
134
|
+
"description": "代码内容",
|
|
135
|
+
"default": "\"\"",
|
|
136
|
+
"type": "string"
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
"name": "language",
|
|
140
|
+
"description": "语言,具体查阅 [Supported languages](https://prismjs.com/#supported-languages)",
|
|
141
|
+
"type": "string"
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
"name": "hideLineNumber",
|
|
145
|
+
"description": "是否隐藏行号",
|
|
146
|
+
"type": "boolean"
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
"name": "maxLines",
|
|
150
|
+
"description": "最大行数",
|
|
151
|
+
"type": "number"
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
"name": "minLines",
|
|
155
|
+
"description": "最小行数",
|
|
156
|
+
"type": "number"
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
"name": "showCopyButton",
|
|
160
|
+
"description": "是否显示复制按钮",
|
|
161
|
+
"default": "true",
|
|
162
|
+
"type": "boolean"
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
"name": "showExportButton",
|
|
166
|
+
"description": "是否显示导出按钮",
|
|
167
|
+
"type": "boolean"
|
|
168
|
+
},
|
|
169
|
+
{
|
|
170
|
+
"name": "exportFileName",
|
|
171
|
+
"description": "导出的文件名",
|
|
172
|
+
"default": "download.txt",
|
|
173
|
+
"type": "string"
|
|
174
|
+
}
|
|
175
|
+
],
|
|
176
|
+
"events": [],
|
|
177
|
+
"slots": [],
|
|
178
|
+
"methods": [],
|
|
179
|
+
"parts": [],
|
|
180
|
+
"description": "代码展示",
|
|
181
|
+
"category": "display-component"
|
|
182
|
+
},
|
|
126
183
|
{
|
|
127
184
|
"name": "eo-pagination",
|
|
128
185
|
"properties": [
|
|
@@ -187,63 +244,6 @@
|
|
|
187
244
|
"description": "分页",
|
|
188
245
|
"category": "navigation"
|
|
189
246
|
},
|
|
190
|
-
{
|
|
191
|
-
"name": "eo-code-display",
|
|
192
|
-
"alias": [
|
|
193
|
-
"presentational.code-display"
|
|
194
|
-
],
|
|
195
|
-
"properties": [
|
|
196
|
-
{
|
|
197
|
-
"name": "value",
|
|
198
|
-
"description": "代码内容",
|
|
199
|
-
"default": "\"\"",
|
|
200
|
-
"type": "string"
|
|
201
|
-
},
|
|
202
|
-
{
|
|
203
|
-
"name": "language",
|
|
204
|
-
"description": "语言,具体查阅 [Supported languages](https://prismjs.com/#supported-languages)",
|
|
205
|
-
"type": "string"
|
|
206
|
-
},
|
|
207
|
-
{
|
|
208
|
-
"name": "hideLineNumber",
|
|
209
|
-
"description": "是否隐藏行号",
|
|
210
|
-
"type": "boolean"
|
|
211
|
-
},
|
|
212
|
-
{
|
|
213
|
-
"name": "maxLines",
|
|
214
|
-
"description": "最大行数",
|
|
215
|
-
"type": "number"
|
|
216
|
-
},
|
|
217
|
-
{
|
|
218
|
-
"name": "minLines",
|
|
219
|
-
"description": "最小行数",
|
|
220
|
-
"type": "number"
|
|
221
|
-
},
|
|
222
|
-
{
|
|
223
|
-
"name": "showCopyButton",
|
|
224
|
-
"description": "是否显示复制按钮",
|
|
225
|
-
"default": "true",
|
|
226
|
-
"type": "boolean"
|
|
227
|
-
},
|
|
228
|
-
{
|
|
229
|
-
"name": "showExportButton",
|
|
230
|
-
"description": "是否显示导出按钮",
|
|
231
|
-
"type": "boolean"
|
|
232
|
-
},
|
|
233
|
-
{
|
|
234
|
-
"name": "exportFileName",
|
|
235
|
-
"description": "导出的文件名",
|
|
236
|
-
"default": "download.txt",
|
|
237
|
-
"type": "string"
|
|
238
|
-
}
|
|
239
|
-
],
|
|
240
|
-
"events": [],
|
|
241
|
-
"slots": [],
|
|
242
|
-
"methods": [],
|
|
243
|
-
"parts": [],
|
|
244
|
-
"description": "代码展示",
|
|
245
|
-
"category": "display-component"
|
|
246
|
-
},
|
|
247
247
|
{
|
|
248
248
|
"name": "eo-card-item",
|
|
249
249
|
"properties": [
|
|
@@ -349,6 +349,12 @@
|
|
|
349
349
|
"description": "卡片样式",
|
|
350
350
|
"attribute": false,
|
|
351
351
|
"type": "React.CSSProperties"
|
|
352
|
+
},
|
|
353
|
+
{
|
|
354
|
+
"name": "cardTitleStyle",
|
|
355
|
+
"description": "卡片标题样式",
|
|
356
|
+
"attribute": false,
|
|
357
|
+
"type": "React.CSSProperties"
|
|
352
358
|
}
|
|
353
359
|
],
|
|
354
360
|
"events": [
|
|
@@ -460,6 +466,71 @@
|
|
|
460
466
|
"description": "信息卡片",
|
|
461
467
|
"category": "card-info"
|
|
462
468
|
},
|
|
469
|
+
{
|
|
470
|
+
"name": "eo-humanize-time",
|
|
471
|
+
"alias": [
|
|
472
|
+
"presentational.humanize-time"
|
|
473
|
+
],
|
|
474
|
+
"properties": [
|
|
475
|
+
{
|
|
476
|
+
"name": "value",
|
|
477
|
+
"description": "时间截,或字符串,当为字符串时,应提供时间格式 `inputFormat`",
|
|
478
|
+
"required": true,
|
|
479
|
+
"attribute": false,
|
|
480
|
+
"type": "number | string"
|
|
481
|
+
},
|
|
482
|
+
{
|
|
483
|
+
"name": "inputFormat",
|
|
484
|
+
"description": "字符串的时间格式,如 \"YYYY-MM-DD\", [时间格式参照表](https://day.js.org/docs/en/parse/string-format)",
|
|
485
|
+
"type": "string"
|
|
486
|
+
},
|
|
487
|
+
{
|
|
488
|
+
"name": "outputFormat",
|
|
489
|
+
"description": "展示时间格式,如 \"YYYY-MM-DD\",当设置该属性时,属性 `formatter` 无效 [时间格式参照表](https://day.js.org/docs/en/display/format)",
|
|
490
|
+
"type": "string"
|
|
491
|
+
},
|
|
492
|
+
{
|
|
493
|
+
"name": "type",
|
|
494
|
+
"description": "使用日期+时间格式输出还是仅日期。",
|
|
495
|
+
"default": "\"datetime\"",
|
|
496
|
+
"type": "\"datetime\" | \"date\""
|
|
497
|
+
},
|
|
498
|
+
{
|
|
499
|
+
"name": "isCostTime",
|
|
500
|
+
"description": "是否展示为耗费时间,例如:'1 个月 20 天'",
|
|
501
|
+
"type": "boolean"
|
|
502
|
+
},
|
|
503
|
+
{
|
|
504
|
+
"name": "formatter",
|
|
505
|
+
"description": "格式类型",
|
|
506
|
+
"default": "\"default\"",
|
|
507
|
+
"attribute": false,
|
|
508
|
+
"type": "HumanizeTimeFormat"
|
|
509
|
+
},
|
|
510
|
+
{
|
|
511
|
+
"name": "isMicrosecond",
|
|
512
|
+
"description": "value 值的单位是否为毫秒(此处属性 id 写错,实际表达意义为 isMillisecond)",
|
|
513
|
+
"deprecated": "请使用 `isMillisecond`",
|
|
514
|
+
"type": "boolean"
|
|
515
|
+
},
|
|
516
|
+
{
|
|
517
|
+
"name": "isMillisecond",
|
|
518
|
+
"description": "value 值的单位是否为毫秒",
|
|
519
|
+
"type": "boolean"
|
|
520
|
+
},
|
|
521
|
+
{
|
|
522
|
+
"name": "link",
|
|
523
|
+
"description": "跳转链接,默认为空",
|
|
524
|
+
"attribute": false,
|
|
525
|
+
"type": "LinkInfo"
|
|
526
|
+
}
|
|
527
|
+
],
|
|
528
|
+
"events": [],
|
|
529
|
+
"slots": [],
|
|
530
|
+
"methods": [],
|
|
531
|
+
"parts": [],
|
|
532
|
+
"description": "人性化时间展示,可显示完整时间、相对时间、未来时间、耗时等,支持自定义输入值格式和输出格式。"
|
|
533
|
+
},
|
|
463
534
|
{
|
|
464
535
|
"name": "eo-statistics-card",
|
|
465
536
|
"properties": [
|
|
@@ -614,71 +685,6 @@
|
|
|
614
685
|
"parts": [],
|
|
615
686
|
"description": "加载步骤框"
|
|
616
687
|
},
|
|
617
|
-
{
|
|
618
|
-
"name": "eo-humanize-time",
|
|
619
|
-
"alias": [
|
|
620
|
-
"presentational.humanize-time"
|
|
621
|
-
],
|
|
622
|
-
"properties": [
|
|
623
|
-
{
|
|
624
|
-
"name": "value",
|
|
625
|
-
"description": "时间截,或字符串,当为字符串时,应提供时间格式 `inputFormat`",
|
|
626
|
-
"required": true,
|
|
627
|
-
"attribute": false,
|
|
628
|
-
"type": "number | string"
|
|
629
|
-
},
|
|
630
|
-
{
|
|
631
|
-
"name": "inputFormat",
|
|
632
|
-
"description": "字符串的时间格式,如 \"YYYY-MM-DD\", [时间格式参照表](https://day.js.org/docs/en/parse/string-format)",
|
|
633
|
-
"type": "string"
|
|
634
|
-
},
|
|
635
|
-
{
|
|
636
|
-
"name": "outputFormat",
|
|
637
|
-
"description": "展示时间格式,如 \"YYYY-MM-DD\",当设置该属性时,属性 `formatter` 无效 [时间格式参照表](https://day.js.org/docs/en/display/format)",
|
|
638
|
-
"type": "string"
|
|
639
|
-
},
|
|
640
|
-
{
|
|
641
|
-
"name": "type",
|
|
642
|
-
"description": "使用日期+时间格式输出还是仅日期。",
|
|
643
|
-
"default": "\"datetime\"",
|
|
644
|
-
"type": "\"datetime\" | \"date\""
|
|
645
|
-
},
|
|
646
|
-
{
|
|
647
|
-
"name": "isCostTime",
|
|
648
|
-
"description": "是否展示为耗费时间,例如:'1 个月 20 天'",
|
|
649
|
-
"type": "boolean"
|
|
650
|
-
},
|
|
651
|
-
{
|
|
652
|
-
"name": "formatter",
|
|
653
|
-
"description": "格式类型",
|
|
654
|
-
"default": "\"default\"",
|
|
655
|
-
"attribute": false,
|
|
656
|
-
"type": "HumanizeTimeFormat"
|
|
657
|
-
},
|
|
658
|
-
{
|
|
659
|
-
"name": "isMicrosecond",
|
|
660
|
-
"description": "value 值的单位是否为毫秒(此处属性 id 写错,实际表达意义为 isMillisecond)",
|
|
661
|
-
"deprecated": "请使用 `isMillisecond`",
|
|
662
|
-
"type": "boolean"
|
|
663
|
-
},
|
|
664
|
-
{
|
|
665
|
-
"name": "isMillisecond",
|
|
666
|
-
"description": "value 值的单位是否为毫秒",
|
|
667
|
-
"type": "boolean"
|
|
668
|
-
},
|
|
669
|
-
{
|
|
670
|
-
"name": "link",
|
|
671
|
-
"description": "跳转链接,默认为空",
|
|
672
|
-
"attribute": false,
|
|
673
|
-
"type": "LinkInfo"
|
|
674
|
-
}
|
|
675
|
-
],
|
|
676
|
-
"events": [],
|
|
677
|
-
"slots": [],
|
|
678
|
-
"methods": [],
|
|
679
|
-
"parts": [],
|
|
680
|
-
"description": "人性化时间展示,可显示完整时间、相对时间、未来时间、耗时等,支持自定义输入值格式和输出格式。"
|
|
681
|
-
},
|
|
682
688
|
{
|
|
683
689
|
"name": "eo-current-time",
|
|
684
690
|
"properties": [
|
package/dist/types.json
CHANGED
|
@@ -432,6 +432,23 @@
|
|
|
432
432
|
}
|
|
433
433
|
}
|
|
434
434
|
}
|
|
435
|
+
},
|
|
436
|
+
{
|
|
437
|
+
"name": "cardTitleStyle",
|
|
438
|
+
"annotation": {
|
|
439
|
+
"type": "reference",
|
|
440
|
+
"typeName": {
|
|
441
|
+
"type": "qualifiedName",
|
|
442
|
+
"left": {
|
|
443
|
+
"type": "identifier",
|
|
444
|
+
"name": "React"
|
|
445
|
+
},
|
|
446
|
+
"right": {
|
|
447
|
+
"type": "identifier",
|
|
448
|
+
"name": "CSSProperties"
|
|
449
|
+
}
|
|
450
|
+
}
|
|
451
|
+
}
|
|
435
452
|
}
|
|
436
453
|
],
|
|
437
454
|
"events": [
|
|
@@ -1667,6 +1684,68 @@
|
|
|
1667
1684
|
}
|
|
1668
1685
|
]
|
|
1669
1686
|
},
|
|
1687
|
+
"eo-code-display": {
|
|
1688
|
+
"properties": [
|
|
1689
|
+
{
|
|
1690
|
+
"name": "value",
|
|
1691
|
+
"annotation": {
|
|
1692
|
+
"type": "keyword",
|
|
1693
|
+
"value": "string"
|
|
1694
|
+
}
|
|
1695
|
+
},
|
|
1696
|
+
{
|
|
1697
|
+
"name": "language",
|
|
1698
|
+
"annotation": {
|
|
1699
|
+
"type": "keyword",
|
|
1700
|
+
"value": "string"
|
|
1701
|
+
}
|
|
1702
|
+
},
|
|
1703
|
+
{
|
|
1704
|
+
"name": "hideLineNumber",
|
|
1705
|
+
"annotation": {
|
|
1706
|
+
"type": "keyword",
|
|
1707
|
+
"value": "boolean"
|
|
1708
|
+
}
|
|
1709
|
+
},
|
|
1710
|
+
{
|
|
1711
|
+
"name": "maxLines",
|
|
1712
|
+
"annotation": {
|
|
1713
|
+
"type": "keyword",
|
|
1714
|
+
"value": "number"
|
|
1715
|
+
}
|
|
1716
|
+
},
|
|
1717
|
+
{
|
|
1718
|
+
"name": "minLines",
|
|
1719
|
+
"annotation": {
|
|
1720
|
+
"type": "keyword",
|
|
1721
|
+
"value": "number"
|
|
1722
|
+
}
|
|
1723
|
+
},
|
|
1724
|
+
{
|
|
1725
|
+
"name": "showCopyButton",
|
|
1726
|
+
"annotation": {
|
|
1727
|
+
"type": "keyword",
|
|
1728
|
+
"value": "boolean"
|
|
1729
|
+
}
|
|
1730
|
+
},
|
|
1731
|
+
{
|
|
1732
|
+
"name": "showExportButton",
|
|
1733
|
+
"annotation": {
|
|
1734
|
+
"type": "keyword",
|
|
1735
|
+
"value": "boolean"
|
|
1736
|
+
}
|
|
1737
|
+
},
|
|
1738
|
+
{
|
|
1739
|
+
"name": "exportFileName",
|
|
1740
|
+
"annotation": {
|
|
1741
|
+
"type": "keyword",
|
|
1742
|
+
"value": "string"
|
|
1743
|
+
}
|
|
1744
|
+
}
|
|
1745
|
+
],
|
|
1746
|
+
"events": [],
|
|
1747
|
+
"methods": []
|
|
1748
|
+
},
|
|
1670
1749
|
"eo-pagination": {
|
|
1671
1750
|
"properties": [
|
|
1672
1751
|
{
|
|
@@ -1860,68 +1939,6 @@
|
|
|
1860
1939
|
}
|
|
1861
1940
|
]
|
|
1862
1941
|
},
|
|
1863
|
-
"eo-code-display": {
|
|
1864
|
-
"properties": [
|
|
1865
|
-
{
|
|
1866
|
-
"name": "value",
|
|
1867
|
-
"annotation": {
|
|
1868
|
-
"type": "keyword",
|
|
1869
|
-
"value": "string"
|
|
1870
|
-
}
|
|
1871
|
-
},
|
|
1872
|
-
{
|
|
1873
|
-
"name": "language",
|
|
1874
|
-
"annotation": {
|
|
1875
|
-
"type": "keyword",
|
|
1876
|
-
"value": "string"
|
|
1877
|
-
}
|
|
1878
|
-
},
|
|
1879
|
-
{
|
|
1880
|
-
"name": "hideLineNumber",
|
|
1881
|
-
"annotation": {
|
|
1882
|
-
"type": "keyword",
|
|
1883
|
-
"value": "boolean"
|
|
1884
|
-
}
|
|
1885
|
-
},
|
|
1886
|
-
{
|
|
1887
|
-
"name": "maxLines",
|
|
1888
|
-
"annotation": {
|
|
1889
|
-
"type": "keyword",
|
|
1890
|
-
"value": "number"
|
|
1891
|
-
}
|
|
1892
|
-
},
|
|
1893
|
-
{
|
|
1894
|
-
"name": "minLines",
|
|
1895
|
-
"annotation": {
|
|
1896
|
-
"type": "keyword",
|
|
1897
|
-
"value": "number"
|
|
1898
|
-
}
|
|
1899
|
-
},
|
|
1900
|
-
{
|
|
1901
|
-
"name": "showCopyButton",
|
|
1902
|
-
"annotation": {
|
|
1903
|
-
"type": "keyword",
|
|
1904
|
-
"value": "boolean"
|
|
1905
|
-
}
|
|
1906
|
-
},
|
|
1907
|
-
{
|
|
1908
|
-
"name": "showExportButton",
|
|
1909
|
-
"annotation": {
|
|
1910
|
-
"type": "keyword",
|
|
1911
|
-
"value": "boolean"
|
|
1912
|
-
}
|
|
1913
|
-
},
|
|
1914
|
-
{
|
|
1915
|
-
"name": "exportFileName",
|
|
1916
|
-
"annotation": {
|
|
1917
|
-
"type": "keyword",
|
|
1918
|
-
"value": "string"
|
|
1919
|
-
}
|
|
1920
|
-
}
|
|
1921
|
-
],
|
|
1922
|
-
"events": [],
|
|
1923
|
-
"methods": []
|
|
1924
|
-
},
|
|
1925
1942
|
"eo-humanize-time": {
|
|
1926
1943
|
"properties": [
|
|
1927
1944
|
{
|
|
@@ -59,6 +59,7 @@ export interface EoCardItemProps {
|
|
|
59
59
|
avatarPosition?: "content" | "cover";
|
|
60
60
|
coverImageSize?: React.CSSProperties["backgroundSize"];
|
|
61
61
|
cardStyle?: React.CSSProperties;
|
|
62
|
+
cardTitleStyle?: React.CSSProperties;
|
|
62
63
|
}
|
|
63
64
|
/**
|
|
64
65
|
* 信息类卡片 —— 通用卡片
|
|
@@ -141,6 +142,10 @@ export declare class EoCardItem extends ReactNextElement implements EoCardItemPr
|
|
|
141
142
|
* 卡片样式
|
|
142
143
|
*/
|
|
143
144
|
accessor cardStyle: React.CSSProperties;
|
|
145
|
+
/**
|
|
146
|
+
* 卡片标题样式
|
|
147
|
+
*/
|
|
148
|
+
accessor cardTitleStyle: React.CSSProperties;
|
|
144
149
|
/**
|
|
145
150
|
* 是否有扩展区域 1
|
|
146
151
|
* @internal
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@next-bricks/presentational",
|
|
3
|
-
"version": "1.13.
|
|
3
|
+
"version": "1.13.4",
|
|
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": "
|
|
47
|
+
"gitHead": "0ddc1924279820cb7d4e2e170e850826c86e3b96"
|
|
48
48
|
}
|