@next-bricks/presentational 1.10.11 → 1.10.12
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 +18 -18
- package/dist/chunks/4196.6851a364.js +2 -0
- package/dist/chunks/4196.6851a364.js.map +1 -0
- package/dist/chunks/eo-card-item.62d84ced.js +3 -0
- package/dist/chunks/eo-card-item.62d84ced.js.map +1 -0
- package/dist/chunks/{main.9c27b584.js → main.40726f7b.js} +2 -2
- package/dist/chunks/{main.9c27b584.js.map → main.40726f7b.js.map} +1 -1
- package/dist/examples.json +8 -8
- package/dist/index.2af00692.js +2 -0
- package/dist/{index.b588a66b.js.map → index.2af00692.js.map} +1 -1
- package/dist/manifest.json +151 -151
- package/dist/types.json +62 -62
- package/package.json +2 -2
- package/dist/chunks/4196.8633939e.js +0 -2
- package/dist/chunks/4196.8633939e.js.map +0 -1
- package/dist/chunks/eo-card-item.a152b51b.js +0 -3
- package/dist/chunks/eo-card-item.a152b51b.js.map +0 -1
- package/dist/index.b588a66b.js +0 -2
- /package/dist/chunks/{eo-card-item.a152b51b.js.LICENSE.txt → eo-card-item.62d84ced.js.LICENSE.txt} +0 -0
package/dist/manifest.json
CHANGED
|
@@ -64,63 +64,6 @@
|
|
|
64
64
|
"description": "通用描述列表构件",
|
|
65
65
|
"category": "text"
|
|
66
66
|
},
|
|
67
|
-
{
|
|
68
|
-
"name": "eo-code-display",
|
|
69
|
-
"alias": [
|
|
70
|
-
"presentational.code-display"
|
|
71
|
-
],
|
|
72
|
-
"properties": [
|
|
73
|
-
{
|
|
74
|
-
"name": "value",
|
|
75
|
-
"description": "代码内容",
|
|
76
|
-
"default": "\"\"",
|
|
77
|
-
"type": "string"
|
|
78
|
-
},
|
|
79
|
-
{
|
|
80
|
-
"name": "language",
|
|
81
|
-
"description": "语言,具体查阅 [Supported languages](https://prismjs.com/#supported-languages)",
|
|
82
|
-
"type": "string"
|
|
83
|
-
},
|
|
84
|
-
{
|
|
85
|
-
"name": "hideLineNumber",
|
|
86
|
-
"description": "是否隐藏行号",
|
|
87
|
-
"type": "boolean"
|
|
88
|
-
},
|
|
89
|
-
{
|
|
90
|
-
"name": "maxLines",
|
|
91
|
-
"description": "最大行数",
|
|
92
|
-
"type": "number"
|
|
93
|
-
},
|
|
94
|
-
{
|
|
95
|
-
"name": "minLines",
|
|
96
|
-
"description": "最小行数",
|
|
97
|
-
"type": "number"
|
|
98
|
-
},
|
|
99
|
-
{
|
|
100
|
-
"name": "showCopyButton",
|
|
101
|
-
"description": "是否显示复制按钮",
|
|
102
|
-
"default": "true",
|
|
103
|
-
"type": "boolean"
|
|
104
|
-
},
|
|
105
|
-
{
|
|
106
|
-
"name": "showExportButton",
|
|
107
|
-
"description": "是否显示导出按钮",
|
|
108
|
-
"type": "boolean"
|
|
109
|
-
},
|
|
110
|
-
{
|
|
111
|
-
"name": "exportFileName",
|
|
112
|
-
"description": "导出的文件名",
|
|
113
|
-
"default": "download.txt",
|
|
114
|
-
"type": "string"
|
|
115
|
-
}
|
|
116
|
-
],
|
|
117
|
-
"events": [],
|
|
118
|
-
"slots": [],
|
|
119
|
-
"methods": [],
|
|
120
|
-
"parts": [],
|
|
121
|
-
"description": "代码展示",
|
|
122
|
-
"category": "display-component"
|
|
123
|
-
},
|
|
124
67
|
{
|
|
125
68
|
"name": "eo-alert",
|
|
126
69
|
"alias": [
|
|
@@ -176,54 +119,61 @@
|
|
|
176
119
|
"category": "display-component"
|
|
177
120
|
},
|
|
178
121
|
{
|
|
179
|
-
"name": "eo-
|
|
122
|
+
"name": "eo-code-display",
|
|
123
|
+
"alias": [
|
|
124
|
+
"presentational.code-display"
|
|
125
|
+
],
|
|
180
126
|
"properties": [
|
|
181
127
|
{
|
|
182
|
-
"name": "
|
|
183
|
-
"description": "
|
|
184
|
-
"default": "
|
|
185
|
-
"type": "
|
|
128
|
+
"name": "value",
|
|
129
|
+
"description": "代码内容",
|
|
130
|
+
"default": "\"\"",
|
|
131
|
+
"type": "string"
|
|
186
132
|
},
|
|
187
133
|
{
|
|
188
|
-
"name": "
|
|
189
|
-
"description": "
|
|
190
|
-
"
|
|
191
|
-
"type": "number"
|
|
134
|
+
"name": "language",
|
|
135
|
+
"description": "语言,具体查阅 [Supported languages](https://prismjs.com/#supported-languages)",
|
|
136
|
+
"type": "string"
|
|
192
137
|
},
|
|
193
138
|
{
|
|
194
|
-
"name": "
|
|
195
|
-
"description": "
|
|
196
|
-
"
|
|
139
|
+
"name": "hideLineNumber",
|
|
140
|
+
"description": "是否隐藏行号",
|
|
141
|
+
"type": "boolean"
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
"name": "maxLines",
|
|
145
|
+
"description": "最大行数",
|
|
197
146
|
"type": "number"
|
|
198
147
|
},
|
|
199
148
|
{
|
|
200
|
-
"name": "
|
|
201
|
-
"description": "
|
|
202
|
-
"
|
|
203
|
-
"attribute": false,
|
|
204
|
-
"type": "number[]"
|
|
149
|
+
"name": "minLines",
|
|
150
|
+
"description": "最小行数",
|
|
151
|
+
"type": "number"
|
|
205
152
|
},
|
|
206
153
|
{
|
|
207
|
-
"name": "
|
|
208
|
-
"description": "
|
|
154
|
+
"name": "showCopyButton",
|
|
155
|
+
"description": "是否显示复制按钮",
|
|
209
156
|
"default": "true",
|
|
210
157
|
"type": "boolean"
|
|
211
|
-
}
|
|
212
|
-
],
|
|
213
|
-
"events": [
|
|
158
|
+
},
|
|
214
159
|
{
|
|
215
|
-
"name": "
|
|
216
|
-
"description": "
|
|
217
|
-
"
|
|
218
|
-
|
|
219
|
-
|
|
160
|
+
"name": "showExportButton",
|
|
161
|
+
"description": "是否显示导出按钮",
|
|
162
|
+
"type": "boolean"
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
"name": "exportFileName",
|
|
166
|
+
"description": "导出的文件名",
|
|
167
|
+
"default": "download.txt",
|
|
168
|
+
"type": "string"
|
|
220
169
|
}
|
|
221
170
|
],
|
|
171
|
+
"events": [],
|
|
222
172
|
"slots": [],
|
|
223
173
|
"methods": [],
|
|
224
174
|
"parts": [],
|
|
225
|
-
"description": "
|
|
226
|
-
"category": "
|
|
175
|
+
"description": "代码展示",
|
|
176
|
+
"category": "display-component"
|
|
227
177
|
},
|
|
228
178
|
{
|
|
229
179
|
"name": "eo-card-item",
|
|
@@ -398,6 +348,56 @@
|
|
|
398
348
|
"description": "分割线",
|
|
399
349
|
"category": "container-display"
|
|
400
350
|
},
|
|
351
|
+
{
|
|
352
|
+
"name": "eo-pagination",
|
|
353
|
+
"properties": [
|
|
354
|
+
{
|
|
355
|
+
"name": "total",
|
|
356
|
+
"description": "数据总数",
|
|
357
|
+
"default": "0",
|
|
358
|
+
"type": "number"
|
|
359
|
+
},
|
|
360
|
+
{
|
|
361
|
+
"name": "page",
|
|
362
|
+
"description": "当前页数",
|
|
363
|
+
"default": "1",
|
|
364
|
+
"type": "number"
|
|
365
|
+
},
|
|
366
|
+
{
|
|
367
|
+
"name": "pageSize",
|
|
368
|
+
"description": "每页条数",
|
|
369
|
+
"default": "20",
|
|
370
|
+
"type": "number"
|
|
371
|
+
},
|
|
372
|
+
{
|
|
373
|
+
"name": "pageSizeOptions",
|
|
374
|
+
"description": "指定每页可以显示多少条",
|
|
375
|
+
"default": "[10, 20, 50, 100]",
|
|
376
|
+
"attribute": false,
|
|
377
|
+
"type": "number[]"
|
|
378
|
+
},
|
|
379
|
+
{
|
|
380
|
+
"name": "showSizeChanger",
|
|
381
|
+
"description": "是否展示`pageSize`分页器",
|
|
382
|
+
"default": "true",
|
|
383
|
+
"type": "boolean"
|
|
384
|
+
}
|
|
385
|
+
],
|
|
386
|
+
"events": [
|
|
387
|
+
{
|
|
388
|
+
"name": "change",
|
|
389
|
+
"description": "页码及每页条数改变事件",
|
|
390
|
+
"detail": {
|
|
391
|
+
"type": "{ page: number; pageSize: number }"
|
|
392
|
+
}
|
|
393
|
+
}
|
|
394
|
+
],
|
|
395
|
+
"slots": [],
|
|
396
|
+
"methods": [],
|
|
397
|
+
"parts": [],
|
|
398
|
+
"description": "分页",
|
|
399
|
+
"category": "navigation"
|
|
400
|
+
},
|
|
401
401
|
{
|
|
402
402
|
"name": "eo-info-card-item",
|
|
403
403
|
"properties": [
|
|
@@ -441,6 +441,71 @@
|
|
|
441
441
|
"description": "信息卡片",
|
|
442
442
|
"category": "card-info"
|
|
443
443
|
},
|
|
444
|
+
{
|
|
445
|
+
"name": "eo-humanize-time",
|
|
446
|
+
"alias": [
|
|
447
|
+
"presentational.humanize-time"
|
|
448
|
+
],
|
|
449
|
+
"properties": [
|
|
450
|
+
{
|
|
451
|
+
"name": "value",
|
|
452
|
+
"description": "时间截,或字符串,当为字符串时,应提供时间格式 `inputFormat`",
|
|
453
|
+
"required": true,
|
|
454
|
+
"attribute": false,
|
|
455
|
+
"type": "number | string"
|
|
456
|
+
},
|
|
457
|
+
{
|
|
458
|
+
"name": "inputFormat",
|
|
459
|
+
"description": "字符串的时间格式,如 \"YYYY-MM-DD\", [时间格式参照表](https://day.js.org/docs/en/parse/string-format)",
|
|
460
|
+
"type": "string"
|
|
461
|
+
},
|
|
462
|
+
{
|
|
463
|
+
"name": "outputFormat",
|
|
464
|
+
"description": "展示时间格式,如 \"YYYY-MM-DD\",当设置该属性时,属性 `formatter` 无效 [时间格式参照表](https://day.js.org/docs/en/display/format)",
|
|
465
|
+
"type": "string"
|
|
466
|
+
},
|
|
467
|
+
{
|
|
468
|
+
"name": "type",
|
|
469
|
+
"description": "使用日期+时间格式输出还是仅日期。",
|
|
470
|
+
"default": "\"datetime\"",
|
|
471
|
+
"type": "\"datetime\" | \"date\""
|
|
472
|
+
},
|
|
473
|
+
{
|
|
474
|
+
"name": "isCostTime",
|
|
475
|
+
"description": "是否展示为耗费时间,例如:'1 个月 20 天'",
|
|
476
|
+
"type": "boolean"
|
|
477
|
+
},
|
|
478
|
+
{
|
|
479
|
+
"name": "formatter",
|
|
480
|
+
"description": "格式类型",
|
|
481
|
+
"default": "\"default\"",
|
|
482
|
+
"attribute": false,
|
|
483
|
+
"type": "HumanizeTimeFormat"
|
|
484
|
+
},
|
|
485
|
+
{
|
|
486
|
+
"name": "isMicrosecond",
|
|
487
|
+
"description": "value 值的单位是否为毫秒(此处属性 id 写错,实际表达意义为 isMillisecond)",
|
|
488
|
+
"deprecated": "请使用 `isMillisecond`",
|
|
489
|
+
"type": "boolean"
|
|
490
|
+
},
|
|
491
|
+
{
|
|
492
|
+
"name": "isMillisecond",
|
|
493
|
+
"description": "value 值的单位是否为毫秒",
|
|
494
|
+
"type": "boolean"
|
|
495
|
+
},
|
|
496
|
+
{
|
|
497
|
+
"name": "link",
|
|
498
|
+
"description": "跳转链接,默认为空",
|
|
499
|
+
"attribute": false,
|
|
500
|
+
"type": "LinkInfo"
|
|
501
|
+
}
|
|
502
|
+
],
|
|
503
|
+
"events": [],
|
|
504
|
+
"slots": [],
|
|
505
|
+
"methods": [],
|
|
506
|
+
"parts": [],
|
|
507
|
+
"description": "人性化时间展示,可显示完整时间、相对时间、未来时间、耗时等,支持自定义输入值格式和输出格式。"
|
|
508
|
+
},
|
|
444
509
|
{
|
|
445
510
|
"name": "eo-statistics-card",
|
|
446
511
|
"properties": [
|
|
@@ -531,71 +596,6 @@
|
|
|
531
596
|
"parts": [],
|
|
532
597
|
"description": "统计卡片"
|
|
533
598
|
},
|
|
534
|
-
{
|
|
535
|
-
"name": "eo-humanize-time",
|
|
536
|
-
"alias": [
|
|
537
|
-
"presentational.humanize-time"
|
|
538
|
-
],
|
|
539
|
-
"properties": [
|
|
540
|
-
{
|
|
541
|
-
"name": "value",
|
|
542
|
-
"description": "时间截,或字符串,当为字符串时,应提供时间格式 `inputFormat`",
|
|
543
|
-
"required": true,
|
|
544
|
-
"attribute": false,
|
|
545
|
-
"type": "number | string"
|
|
546
|
-
},
|
|
547
|
-
{
|
|
548
|
-
"name": "inputFormat",
|
|
549
|
-
"description": "字符串的时间格式,如 \"YYYY-MM-DD\", [时间格式参照表](https://day.js.org/docs/en/parse/string-format)",
|
|
550
|
-
"type": "string"
|
|
551
|
-
},
|
|
552
|
-
{
|
|
553
|
-
"name": "outputFormat",
|
|
554
|
-
"description": "展示时间格式,如 \"YYYY-MM-DD\",当设置该属性时,属性 `formatter` 无效 [时间格式参照表](https://day.js.org/docs/en/display/format)",
|
|
555
|
-
"type": "string"
|
|
556
|
-
},
|
|
557
|
-
{
|
|
558
|
-
"name": "type",
|
|
559
|
-
"description": "使用日期+时间格式输出还是仅日期。",
|
|
560
|
-
"default": "\"datetime\"",
|
|
561
|
-
"type": "\"datetime\" | \"date\""
|
|
562
|
-
},
|
|
563
|
-
{
|
|
564
|
-
"name": "isCostTime",
|
|
565
|
-
"description": "是否展示为耗费时间,例如:'1 个月 20 天'",
|
|
566
|
-
"type": "boolean"
|
|
567
|
-
},
|
|
568
|
-
{
|
|
569
|
-
"name": "formatter",
|
|
570
|
-
"description": "格式类型",
|
|
571
|
-
"default": "\"default\"",
|
|
572
|
-
"attribute": false,
|
|
573
|
-
"type": "HumanizeTimeFormat"
|
|
574
|
-
},
|
|
575
|
-
{
|
|
576
|
-
"name": "isMicrosecond",
|
|
577
|
-
"description": "value 值的单位是否为毫秒(此处属性 id 写错,实际表达意义为 isMillisecond)",
|
|
578
|
-
"deprecated": "请使用 `isMillisecond`",
|
|
579
|
-
"type": "boolean"
|
|
580
|
-
},
|
|
581
|
-
{
|
|
582
|
-
"name": "isMillisecond",
|
|
583
|
-
"description": "value 值的单位是否为毫秒",
|
|
584
|
-
"type": "boolean"
|
|
585
|
-
},
|
|
586
|
-
{
|
|
587
|
-
"name": "link",
|
|
588
|
-
"description": "跳转链接,默认为空",
|
|
589
|
-
"attribute": false,
|
|
590
|
-
"type": "LinkInfo"
|
|
591
|
-
}
|
|
592
|
-
],
|
|
593
|
-
"events": [],
|
|
594
|
-
"slots": [],
|
|
595
|
-
"methods": [],
|
|
596
|
-
"parts": [],
|
|
597
|
-
"description": "人性化时间展示,可显示完整时间、相对时间、未来时间、耗时等,支持自定义输入值格式和输出格式。"
|
|
598
|
-
},
|
|
599
599
|
{
|
|
600
600
|
"name": "eo-loading-step",
|
|
601
601
|
"properties": [
|
package/dist/types.json
CHANGED
|
@@ -1557,68 +1557,6 @@
|
|
|
1557
1557
|
"events": [],
|
|
1558
1558
|
"methods": []
|
|
1559
1559
|
},
|
|
1560
|
-
"eo-code-display": {
|
|
1561
|
-
"properties": [
|
|
1562
|
-
{
|
|
1563
|
-
"name": "value",
|
|
1564
|
-
"annotation": {
|
|
1565
|
-
"type": "keyword",
|
|
1566
|
-
"value": "string"
|
|
1567
|
-
}
|
|
1568
|
-
},
|
|
1569
|
-
{
|
|
1570
|
-
"name": "language",
|
|
1571
|
-
"annotation": {
|
|
1572
|
-
"type": "keyword",
|
|
1573
|
-
"value": "string"
|
|
1574
|
-
}
|
|
1575
|
-
},
|
|
1576
|
-
{
|
|
1577
|
-
"name": "hideLineNumber",
|
|
1578
|
-
"annotation": {
|
|
1579
|
-
"type": "keyword",
|
|
1580
|
-
"value": "boolean"
|
|
1581
|
-
}
|
|
1582
|
-
},
|
|
1583
|
-
{
|
|
1584
|
-
"name": "maxLines",
|
|
1585
|
-
"annotation": {
|
|
1586
|
-
"type": "keyword",
|
|
1587
|
-
"value": "number"
|
|
1588
|
-
}
|
|
1589
|
-
},
|
|
1590
|
-
{
|
|
1591
|
-
"name": "minLines",
|
|
1592
|
-
"annotation": {
|
|
1593
|
-
"type": "keyword",
|
|
1594
|
-
"value": "number"
|
|
1595
|
-
}
|
|
1596
|
-
},
|
|
1597
|
-
{
|
|
1598
|
-
"name": "showCopyButton",
|
|
1599
|
-
"annotation": {
|
|
1600
|
-
"type": "keyword",
|
|
1601
|
-
"value": "boolean"
|
|
1602
|
-
}
|
|
1603
|
-
},
|
|
1604
|
-
{
|
|
1605
|
-
"name": "showExportButton",
|
|
1606
|
-
"annotation": {
|
|
1607
|
-
"type": "keyword",
|
|
1608
|
-
"value": "boolean"
|
|
1609
|
-
}
|
|
1610
|
-
},
|
|
1611
|
-
{
|
|
1612
|
-
"name": "exportFileName",
|
|
1613
|
-
"annotation": {
|
|
1614
|
-
"type": "keyword",
|
|
1615
|
-
"value": "string"
|
|
1616
|
-
}
|
|
1617
|
-
}
|
|
1618
|
-
],
|
|
1619
|
-
"events": [],
|
|
1620
|
-
"methods": []
|
|
1621
|
-
},
|
|
1622
1560
|
"eo-alert": {
|
|
1623
1561
|
"properties": [
|
|
1624
1562
|
{
|
|
@@ -1722,6 +1660,68 @@
|
|
|
1722
1660
|
}
|
|
1723
1661
|
]
|
|
1724
1662
|
},
|
|
1663
|
+
"eo-code-display": {
|
|
1664
|
+
"properties": [
|
|
1665
|
+
{
|
|
1666
|
+
"name": "value",
|
|
1667
|
+
"annotation": {
|
|
1668
|
+
"type": "keyword",
|
|
1669
|
+
"value": "string"
|
|
1670
|
+
}
|
|
1671
|
+
},
|
|
1672
|
+
{
|
|
1673
|
+
"name": "language",
|
|
1674
|
+
"annotation": {
|
|
1675
|
+
"type": "keyword",
|
|
1676
|
+
"value": "string"
|
|
1677
|
+
}
|
|
1678
|
+
},
|
|
1679
|
+
{
|
|
1680
|
+
"name": "hideLineNumber",
|
|
1681
|
+
"annotation": {
|
|
1682
|
+
"type": "keyword",
|
|
1683
|
+
"value": "boolean"
|
|
1684
|
+
}
|
|
1685
|
+
},
|
|
1686
|
+
{
|
|
1687
|
+
"name": "maxLines",
|
|
1688
|
+
"annotation": {
|
|
1689
|
+
"type": "keyword",
|
|
1690
|
+
"value": "number"
|
|
1691
|
+
}
|
|
1692
|
+
},
|
|
1693
|
+
{
|
|
1694
|
+
"name": "minLines",
|
|
1695
|
+
"annotation": {
|
|
1696
|
+
"type": "keyword",
|
|
1697
|
+
"value": "number"
|
|
1698
|
+
}
|
|
1699
|
+
},
|
|
1700
|
+
{
|
|
1701
|
+
"name": "showCopyButton",
|
|
1702
|
+
"annotation": {
|
|
1703
|
+
"type": "keyword",
|
|
1704
|
+
"value": "boolean"
|
|
1705
|
+
}
|
|
1706
|
+
},
|
|
1707
|
+
{
|
|
1708
|
+
"name": "showExportButton",
|
|
1709
|
+
"annotation": {
|
|
1710
|
+
"type": "keyword",
|
|
1711
|
+
"value": "boolean"
|
|
1712
|
+
}
|
|
1713
|
+
},
|
|
1714
|
+
{
|
|
1715
|
+
"name": "exportFileName",
|
|
1716
|
+
"annotation": {
|
|
1717
|
+
"type": "keyword",
|
|
1718
|
+
"value": "string"
|
|
1719
|
+
}
|
|
1720
|
+
}
|
|
1721
|
+
],
|
|
1722
|
+
"events": [],
|
|
1723
|
+
"methods": []
|
|
1724
|
+
},
|
|
1725
1725
|
"eo-pagination": {
|
|
1726
1726
|
"properties": [
|
|
1727
1727
|
{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@next-bricks/presentational",
|
|
3
|
-
"version": "1.10.
|
|
3
|
+
"version": "1.10.12",
|
|
4
4
|
"homepage": "https://github.com/easyops-cn/next-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": "781b528e81c906d978128f7c07ff77f6a617e21f"
|
|
48
48
|
}
|