@next-bricks/presentational 1.19.0 → 1.20.1

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,6 +74,186 @@
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-pagination",
138
+ "properties": [
139
+ {
140
+ "name": "type",
141
+ "description": "",
142
+ "default": "\"page\"",
143
+ "type": "\"page\" | \"token\""
144
+ },
145
+ {
146
+ "name": "total",
147
+ "description": "数据总数",
148
+ "default": "0",
149
+ "type": "number"
150
+ },
151
+ {
152
+ "name": "page",
153
+ "description": "当前页数",
154
+ "default": "1",
155
+ "type": "number"
156
+ },
157
+ {
158
+ "name": "pageSize",
159
+ "description": "每页条数",
160
+ "default": "20",
161
+ "type": "number"
162
+ },
163
+ {
164
+ "name": "pageSizeOptions",
165
+ "description": "指定每页可以显示多少条",
166
+ "default": "[10, 20, 50, 100]",
167
+ "attribute": false,
168
+ "type": "number[]"
169
+ },
170
+ {
171
+ "name": "showSizeChanger",
172
+ "description": "是否展示`pageSize`分页器",
173
+ "default": "true",
174
+ "type": "boolean"
175
+ },
176
+ {
177
+ "name": "nextToken",
178
+ "type": "string"
179
+ },
180
+ {
181
+ "name": "previousToken",
182
+ "type": "string"
183
+ }
184
+ ],
185
+ "events": [
186
+ {
187
+ "name": "change",
188
+ "description": "页码及每页条数改变事件",
189
+ "detail": {
190
+ "type": "ChangeDetail"
191
+ }
192
+ }
193
+ ],
194
+ "slots": [],
195
+ "methods": [],
196
+ "parts": [],
197
+ "description": "分页",
198
+ "category": "navigation"
199
+ },
200
+ {
201
+ "name": "eo-code-display",
202
+ "alias": [
203
+ "presentational.code-display"
204
+ ],
205
+ "properties": [
206
+ {
207
+ "name": "value",
208
+ "description": "代码内容",
209
+ "default": "\"\"",
210
+ "type": "string"
211
+ },
212
+ {
213
+ "name": "language",
214
+ "description": "语言,具体查阅 [Supported languages](https://prismjs.com/#supported-languages)",
215
+ "type": "string"
216
+ },
217
+ {
218
+ "name": "hideLineNumber",
219
+ "description": "是否隐藏行号",
220
+ "type": "boolean"
221
+ },
222
+ {
223
+ "name": "maxLines",
224
+ "description": "最大行数",
225
+ "type": "number"
226
+ },
227
+ {
228
+ "name": "minLines",
229
+ "description": "最小行数",
230
+ "type": "number"
231
+ },
232
+ {
233
+ "name": "showCopyButton",
234
+ "description": "是否显示复制按钮",
235
+ "default": "true",
236
+ "type": "boolean"
237
+ },
238
+ {
239
+ "name": "showExportButton",
240
+ "description": "是否显示导出按钮",
241
+ "type": "boolean"
242
+ },
243
+ {
244
+ "name": "exportFileName",
245
+ "description": "导出的文件名",
246
+ "default": "download.txt",
247
+ "type": "string"
248
+ }
249
+ ],
250
+ "events": [],
251
+ "slots": [],
252
+ "methods": [],
253
+ "parts": [],
254
+ "description": "代码展示",
255
+ "category": "display-component"
256
+ },
77
257
  {
78
258
  "name": "eo-card-item",
79
259
  "properties": [
@@ -169,6 +349,12 @@
169
349
  "description": "图标是否放置在卡片封面",
170
350
  "type": "\"content\" | \"cover\""
171
351
  },
352
+ {
353
+ "name": "avatarPlacement",
354
+ "description": "图标位置,在 avatarPosition 不为 cover 时有效",
355
+ "default": "\"left\"",
356
+ "type": "\"left\" | \"title-left\""
357
+ },
172
358
  {
173
359
  "name": "tagConfig",
174
360
  "attribute": false,
@@ -244,184 +430,89 @@
244
430
  "category": "card-info"
245
431
  },
246
432
  {
247
- "name": "eo-pagination",
433
+ "name": "eo-divider",
248
434
  "properties": [
249
435
  {
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]",
436
+ "name": "orientation",
437
+ "description": "标题位置,在horizontal类型的分割线中使用",
438
+ "default": "center",
277
439
  "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"
440
+ "type": "OrientationType"
326
441
  },
327
442
  {
328
- "name": "hideLineNumber",
329
- "description": "是否隐藏行号",
443
+ "name": "dashed",
444
+ "description": "是否虚线",
445
+ "default": "false",
330
446
  "type": "boolean"
331
447
  },
332
448
  {
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"
449
+ "name": "type",
450
+ "description": "水平|垂直|放射类型,注意radiation是个特殊的类型,该样式是特定的",
451
+ "default": "\"horizontal\"",
452
+ "type": "dividerType"
347
453
  },
348
454
  {
349
- "name": "showExportButton",
350
- "description": "是否显示导出按钮",
351
- "type": "boolean"
455
+ "name": "proportion",
456
+ "description": "当用于数值显示的情况,eg: 如果要展示\"1/3\",那么传入就是[1,3], 该字段只适配于 type 为 radiation",
457
+ "attribute": false,
458
+ "type": "[number, number]"
352
459
  },
353
460
  {
354
- "name": "exportFileName",
355
- "description": "导出的文件名",
356
- "default": "download.txt",
357
- "type": "string"
461
+ "name": "dividerStyle",
462
+ "description": "分割线自定义样式",
463
+ "attribute": false,
464
+ "type": "CSSProperties"
358
465
  }
359
466
  ],
360
467
  "events": [],
361
468
  "slots": [],
362
469
  "methods": [],
363
- "parts": [],
364
- "description": "代码展示",
365
- "category": "display-component"
470
+ "parts": [],
471
+ "description": "分割线",
472
+ "category": "container-display"
366
473
  },
