@next-bricks/presentational 1.20.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": [
@@ -250,127 +430,46 @@
250
430
  "category": "card-info"
251
431
  },
252
432
  {
253
- "name": "eo-pagination",
254
- "properties": [
255
- {
256
- "name": "type",
257
- "description": "",
258
- "default": "\"page\"",
259
- "type": "\"page\" | \"token\""
260
- },
261
- {
262
- "name": "total",
263
- "description": "数据总数",
264
- "default": "0",
265
- "type": "number"
266
- },
267
- {
268
- "name": "page",
269
- "description": "当前页数",
270
- "default": "1",
271
- "type": "number"
272
- },
273
- {
274
- "name": "pageSize",
275
- "description": "每页条数",
276
- "default": "20",
277
- "type": "number"
278
- },
279
- {
280
- "name": "pageSizeOptions",
281
- "description": "指定每页可以显示多少条",
282
- "default": "[10, 20, 50, 100]",
283
- "attribute": false,
284
- "type": "number[]"
285
- },
286
- {
287
- "name": "showSizeChanger",
288
- "description": "是否展示`pageSize`分页器",
289
- "default": "true",
290
- "type": "boolean"
291
- },
292
- {
293
- "name": "nextToken",
294
- "type": "string"
295
- },
296
- {
297
- "name": "previousToken",
298
- "type": "string"
299
- }
300
- ],
301
- "events": [
302
- {
303
- "name": "change",
304
- "description": "页码及每页条数改变事件",
305
- "detail": {
306
- "type": "ChangeDetail"
307
- }
308
- }
309
- ],
310
- "slots": [],
311
- "methods": [],
312
- "parts": [],
313
- "description": "分页",
314
- "category": "navigation"
315
- },
316
- {
317
- "name": "eo-alert",
318
- "alias": [
319
- "presentational.general-alert"
320
- ],
433
+ "name": "eo-divider",
321
434
  "properties": [
322
435
  {
323
- "name": "type",
324
- "description": "警告类型",
436
+ "name": "orientation",
437
+ "description": "标题位置,在horizontal类型的分割线中使用",
438
+ "default": "center",
325
439
  "attribute": false,
326
- "type": "AlertType"
327
- },
328
- {
329
- "name": "hasTitle",
330
- "description": "是否显示标题。开启后,可以使用 `title` 插槽",
331
- "type": "boolean"
332
- },
333
- {
334
- "name": "showIcon",
335
- "description": "是否显示提示图标",
336
- "type": "boolean"
337
- },
338
- {
339
- "name": "closable",
340
- "description": "是否显示关闭按钮",
341
- "type": "boolean"
342
- },
343
- {
344
- "name": "localStorageKey",
345
- "description": "以该值和页面 url 作为命名空间,决定是否显示该警告提示",
346
- "type": "string"
440
+ "type": "OrientationType"
347
441
  },
348
442
  {
349
- "name": "disableUrlNamespace",
350
- "description": "关闭后仅以 `localStorageKey` 作为命名空间",
443
+ "name": "dashed",
444
+ "description": "是否虚线",
445
+ "default": "false",
351
446
  "type": "boolean"
352
447
  },
353
448
  {
354
- "name": "textContent",
355
- "type": "string",
356
- "description": "文本内容"
357
- }
358
- ],
359
- "events": [],
360
- "slots": [
449
+ "name": "type",
450
+ "description": "水平|垂直|放射类型,注意radiation是个特殊的类型,该样式是特定的",
451
+ "default": "\"horizontal\"",
452
+ "type": "dividerType"
453
+ },
361
454
  {
362
- "name": null,
363
- "description": "内容区"
455
+ "name": "proportion",
456
+ "description": "当用于数值显示的情况,eg: 如果要展示\"1/3\",那么传入就是[1,3], 该字段只适配于 type 为 radiation",
457
+ "attribute": false,
458
+ "type": "[number, number]"
364
459
  },
365
460
  {
366
- "name": "title",
367
- "description": "标题"
461
+ "name": "dividerStyle",
462
+ "description": "分割线自定义样式",
463
+ "attribute": false,
464
+ "type": "CSSProperties"
368
465
  }
369
466
  ],
