@next-bricks/presentational 1.18.0 → 1.19.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.
@@ -74,186 +74,6 @@
74
74
  "description": "通用描述列表构件",
75
75
  "category": "text"
76
76
  },
77
- {
78
- "name": "eo-alert",
79
- "alias": [
80
- "presentational.general-alert"
81
- ],
82
- "properties": [
83
- {
84
- "name": "type",
85
- "description": "警告类型",
86
- "attribute": false,
87
- "type": "AlertType"
88
- },
89
- {
90
- "name": "hasTitle",
91
- "description": "是否显示标题。开启后,可以使用 `title` 插槽",
92
- "type": "boolean"
93
- },
94
- {
95
- "name": "showIcon",
96
- "description": "是否显示提示图标",
97
- "type": "boolean"
98
- },
99
- {
100
- "name": "closable",
101
- "description": "是否显示关闭按钮",
102
- "type": "boolean"
103
- },
104
- {
105
- "name": "localStorageKey",
106
- "description": "以该值和页面 url 作为命名空间,决定是否显示该警告提示",
107
- "type": "string"
108
- },
109
- {
110
- "name": "disableUrlNamespace",
111
- "description": "关闭后仅以 `localStorageKey` 作为命名空间",
112
- "type": "boolean"
113
- },
114
- {
115
- "name": "textContent",
116
- "type": "string",
117
- "description": "文本内容"
118
- }
119
- ],
120
- "events": [],
121
- "slots": [
122
- {
123
- "name": null,
124
- "description": "内容区"
125
- },
126
- {
127
- "name": "title",
128
- "description": "标题"
129
- }
130
- ],
131
- "methods": [],
132
- "parts": [],
133
- "description": "告警提示",
134
- "category": "display-component"
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
- },
193
- {
194
- "name": "eo-pagination",
195
- "properties": [
196
- {
197
- "name": "type",
198
- "description": "",
199
- "default": "\"page\"",
200
- "type": "\"page\" | \"token\""
201
- },
202
- {
203
- "name": "total",
204
- "description": "数据总数",
205
- "default": "0",
206
- "type": "number"
207
- },
208
- {
209
- "name": "page",
210
- "description": "当前页数",
211
- "default": "1",
212
- "type": "number"
213
- },
214
- {
215
- "name": "pageSize",
216
- "description": "每页条数",
217
- "default": "20",
218
- "type": "number"
219
- },
220
- {
221
- "name": "pageSizeOptions",
222
- "description": "指定每页可以显示多少条",
223
- "default": "[10, 20, 50, 100]",
224
- "attribute": false,
225
- "type": "number[]"
226
- },
227
- {
228
- "name": "showSizeChanger",
229
- "description": "是否展示`pageSize`分页器",
230
- "default": "true",
231
- "type": "boolean"
232
- },
233
- {
234
- "name": "nextToken",
235
- "type": "string"
236
- },
237
- {
238
- "name": "previousToken",
239
- "type": "string"
240
- }
241
- ],
242
- "events": [
243
- {
244
- "name": "change",
245
- "description": "页码及每页条数改变事件",
246
- "detail": {
247
- "type": "ChangeDetail"
248
- }
249
- }
250
- ],
251
- "slots": [],
252
- "methods": [],
253
- "parts": [],
254
- "description": "分页",
255
- "category": "navigation"
256
- },
257
77
  {
258
78
  "name": "eo-card-item",
259
79
  "properties": [
@@ -359,6 +179,11 @@
359
179
  "description": "卡片边框颜色",
360
180
  "type": "string"
361
181
  },
182
+ {
183
+ "name": "stacked",
184
+ "description": "是否堆叠",
185
+ "type": "boolean"
186
+ },
362
187
  {
363
188
  "name": "cardStyle",
364
189
  "description": "卡片样式",
@@ -415,50 +240,253 @@
415
240
  ],
416
241
  "methods": [],
417
242
  "parts": [],
418
- "description": "信息类卡片 —— 通用卡片",
419
- "category": "card-info"
243
+ "description": "信息类卡片 —— 通用卡片",
244
+ "category": "card-info"
245
+ },
246
+ {
247
+ "name": "eo-pagination",
248
+ "properties": [
249
+ {
250
+ "name": "type",
251
+ "description": "",
252
+ "default": "\"page\"",
253
+ "type": "\"page\" | \"token\""
254
+ },
255
+ {
256
+ "name": "total",
257
+ "description": "数据总数",
258
+ "default": "0",
259
+ "type": "number"
260
+ },
261
+ {
262
+ "name": "page",
263
+ "description": "当前页数",
264
+ "default": "1",
265
+ "type": "number"
266
+ },
267
+ {
268
+ "name": "pageSize",
269
+ "description": "每页条数",
270
+ "default": "20",
271
+ "type": "number"
272
+ },
273
+ {
274
+ "name": "pageSizeOptions",
275
+ "description": "指定每页可以显示多少条",
276
+ "default": "[10, 20, 50, 100]",
277
+ "attribute": false,
278
+ "type": "number[]"
279
+ },
280
+ {
281
+ "name": "showSizeChanger",
282
+ "description": "是否展示`pageSize`分页器",
283
+ "default": "true",
284
+ "type": "boolean"
285
+ },
286
+ {
287
+ "name": "nextToken",
288
+ "type": "string"
289
+ },
290
+ {
291
+ "name": "previousToken",
292
+ "type": "string"
293
+ }
294
+ ],
295
+ "events": [
296
+ {
297
+ "name": "change",
298
+ "description": "页码及每页条数改变事件",
299
+ "detail": {
300
+ "type": "ChangeDetail"
301
+ }
302
+ }
303
+ ],
304
+ "slots": [],
305
+ "methods": [],
306
+ "parts": [],
307
+ "description": "分页",
308
+ "category": "navigation"
309
+ },
310
+ {
311
+ "name": "eo-code-display",
312
+ "alias": [
313
+ "presentational.code-display"
314
+ ],
315
+ "properties": [
316
+ {
317
+ "name": "value",
318
+ "description": "代码内容",
319
+ "default": "\"\"",
320
+ "type": "string"
321
+ },
322
+ {
323
+ "name": "language",
324
+ "description": "语言,具体查阅 [Supported languages](https://prismjs.com/#supported-languages)",
325
+ "type": "string"
326
+ },
327
+ {
328
+ "name": "hideLineNumber",
329
+ "description": "是否隐藏行号",
330
+ "type": "boolean"
331
+ },
332
+ {
333
+ "name": "maxLines",
334
+ "description": "最大行数",
335
+ "type": "number"
336
+ },
337
+ {
338
+ "name": "minLines",
339
+ "description": "最小行数",
340
+ "type": "number"
341
+ },
342
+ {
343
+ "name": "showCopyButton",
344
+ "description": "是否显示复制按钮",
345
+ "default": "true",
346
+ "type": "boolean"
347
+ },
348
+ {
349
+ "name": "showExportButton",
350
+ "description": "是否显示导出按钮",
351
+ "type": "boolean"
352
+ },
353
+ {
354
+ "name": "exportFileName",
355
+ "description": "导出的文件名",
356
+ "default": "download.txt",
357
+ "type": "string"
358
+ }
359
+ ],
360
+ "events": [],
361
+ "slots": [],
362
+ "methods": [],
363
+ "parts": [],
364
+ "description": "代码展示",
365
+ "category": "display-component"
366
+ },
367
+ {
368
+ "name": "eo-alert",
369
+ "alias": [
370
+ "presentational.general-alert"
371
+ ],
372
+ "properties": [
373
+ {
374
+ "name": "type",
375
+ "description": "警告类型",
376
+ "attribute": false,
377
+ "type": "AlertType"
378
+ },
379
+ {
380
+ "name": "hasTitle",
381
+ "description": "是否显示标题。开启后,可以使用 `title` 插槽",
382
+ "type": "boolean"
383
+ },
384
+ {
385
+ "name": "showIcon",
386
+ "description": "是否显示提示图标",
387
+ "type": "boolean"
388
+ },
389
+ {
390
+ "name": "closable",
391
+ "description": "是否显示关闭按钮",
392
+ "type": "boolean"
393
+ },
394
+ {
395
+ "name": "localStorageKey",
396
+ "description": "以该值和页面 url 作为命名空间,决定是否显示该警告提示",
397
+ "type": "string"
398
+ },
399
+ {
400
+ "name": "disableUrlNamespace",
401
+ "description": "关闭后仅以 `localStorageKey` 作为命名空间",
402
+ "type": "boolean"
403
+ },
404
+ {
405
+ "name": "textContent",
406
+ "type": "string",
407
+ "description": "文本内容"
408
+ }
409
+ ],
410
+ "events": [],
411
+ "slots": [
412
+ {
413
+ "name": null,
414
+ "description": "内容区"
415
+ },
416
+ {
417
+ "name": "title",
418
+ "description": "标题"
419
+ }
420
+ ],
421
+ "methods": [],
422
+ "parts": [],
423
+ "description": "告警提示",
424
+ "category": "display-component"
420
425
  },