367
474
  {
368
- "name": "eo-alert",
369
- "alias": [
370
- "presentational.general-alert"
371
- ],
475
+ "name": "eo-info-card-item",
372
476
  "properties": [
373
477
  {
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"
478
+ "name": "cardTitle",
479
+ "description": "title",
480
+ "type": "string"
388
481
  },
389
482
  {
390
- "name": "closable",
391
- "description": "是否显示关闭按钮",
392
- "type": "boolean"
483
+ "name": "description",
484
+ "description": "description",
485
+ "type": "string"
393
486
  },
394
487
  {
395
- "name": "localStorageKey",
396
- "description": "以该值和页面 url 作为命名空间,决定是否显示该警告提示",
488
+ "name": "url",
489
+ "description": "链接地址",
397
490
  "type": "string"
398
491
  },
399
492
  {
400
- "name": "disableUrlNamespace",
401
- "description": "关闭后仅以 `localStorageKey` 作为命名空间",
402
- "type": "boolean"
493
+ "name": "cardIcon",
494
+ "description": "图标",
495
+ "attribute": false,
496
+ "type": "IconAvatar"
403
497
  },
404
498
  {
405
- "name": "textContent",
406
- "type": "string",
407
- "description": "文本内容"
408
- }
409
- ],
410
- "events": [],
411
- "slots": [
412
- {
413
- "name": null,
414
- "description": "内容区"
499
+ "name": "detailList",
500
+ "description": "详细列表",
501
+ "attribute": false,
502
+ "type": "InfoCardDetail[]"
415
503
  },
416
504
  {
417
- "name": "title",
418
- "description": "标题"
505
+ "name": "target",
506
+ "description": "链接跳转目标",
507
+ "type": "LinkProps[\"target\"]"
419
508
  }
420
509
  ],
510
+ "events": [],
511
+ "slots": [],
421
512
  "methods": [],
422
513
  "parts": [],
423
- "description": "告警提示",
424
- "category": "display-component"
514
+ "description": "信息卡片",
515
+ "category": "card-info"
425
516
  },
426
517
  {
427
518
  "name": "eo-humanize-time",
@@ -489,89 +580,90 @@
489
580
  "description": "人性化时间展示,可显示完整时间、相对时间、未来时间、耗时等,支持自定义输入值格式和输出格式。"
490
581
  },