467
+ "events": [],
468
+ "slots": [],
370
469
  "methods": [],
371
470
  "parts": [],
372
- "description": "告警提示",
373
- "category": "display-component"
471
+ "description": "分割线",
472
+ "category": "container-display"
374
473
  },
375
474
  {
376
475
  "name": "eo-info-card-item",
@@ -415,48 +514,6 @@
415
514
  "description": "信息卡片",
416
515
  "category": "card-info"
417
516
  },
418
- {
419
- "name": "eo-divider",
420
- "properties": [
421
- {
422
- "name": "orientation",
423
- "description": "标题位置,在horizontal类型的分割线中使用",
424
- "default": "center",
425
- "attribute": false,
426
- "type": "OrientationType"
427
- },
428
- {
429
- "name": "dashed",
430
- "description": "是否虚线",
431
- "default": "false",
432
- "type": "boolean"
433
- },
434
- {
435
- "name": "type",
436
- "description": "水平|垂直|放射类型,注意radiation是个特殊的类型,该样式是特定的",
437
- "default": "\"horizontal\"",
438
- "type": "dividerType"
439
- },
440
- {
441
- "name": "proportion",
442
- "description": "当用于数值显示的情况,eg: 如果要展示\"1/3\",那么传入就是[1,3], 该字段只适配于 type 为 radiation",
443
- "attribute": false,
444
- "type": "[number, number]"
445
- },
446
- {
447
- "name": "dividerStyle",
448
- "description": "分割线自定义样式",
449
- "attribute": false,
450
- "type": "CSSProperties"
451
- }
452
- ],
453
- "events": [],
454
- "slots": [],
455
- "methods": [],
456
- "parts": [],
457
- "description": "分割线",
458
- "category": "container-display"
459
- },
460
517
  {
461
518
  "name": "eo-humanize-time",
462
519
  "alias": [
@@ -523,61 +580,90 @@
523
580
  "description": "人性化时间展示,可显示完整时间、相对时间、未来时间、耗时等,支持自定义输入值格式和输出格式。"
524
581
  },
525
582
  {
526
- "name": "eo-code-display",
527
- "alias": [
528
- "presentational.code-display"
529
- ],
583
+ "name": "eo-loading-step",
530
584
  "properties": [
531
585
  {
532
- "name": "value",
533
- "description": "代码内容",
534
- "default": "\"\"",
535
- "type": "string"
586
+ "name": "visible",
587
+ "description": "是否可见",
588
+ "type": "boolean"
536
589
  },
537
590
  {
538
- "name": "language",
539
- "description": "语言,具体查阅 [Supported languages](https://prismjs.com/#supported-languages)",
591
+ "name": "width",
592
+ "description": "宽度",
540
593
  "type": "string"
541
594
  },
542
595
  {
543
- "name": "hideLineNumber",
544
- "description": "是否隐藏行号",
545
- "type": "boolean"
596
+ "name": "stepTitle",
597
+ "description": "步骤标题",
598
+ "type": "string"
546
599
  },
547
600
  {
548
- "name": "maxLines",
549
- "description": "最大行数",
550
- "type": "number"
601
+ "name": "stepList",
602
+ "description": "步骤列表",
603
+ "attribute": false,
604
+ "type": "StepItem[]"
551
605
  },
552
606
  {
553
- "name": "minLines",
554
- "description": "最小行数",
555
- "type": "number"
556
- },
607
+ "name": "curStep",
608
+ "description": "当前步骤",
609
+ "type": "string"
610
+ }
611
+ ],
612
+ "events": [
557
613
  {
558
- "name": "showCopyButton",
559
- "description": "是否显示复制按钮",
560
- "default": "true",
561
- "type": "boolean"
614
+ "name": "open",
615
+ "description": "打开事件",
616
+ "detail": {
617
+ "type": "void"
618
+ }
562
619
  },
563
620
  {
564
- "name": "showExportButton",
565
- "description": "是否显示导出按钮",
566
- "type": "boolean"
621
+ "name": "close",
622
+ "description": "关闭事件",
623
+ "detail": {
624
+ "type": "void"
625
+ }
626
+ }
627
+ ],
628
+ "slots": [],
629
+ "methods": [
630
+ {
631
+ "name": "open",
632
+ "params": [],
633
+ "description": "打开",
634
+ "returns": {}
567
635
  },
568
636
  {
569
- "name": "exportFileName",
570
- "description": "导出的文件名",
571
- "default": "download.txt",
637
+ "name": "close",
638
+ "params": [],
639
+ "description": "关闭",
640
+ "returns": {}
641
+ }
642
+ ],
643
+ "parts": [],
644
+ "description": "加载步骤框"
645
+ },
646
+ {
647
+ "name": "eo-current-time",
648
+ "properties": [
649
+ {
650
+ "name": "format",
651
+ "description": "时间格式",
652
+ "default": "\"YYYY-MM-DD HH:mm:ss\"",
572
653
  "type": "string"
654
+ },
655
+ {
656
+ "name": "icon",
657
+ "description": "前置图标",
658
+ "attribute": false,
659
+ "type": "GeneralIconProps"
573
660
  }
574
661
  ],
575
662
  "events": [],
576
663
  "slots": [],
577
664
  "methods": [],
578
665
  "parts": [],
579
- "description": "代码展示",
580
- "category": "display-component"
666
+ "description": "构件 `eo-current-time`"
581
667
  },