421
426
  {
422
- "name": "eo-divider",
427
+ "name": "eo-humanize-time",
428
+ "alias": [
429
+ "presentational.humanize-time"
430
+ ],
423
431
  "properties": [
424
432
  {
425
- "name": "orientation",
426
- "description": "标题位置,在horizontal类型的分割线中使用",
427
- "default": "center",
433
+ "name": "value",
434
+ "description": "时间截,或字符串,当为字符串时,应提供时间格式 `inputFormat`",
435
+ "required": true,
428
436
  "attribute": false,
429
- "type": "OrientationType"
437
+ "type": "number | string"
430
438
  },
431
439
  {
432
- "name": "dashed",
433
- "description": "是否虚线",
434
- "default": "false",
435
- "type": "boolean"
440
+ "name": "inputFormat",
441
+ "description": "字符串的时间格式,如 \"YYYY-MM-DD\", [时间格式参照表](https://day.js.org/docs/en/parse/string-format)",
442
+ "type": "string"
443
+ },
444
+ {
445
+ "name": "outputFormat",
446
+ "description": "展示时间格式,如 \"YYYY-MM-DD\",当设置该属性时,属性 `formatter` 无效 [时间格式参照表](https://day.js.org/docs/en/display/format)",
447
+ "type": "string"
436
448
  },
437
449
  {
438
450
  "name": "type",
439
- "description": "水平|垂直|放射类型,注意radiation是个特殊的类型,该样式是特定的",
440
- "default": "\"horizontal\"",
441
- "type": "dividerType"
451
+ "description": "使用日期+时间格式输出还是仅日期。",
452
+ "default": "\"datetime\"",
453
+ "type": "\"datetime\" | \"date\""
442
454
  },
443
455
  {
444
- "name": "proportion",
445
- "description": "当用于数值显示的情况,eg: 如果要展示\"1/3\",那么传入就是[1,3], 该字段只适配于 type 为 radiation",
456
+ "name": "isCostTime",
457
+ "description": "是否展示为耗费时间,例如:'1 个月 20 天'",
458
+ "type": "boolean"
459
+ },
460
+ {
461
+ "name": "formatter",
462
+ "description": "格式类型",
463
+ "default": "\"default\"",
446
464
  "attribute": false,
447
- "type": "[number, number]"
465
+ "type": "HumanizeTimeFormat"
448
466
  },
449
467
  {
450
- "name": "dividerStyle",
451
- "description": "分割线自定义样式",
468
+ "name": "isMicrosecond",
469
+ "description": "value 值的单位是否为毫秒(此处属性 id 写错,实际表达意义为 isMillisecond)",
470
+ "deprecated": "请使用 `isMillisecond`",
471
+ "type": "boolean"
472
+ },
473
+ {
474
+ "name": "isMillisecond",
475
+ "description": "value 值的单位是否为毫秒",
476
+ "type": "boolean"
477
+ },
478
+ {
479
+ "name": "link",
480
+ "description": "跳转链接,默认为空",
452
481
  "attribute": false,
453
- "type": "CSSProperties"
482
+ "type": "LinkInfo"
454
483
  }
455
484
  ],
456
485
  "events": [],
457
486
  "slots": [],
458
487
  "methods": [],
459
488
  "parts": [],
460
- "description": "分割线",
461
- "category": "container-display"
489
+ "description": "人性化时间展示,可显示完整时间、相对时间、未来时间、耗时等,支持自定义输入值格式和输出格式。"
462
490
  },
