@next-bricks/presentational 1.6.0 → 1.6.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.
@@ -64,117 +64,6 @@
64
64
  "description": "通用描述列表构件",
65
65
  "category": "text"
66
66
  },
67
- {
68
- "name": "eo-alert",
69
- "alias": [
70
- "presentational.general-alert"
71
- ],
72
- "properties": [
73
- {
74
- "name": "type",
75
- "description": "警告类型",
76
- "attribute": false,
77
- "type": "AlertType"
78
- },
79
- {
80
- "name": "hasTitle",
81
- "description": "是否显示标题。开启后,可以使用 `title` 插槽",
82
- "type": "boolean"
83
- },
84
- {
85
- "name": "showIcon",
86
- "description": "是否显示提示图标",
87
- "type": "boolean"
88
- },
89
- {
90
- "name": "closable",
91
- "description": "是否显示关闭按钮",
92
- "type": "boolean"
93
- },
94
- {
95
- "name": "localStorageKey",
96
- "description": "以该值和页面 url 作为命名空间,决定是否显示该警告提示",
97
- "type": "string"
98
- },
99
- {
100
- "name": "disableUrlNamespace",
101
- "description": "关闭后仅以 `localStorageKey` 作为命名空间",
102
- "type": "boolean"
103
- }
104
- ],
105
- "events": [],
106
- "slots": [
107
- {
108
- "name": null,
109
- "description": "内容区"
110
- },
111
- {
112
- "name": "title",
113
- "description": "标题"
114
- }
115
- ],
116
- "methods": [],
117
- "parts": [],
118
- "description": "告警提示",
119
- "category": "display-component"
120
- },
121
- {
122
- "name": "eo-code-display",
123
- "alias": [
124
- "presentational.code-display"
125
- ],
126
- "properties": [
127
- {
128
- "name": "value",
129
- "description": "代码内容",
130
- "default": "\"\"",
131
- "type": "string"
132
- },
133
- {
134
- "name": "language",
135
- "description": "语言,具体查阅 [Supported languages](https://prismjs.com/#supported-languages)",
136
- "type": "string"
137
- },
138
- {
139
- "name": "hideLineNumber",
140
- "description": "是否隐藏行号",
141
- "type": "boolean"
142
- },
143
- {
144
- "name": "maxLines",
145
- "description": "最大行数",
146
- "type": "number"
147
- },
148
- {
149
- "name": "minLines",
150
- "description": "最小行数",
151
- "type": "number"
152
- },
153
- {
154
- "name": "showCopyButton",
155
- "description": "是否显示复制按钮",
156
- "default": "true",
157
- "type": "boolean"
158
- },
159
- {
160
- "name": "showExportButton",
161
- "description": "是否显示导出按钮",
162
- "type": "boolean"
163
- },
164
- {
165
- "name": "exportFileName",
166
- "description": "导出的文件名",
167
- "default": "download.txt",
168
- "type": "string"
169
- }
170
- ],
171
- "events": [],
172
- "slots": [],
173
- "methods": [],
174
- "parts": [],
175
- "description": "代码展示",
176
- "category": "display-component"
177
- },
178
67
  {
179
68
  "name": "eo-pagination",
180
69
  "properties": [
@@ -225,120 +114,6 @@
225
114
  "description": "分页",
226
115
  "category": "navigation"
227
116
  },
228
- {
229
- "name": "eo-card-item",
230
- "properties": [
231
- {
232
- "name": "hasHeader",
233
- "description": "是否有顶部小标题",
234
- "type": "boolean"
235
- },
236
- {
237
- "name": "cardTitle",
238
- "description": "卡片标题",
239
- "type": "string"
240
- },
241
- {
242
- "name": "description",
243
- "description": "描述信息",
244
- "type": "string"
245
- },
246
- {
247
- "name": "auxiliaryText",
248
- "description": "顶部辅助文字",
249
- "type": "string"
250
- },
251
- {
252
- "name": "avatar",
253
- "description": "图标",
254
- "attribute": false,
255
- "type": "IconAvatar | ImgAvatar"
256
- },
257
- {
258
- "name": "href",
259
- "description": "设置 `href` 时将使用原生 `<a>` 标签,通常用于外链的跳转",
260
- "type": "LinkProps[\"href\"]"
261
- },
262
- {
263
- "name": "url",
264
- "description": "链接地址",
265
- "attribute": false,
266
- "type": "LinkProps[\"url\"]"
267
- },
268
- {
269
- "name": "target",
270
- "description": "链接跳转目标",
271
- "type": "LinkProps[\"target\"]"
272
- },
273
- {
274
- "name": "actions",
275
- "description": "操作按钮组",
276
- "attribute": false,
277
- "type": "ActionType[]"
278
- },
279
- {
280
- "name": "styleType",
281
- "description": "卡片样式类型",
282
- "type": "\"grayish\""
283
- },
284
- {
285
- "name": "hasCover",
286
- "description": "是否使用卡片封面",
287
- "type": "boolean"
288
- },
289
- {
290
- "name": "coverImage",
291
- "description": "卡片封面背景图片",
292
- "attribute": false,
293
- "type": "string"
294
- },
295
- {
296
- "name": "coverColor",
297
- "description": "卡片封面背景颜色(使用纯色背景)",
298
- "attribute": false,
299
- "type": "string"
300
- },
301
- {
302
- "name": "coverImageSize",
303
- "description": "卡片封面图片尺寸 ,配置参考 https://developer.mozilla.org/zh-CN/docs/Web/CSS/background-size",
304
- "attribute": false,
305
- "type": "React.CSSProperties[\"backgroundSize\"]"
306
- },
307
- {
308
- "name": "avatarPosition",
309
- "description": "图标是否放置在卡片封面",
310
- "type": "\"content\" | \"cover\""
311
- },
312
- {
313
- "name": "tagConfig",
314
- "attribute": false,
315
- "type": "TagConfig"
316
- }
317
- ],
318
- "events": [
319
- {
320
- "name": "tag.click",
321
- "description": "徽标点击事件",
322
- "detail": {
323
- "type": "void"
324
- }
325
- }
326
- ],
327
- "slots": [
328
- {
329
- "name": "expanded-area-1",
330
- "description": "扩展区域 1,通常放置标签信息"
331
- },
332
- {
333
- "name": "expanded-area-2",
334
- "description": "扩展区域 2,通常放置操作和其他属性信息(图标/头像/小字描述/统计信息)"
335
- }
336
- ],
337
- "methods": [],
338
- "parts": [],
339
- "description": "信息类卡片 —— 通用卡片",
340
- "category": "card-info"
341
- },
342
117
  {
343
118
  "name": "eo-divider",
344
119
  "properties": [
@@ -381,6 +156,60 @@
381
156
  "description": "分割线",
382
157
  "category": "container-display"
383
158
  },
159
+ {
160
+ "name": "eo-alert",
161
+ "alias": [
162
+ "presentational.general-alert"
163
+ ],
164
+ "properties": [
165
+ {
166
+ "name": "type",
167
+ "description": "警告类型",
168
+ "attribute": false,
169
+ "type": "AlertType"
170
+ },
171
+ {
172
+ "name": "hasTitle",
173
+ "description": "是否显示标题。开启后,可以使用 `title` 插槽",
174
+ "type": "boolean"
175
+ },
176
+ {
177
+ "name": "showIcon",
178
+ "description": "是否显示提示图标",
179
+ "type": "boolean"
180
+ },
181
+ {
182
+ "name": "closable",
183
+ "description": "是否显示关闭按钮",
184
+ "type": "boolean"
185
+ },
186
+ {
187
+ "name": "localStorageKey",
188
+ "description": "以该值和页面 url 作为命名空间,决定是否显示该警告提示",
189
+ "type": "string"
190
+ },
191
+ {
192
+ "name": "disableUrlNamespace",
193
+ "description": "关闭后仅以 `localStorageKey` 作为命名空间",
194
+ "type": "boolean"
195
+ }
196
+ ],
197
+ "events": [],
198
+ "slots": [
199
+ {
200
+ "name": null,
201
+ "description": "内容区"
202
+ },
203
+ {
204
+ "name": "title",
205
+ "description": "标题"
206
+ }
207
+ ],
208
+ "methods": [],
209
+ "parts": [],
210
+ "description": "告警提示",
211
+ "category": "display-component"
212
+ },
384
213
  {
385
214
  "name": "eo-info-card-item",
386
215
  "properties": [
@@ -478,6 +307,63 @@
478
307
  "description": "人性化时间展示",
479
308
  "category": "text"
480
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
+ },
481
367
  {
482
368
  "name": "eo-statistics-card",
483
369
  "properties": [
@@ -632,6 +518,120 @@
632
518
  "parts": [],
633
519
  "description": "加载步骤框"
634
520
  },
521
+ {
522
+ "name": "eo-card-item",
523
+ "properties": [
524
+ {
525
+ "name": "hasHeader",
526
+ "description": "是否有顶部小标题",
527
+ "type": "boolean"
528
+ },
529
+ {
530
+ "name": "cardTitle",
531
+ "description": "卡片标题",
532
+ "type": "string"
533
+ },
534
+ {
535
+ "name": "description",
536
+ "description": "描述信息",
537
+ "type": "string"
538
+ },
539
+ {
540
+ "name": "auxiliaryText",
541
+ "description": "顶部辅助文字",
542
+ "type": "string"
543
+ },
544
+ {
545
+ "name": "avatar",
546
+ "description": "图标",
547
+ "attribute": false,
548
+ "type": "IconAvatar | ImgAvatar"
549
+ },
550
+ {
551
+ "name": "href",
552
+ "description": "设置 `href` 时将使用原生 `<a>` 标签,通常用于外链的跳转",
553
+ "type": "LinkProps[\"href\"]"
554
+ },
555
+ {
556
+ "name": "url",
557
+ "description": "链接地址",
558
+ "attribute": false,
559
+ "type": "LinkProps[\"url\"]"
560
+ },
561
+ {
562
+ "name": "target",
563
+ "description": "链接跳转目标",
564
+ "type": "LinkProps[\"target\"]"
565
+ },
566
+ {
567
+ "name": "actions",
568
+ "description": "操作按钮组",
569
+ "attribute": false,
570
+ "type": "ActionType[]"
571
+ },
572
+ {
573
+ "name": "styleType",
574
+ "description": "卡片样式类型",
575
+ "type": "\"grayish\""
576
+ },
577
+ {
578
+ "name": "hasCover",
579
+ "description": "是否使用卡片封面",
580
+ "type": "boolean"
581
+ },
582
+ {
583
+ "name": "coverImage",
584
+ "description": "卡片封面背景图片",
585
+ "attribute": false,
586
+ "type": "string"
587
+ },
588
+ {
589
+ "name": "coverColor",
590
+ "description": "卡片封面背景颜色(使用纯色背景)",
591
+ "attribute": false,
592
+ "type": "string"
593
+ },
594
+ {
595
+ "name": "coverImageSize",
596
+ "description": "卡片封面图片尺寸 ,配置参考 https://developer.mozilla.org/zh-CN/docs/Web/CSS/background-size",
597
+ "attribute": false,
598
+ "type": "React.CSSProperties[\"backgroundSize\"]"
599
+ },
600
+ {
601
+ "name": "avatarPosition",
602
+ "description": "图标是否放置在卡片封面",
603
+ "type": "\"content\" | \"cover\""
604
+ },
605
+ {
606
+ "name": "tagConfig",
607
+ "attribute": false,
608
+ "type": "TagConfig"
609
+ }
610
+ ],
611
+ "events": [
612
+ {
613
+ "name": "tag.click",
614
+ "description": "徽标点击事件",
615
+ "detail": {
616
+ "type": "void"
617
+ }
618
+ }
619
+ ],
620
+ "slots": [
621
+ {
622
+ "name": "expanded-area-1",
623
+ "description": "扩展区域 1,通常放置标签信息"
624
+ },
625
+ {
626
+ "name": "expanded-area-2",
627
+ "description": "扩展区域 2,通常放置操作和其他属性信息(图标/头像/小字描述/统计信息)"
628
+ }
629
+ ],
630
+ "methods": [],
631
+ "parts": [],
632
+ "description": "信息类卡片 —— 通用卡片",
633
+ "category": "card-info"
634
+ },
635
635
  {
636
636
  "name": "eo-current-time",
637
637
  "properties": [