@next-bricks/presentational 1.18.0 → 1.20.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": [
@@ -349,6 +169,12 @@
349
169
  "description": "图标是否放置在卡片封面",
350
170
  "type": "\"content\" | \"cover\""
351
171
  },
172
+ {
173
+ "name": "avatarPlacement",
174
+ "description": "图标位置,在 avatarPosition 不为 cover 时有效",
175
+ "default": "\"left\"",
176
+ "type": "\"left\" | \"title-left\""
177
+ },
352
178
  {
353
179
  "name": "tagConfig",
354
180
  "attribute": false,
@@ -359,6 +185,11 @@
359
185
  "description": "卡片边框颜色",
360
186
  "type": "string"
361
187
  },
188
+ {
189
+ "name": "stacked",
190
+ "description": "是否堆叠",
191
+ "type": "boolean"
192
+ },
362
193
  {
363
194
  "name": "cardStyle",
364
195
  "description": "卡片样式",
@@ -419,46 +250,127 @@
419
250
  "category": "card-info"
420
251
  },
421
252
  {
422
- "name": "eo-divider",
253
+ "name": "eo-pagination",
423
254
  "properties": [
424
255
  {
425
- "name": "orientation",
426
- "description": "标题位置,在horizontal类型的分割线中使用",
427
- "default": "center",
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]",
428
283
  "attribute": false,
429
- "type": "OrientationType"
284
+ "type": "number[]"
430
285
  },
431
286
  {
432
- "name": "dashed",
433
- "description": "是否虚线",
434
- "default": "false",
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
+ ],
321
+ "properties": [
322
+ {
323
+ "name": "type",
324
+ "description": "警告类型",
325
+ "attribute": false,
326
+ "type": "AlertType"
327
+ },
328
+ {
329
+ "name": "hasTitle",
330
+ "description": "是否显示标题。开启后,可以使用 `title` 插槽",
435
331
  "type": "boolean"
436
332
  },
437
333
  {
438
- "name": "type",
439
- "description": "水平|垂直|放射类型,注意radiation是个特殊的类型,该样式是特定的",
440
- "default": "\"horizontal\"",
441
- "type": "dividerType"
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"
347
+ },
348
+ {
349
+ "name": "disableUrlNamespace",
350
+ "description": "关闭后仅以 `localStorageKey` 作为命名空间",
351
+ "type": "boolean"
442
352
  },
443
353
  {
444
- "name": "proportion",
445
- "description": "当用于数值显示的情况,eg: 如果要展示\"1/3\",那么传入就是[1,3], 该字段只适配于 type 为 radiation",
446
- "attribute": false,
447
- "type": "[number, number]"
354
+ "name": "textContent",
355
+ "type": "string",
356
+ "description": "文本内容"
357
+ }
358
+ ],
359
+ "events": [],
360
+ "slots": [
361
+ {
362
+ "name": null,
363
+ "description": "内容区"
448
364
  },
449
365
  {
450
- "name": "dividerStyle",
451
- "description": "分割线自定义样式",
452
- "attribute": false,
453
- "type": "CSSProperties"
366
+ "name": "title",
367
+ "description": "标题"
454
368
  }
455
369
  ],
456
- "events": [],
457
- "slots": [],
458
370
  "methods": [],
459
371
  "parts": [],
460
- "description": "分割线",
461
- "category": "container-display"
372
+ "description": "告警提示",
373
+ "category": "display-component"
462
374
  },
463
375
  {
464
376
  "name": "eo-info-card-item",
@@ -503,6 +415,48 @@
503
415
  "description": "信息卡片",
504
416
  "category": "card-info"
505
417
  },
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
+ },
506
460
  {
507
461
  "name": "eo-humanize-time",
508
462
  "alias": [
@@ -568,6 +522,63 @@
568
522
  "parts": [],
569
523
  "description": "人性化时间展示,可显示完整时间、相对时间、未来时间、耗时等,支持自定义输入值格式和输出格式。"
570
524
  },
525
+ {
526
+ "name": "eo-code-display",
527
+ "alias": [
528
+ "presentational.code-display"
529
+ ],
530
+ "properties": [
531
+ {
532
+ "name": "value",
533
+ "description": "代码内容",
534
+ "default": "\"\"",
535
+ "type": "string"
536
+ },
537
+ {
538
+ "name": "language",
539
+ "description": "语言,具体查阅 [Supported languages](https://prismjs.com/#supported-languages)",
540
+ "type": "string"
541
+ },
542
+ {
543
+ "name": "hideLineNumber",
544
+ "description": "是否隐藏行号",
545
+ "type": "boolean"
546
+ },
547
+ {
548
+ "name": "maxLines",
549
+ "description": "最大行数",
550
+ "type": "number"
551
+ },
552
+ {
553
+ "name": "minLines",
554
+ "description": "最小行数",
555
+ "type": "number"
556
+ },
557
+ {
558
+ "name": "showCopyButton",
559
+ "description": "是否显示复制按钮",
560
+ "default": "true",
561
+ "type": "boolean"
562
+ },
563
+ {
564
+ "name": "showExportButton",
565
+ "description": "是否显示导出按钮",
566
+ "type": "boolean"
567
+ },
568
+ {
569
+ "name": "exportFileName",
570
+ "description": "导出的文件名",
571
+ "default": "download.txt",
572
+ "type": "string"
573
+ }
574
+ ],
575
+ "events": [],
576
+ "slots": [],
577
+ "methods": [],
578
+ "parts": [],
579
+ "description": "代码展示",
580
+ "category": "display-component"
581
+ },
571
582
  {
572
583
  "name": "eo-statistics-card",
573
584
  "properties": [
@@ -658,68 +669,6 @@
658
669
  "parts": [],
659
670
  "description": "统计卡片"
660
671
  },
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
672
  {
724
673
  "name": "eo-loading-step",
725
674
  "properties": [
@@ -783,6 +732,68 @@
783
732
  ],
784
733
  "parts": [],
785
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
+ {
759
+ "name": "eo-carousel-text",
760
+ "properties": [
761
+ {
762
+ "name": "text",
763
+ "description": "展示内容",
764
+ "default": "\"\"",
765
+ "type": "string"
766
+ },
767
+ {
768
+ "name": "containerWidth",
769
+ "description": "容器宽度",
770
+ "default": "\"100%\"",
771
+ "type": "CSSProperties[\"width\"]"
772
+ },
773
+ {
774
+ "name": "fontSize",
775
+ "description": "字体大小",
776
+ "default": "\"var(--normal-font-size)\"",
777
+ "type": "CSSProperties[\"fontSize\"]"
778
+ },
779
+ {
780
+ "name": "fontColor",
781
+ "description": "字体颜色",
782
+ "default": "\"var(--text-color-default)\"",
783
+ "type": "CSSProperties[\"color\"]"
784
+ },
785
+ {
786
+ "name": "speed",
787
+ "description": "移动速度,单位 px/s",
788
+ "default": "100",
789
+ "type": "number"
790
+ }
791
+ ],
792
+ "events": [],
793
+ "slots": [],
794
+ "methods": [],
795
+ "parts": [],
796
+ "description": "构件 `eo-carousel-text`"
786
797
  }
787
798
  ],
788
799
  "providers": []