463
491
  {
464
492
  "name": "eo-info-card-item",
@@ -504,69 +532,46 @@
504
532
  "category": "card-info"
505
533
  },
506
534
  {
507
- "name": "eo-humanize-time",
508
- "alias": [
509
- "presentational.humanize-time"
510
- ],
535
+ "name": "eo-divider",
511
536
  "properties": [
512
537
  {
513
- "name": "value",
514
- "description": "时间截,或字符串,当为字符串时,应提供时间格式 `inputFormat`",
515
- "required": true,
538
+ "name": "orientation",
539
+ "description": "标题位置,在horizontal类型的分割线中使用",
540
+ "default": "center",
516
541
  "attribute": false,
517
- "type": "number | string"
518
- },
519
- {
520
- "name": "inputFormat",
521
- "description": "字符串的时间格式,如 \"YYYY-MM-DD\", [时间格式参照表](https://day.js.org/docs/en/parse/string-format)",
522
- "type": "string"
542
+ "type": "OrientationType"
523
543
  },
524
544
  {
525
- "name": "outputFormat",
526
- "description": "展示时间格式,如 \"YYYY-MM-DD\",当设置该属性时,属性 `formatter` 无效 [时间格式参照表](https://day.js.org/docs/en/display/format)",
527
- "type": "string"
545
+ "name": "dashed",
546
+ "description": "是否虚线",
547
+ "default": "false",
548
+ "type": "boolean"
528
549
  },
529
550
  {
530
551
  "name": "type",
531
- "description": "使用日期+时间格式输出还是仅日期。",
532
- "default": "\"datetime\"",
533
- "type": "\"datetime\" | \"date\""
534
- },
535
- {
536
- "name": "isCostTime",
537
- "description": "是否展示为耗费时间,例如:'1 个月 20 天'",
538
- "type": "boolean"
552
+ "description": "水平|垂直|放射类型,注意radiation是个特殊的类型,该样式是特定的",
553
+ "default": "\"horizontal\"",
554
+ "type": "dividerType"
539
555
  },
540
556
  {
541
- "name": "formatter",
542
- "description": "格式类型",
543
- "default": "\"default\"",
557
+ "name": "proportion",
558
+ "description": "当用于数值显示的情况,eg: 如果要展示\"1/3\",那么传入就是[1,3], 该字段只适配于 type 为 radiation",
544
559
  "attribute": false,
545
- "type": "HumanizeTimeFormat"
546
- },
547
- {
548
- "name": "isMicrosecond",
549
- "description": "value 值的单位是否为毫秒(此处属性 id 写错,实际表达意义为 isMillisecond)",
550
- "deprecated": "请使用 `isMillisecond`",
551
- "type": "boolean"
552
- },
553
- {
554
- "name": "isMillisecond",
555
- "description": "value 值的单位是否为毫秒",
556
- "type": "boolean"
560
+ "type": "[number, number]"
557
561
  },
558
562
  {
559
- "name": "link",
560
- "description": "跳转链接,默认为空",
563
+ "name": "dividerStyle",
564
+ "description": "分割线自定义样式",
561
565
  "attribute": false,
562
- "type": "LinkInfo"
566
+ "type": "CSSProperties"
563
567
  }
564
568
  ],
565
569
  "events": [],
566
570
  "slots": [],
567
571
  "methods": [],
568
572
  "parts": [],
569
- "description": "人性化时间展示,可显示完整时间、相对时间、未来时间、耗时等,支持自定义输入值格式和输出格式。"
573
+ "description": "分割线",
574
+ "category": "container-display"
570
575
  },