582
668
  {
583
669
  "name": "eo-statistics-card",
@@ -669,92 +755,6 @@
669
755
  "parts": [],
670
756
  "description": "统计卡片"
671
757
  },
672
- {
673
- "name": "eo-loading-step",
674
- "properties": [
675
- {
676
- "name": "visible",
677
- "description": "是否可见",
678
- "type": "boolean"
679
- },
680
- {
681
- "name": "width",
682
- "description": "宽度",
683
- "type": "string"
684
- },
685
- {
686
- "name": "stepTitle",
687
- "description": "步骤标题",
688
- "type": "string"
689
- },
690
- {
691
- "name": "stepList",
692
- "description": "步骤列表",
693
- "attribute": false,
694
- "type": "StepItem[]"
695
- },
696
- {
697
- "name": "curStep",
698
- "description": "当前步骤",
699
- "type": "string"
700
- }
701
- ],
702
- "events": [
703
- {
704
- "name": "open",
705
- "description": "打开事件",
706
- "detail": {
707
- "type": "void"
708
- }
709
- },
710
- {
711
- "name": "close",
712
- "description": "关闭事件",
713
- "detail": {
714
- "type": "void"
715
- }
716
- }
717
- ],
718
- "slots": [],
719
- "methods": [
720
- {
721
- "name": "open",
722
- "params": [],
723
- "description": "打开",
724
- "returns": {}
725
- },
726
- {
727
- "name": "close",
728
- "params": [],
729
- "description": "关闭",
730
- "returns": {}
731
- }
732
- ],
733
- "parts": [],
734
- "description": "加载步骤框"
735
- },
736
- {
737
- "name": "eo-current-time",
738
- "properties": [
739
- {
740
- "name": "format",
741
- "description": "时间格式",
742
- "default": "\"YYYY-MM-DD HH:mm:ss\"",
743
- "type": "string"
744
- },
745
- {
746
- "name": "icon",
747
- "description": "前置图标",
748
- "attribute": false,
749
- "type": "GeneralIconProps"
750
- }
751
- ],
752
- "events": [],
753
- "slots": [],
754
- "methods": [],
755
- "parts": [],
756
- "description": "构件 `eo-current-time`"
757
- },
758
758
  {
759
759
  "name": "eo-carousel-text",
760
760
  "properties": [