491
582
  {
492
- "name": "eo-info-card-item",
583
+ "name": "eo-loading-step",
493
584
  "properties": [
494
585
  {
495
- "name": "cardTitle",
496
- "description": "title",
497
- "type": "string"
586
+ "name": "visible",
587
+ "description": "是否可见",
588
+ "type": "boolean"
498
589
  },
499
590
  {
500
- "name": "description",
501
- "description": "description",
591
+ "name": "width",
592
+ "description": "宽度",
502
593
  "type": "string"
503
594
  },
504
595
  {
505
- "name": "url",
506
- "description": "链接地址",
596
+ "name": "stepTitle",
597
+ "description": "步骤标题",
507
598
  "type": "string"
508
599
  },
509
600
  {
510
- "name": "cardIcon",
511
- "description": "图标",
601
+ "name": "stepList",
602
+ "description": "步骤列表",
512
603
  "attribute": false,
513
- "type": "IconAvatar"
604
+ "type": "StepItem[]"
514
605
  },
515
606
  {
516
- "name": "detailList",
517
- "description": "详细列表",
518
- "attribute": false,
519
- "type": "InfoCardDetail[]"
607
+ "name": "curStep",
608
+ "description": "当前步骤",
609
+ "type": "string"
610
+ }
611
+ ],
612
+ "events": [
613
+ {
614
+ "name": "open",
615
+ "description": "打开事件",
616
+ "detail": {
617
+ "type": "void"
618
+ }
520
619
  },
521
620
  {
522
- "name": "target",
523
- "description": "链接跳转目标",
524
- "type": "LinkProps[\"target\"]"
621
+ "name": "close",
622
+ "description": "关闭事件",
623
+ "detail": {
624
+ "type": "void"
625
+ }
525
626
  }
526
627
  ],
527
- "events": [],
528
628
  "slots": [],
529
- "methods": [],
629
+ "methods": [
630
+ {
631
+ "name": "open",
632
+ "params": [],
633
+ "description": "打开",
634
+ "returns": {}
635
+ },
636
+ {
637
+ "name": "close",
638
+ "params": [],
639
+ "description": "关闭",
640
+ "returns": {}
641
+ }
642
+ ],
530
643
  "parts": [],
531
- "description": "信息卡片",
532
- "category": "card-info"
644
+ "description": "加载步骤框"
533
645
  },
534
646
  {
535
- "name": "eo-divider",
647
+ "name": "eo-current-time",
536
648
  "properties": [
537
649
  {
538
- "name": "orientation",
539
- "description": "标题位置,在horizontal类型的分割线中使用",
540
- "default": "center",
541
- "attribute": false,
542
- "type": "OrientationType"
543
- },
544
- {
545
- "name": "dashed",
546
- "description": "是否虚线",
547
- "default": "false",
548
- "type": "boolean"
549
- },
550
- {
551
- "name": "type",
552
- "description": "水平|垂直|放射类型,注意radiation是个特殊的类型,该样式是特定的",
553
- "default": "\"horizontal\"",
554
- "type": "dividerType"
555
- },
556
- {
557
- "name": "proportion",
558
- "description": "当用于数值显示的情况,eg: 如果要展示\"1/3\",那么传入就是[1,3], 该字段只适配于 type 为 radiation",
559
- "attribute": false,
560
- "type": "[number, number]"
650
+ "name": "format",
651
+ "description": "时间格式",
652
+ "default": "\"YYYY-MM-DD HH:mm:ss\"",
653
+ "type": "string"
561
654
  },
562
655
  {
563
- "name": "dividerStyle",
564
- "description": "分割线自定义样式",
656
+ "name": "icon",
657
+ "description": "前置图标",
565
658
  "attribute": false,
566
- "type": "CSSProperties"
659
+ "type": "GeneralIconProps"
567
660
  }
568
661
  ],
569
662
  "events": [],
570
663
  "slots": [],
571
664
  "methods": [],
572
665
  "parts": [],
573
- "description": "分割线",
574
- "category": "container-display"
666
+ "description": "构件 `eo-current-time`"
575
667
  },
576
668
  {
577
669
  "name": "eo-statistics-card",
@@ -663,92 +755,6 @@
663
755
  "parts": [],
664
756
  "description": "统计卡片"
665
757
  },
666
- {
667
- "name": "eo-loading-step",
668
- "properties": [
669
- {
670
- "name": "visible",
671
- "description": "是否可见",
672
- "type": "boolean"
673
- },
674
- {
675
- "name": "width",
676
- "description": "宽度",
677
- "type": "string"
678
- },
679
- {
680
- "name": "stepTitle",
681
- "description": "步骤标题",
682
- "type": "string"
683
- },
684
- {
685
- "name": "stepList",
686
- "description": "步骤列表",
687
- "attribute": false,
688
- "type": "StepItem[]"
689
- },
690
- {
691
- "name": "curStep",
692
- "description": "当前步骤",
693
- "type": "string"
694
- }
695
- ],
696
- "events": [
697
- {
698
- "name": "open",
699
- "description": "打开事件",
700
- "detail": {
701
- "type": "void"
702
- }
703
- },
704
- {
705
- "name": "close",
706
- "description": "关闭事件",
707
- "detail": {
708
- "type": "void"
709
- }
710
- }
711
- ],
712
- "slots": [],
713
- "methods": [
714
- {
715
- "name": "open",
716
- "params": [],
717
- "description": "打开",
718
- "returns": {}
719
- },
720
- {
721
- "name": "close",
722
- "params": [],
723
- "description": "关闭",
724
- "returns": {}
725
- }
726
- ],
727
- "parts": [],
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
758
  {
753
759
  "name": "eo-carousel-text",
754
760
  "properties": [