571
576
  {
572
577
  "name": "eo-statistics-card",
@@ -658,68 +663,6 @@
658
663
  "parts": [],
659
664
  "description": "统计卡片"
660
665
  },
661
- {
662
- "name": "eo-current-time",
663
- "properties": [
664
- {
665
- "name": "format",
666
- "description": "时间格式",
667
- "default": "\"YYYY-MM-DD HH:mm:ss\"",
668
- "type": "string"
669
- },
670
- {
671
- "name": "icon",
672
- "description": "前置图标",
673
- "attribute": false,
674
- "type": "GeneralIconProps"
675
- }
676
- ],
677
- "events": [],
678
- "slots": [],
679
- "methods": [],
680
- "parts": [],
681
- "description": "构件 `eo-current-time`"
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
- },
723
666
  {
724
667
  "name": "eo-loading-step",
725
668
  "properties": [
@@ -783,6 +726,68 @@
783
726
  ],
784
727
  "parts": [],
785
728
  "description": "加载步骤框"
729
+ },
730
+ {
731
+ "name": "eo-current-time",
732
+ "properties": [
733
+ {
734
+ "name": "format",
735
+ "description": "时间格式",
736
+ "default": "\"YYYY-MM-DD HH:mm:ss\"",
737
+ "type": "string"
738
+ },
739
+ {
740
+ "name": "icon",
741
+ "description": "前置图标",
742
+ "attribute": false,
743
+ "type": "GeneralIconProps"
744
+ }
745
+ ],
746
+ "events": [],
747
+ "slots": [],
748
+ "methods": [],
749
+ "parts": [],
750
+ "description": "构件 `eo-current-time`"
751
+ },
752
+ {
753
+ "name": "eo-carousel-text",
754
+ "properties": [
755
+ {
756
+ "name": "text",
757
+ "description": "展示内容",
758
+ "default": "\"\"",
759
+ "type": "string"
760
+ },
761
+ {
762
+ "name": "containerWidth",
763
+ "description": "容器宽度",
764
+ "default": "\"100%\"",
765
+ "type": "CSSProperties[\"width\"]"
766
+ },
767
+ {
768
+ "name": "fontSize",
769
+ "description": "字体大小",
770
+ "default": "\"var(--normal-font-size)\"",
771
+ "type": "CSSProperties[\"fontSize\"]"
772
+ },
773
+ {
774
+ "name": "fontColor",
775
+ "description": "字体颜色",
776
+ "default": "\"var(--text-color-default)\"",
777
+ "type": "CSSProperties[\"color\"]"
778
+ },
779
+ {
780
+ "name": "speed",
781
+ "description": "移动速度,单位 px/s",
782
+ "default": "100",
783
+ "type": "number"
784
+ }
785
+ ],
786
+ "events": [],
787
+ "slots": [],
788
+ "methods": [],
789
+ "parts": [],
790
+ "description": "构件 `eo-carousel-text`"
786
791
  }
787
792
  ],
788
793
  "providers": []