@next-bricks/presentational 1.15.1 → 1.16.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.
- package/dist/bricks.json +30 -30
- package/dist/chunks/7082.4f2c5022.js +2 -0
- package/dist/chunks/7082.4f2c5022.js.map +1 -0
- package/dist/chunks/eo-card-item.08f95a92.js +3 -0
- package/dist/chunks/eo-card-item.08f95a92.js.map +1 -0
- package/dist/chunks/{main.5f4e873f.js → main.09302c17.js} +2 -2
- package/dist/chunks/{main.5f4e873f.js.map → main.09302c17.js.map} +1 -1
- package/dist/examples.json +13 -13
- package/dist/index.7804e54f.js +2 -0
- package/dist/{index.104b9c0b.js.map → index.7804e54f.js.map} +1 -1
- package/dist/manifest.json +352 -332
- package/dist/types.json +326 -295
- package/dist-types/card-item/index.d.ts +11 -0
- package/docs/eo-card-item.md +61 -28
- package/package.json +2 -2
- package/dist/chunks/7082.5b5601f8.js +0 -2
- package/dist/chunks/7082.5b5601f8.js.map +0 -1
- package/dist/chunks/eo-card-item.c8ae419d.js +0 -3
- package/dist/chunks/eo-card-item.c8ae419d.js.map +0 -1
- package/dist/index.104b9c0b.js +0 -2
- /package/dist/chunks/{eo-card-item.c8ae419d.js.LICENSE.txt → eo-card-item.08f95a92.js.LICENSE.txt} +0 -0
package/dist/manifest.json
CHANGED
|
@@ -70,184 +70,220 @@
|
|
|
70
70
|
"category": "text"
|
|
71
71
|
},
|
|
72
72
|
{
|
|
73
|
-
"name": "eo-
|
|
74
|
-
"alias": [
|
|
75
|
-
"presentational.general-alert"
|
|
76
|
-
],
|
|
73
|
+
"name": "eo-card-item",
|
|
77
74
|
"properties": [
|
|
78
75
|
{
|
|
79
|
-
"name": "
|
|
80
|
-
"description": "
|
|
76
|
+
"name": "hasHeader",
|
|
77
|
+
"description": "是否有顶部小标题",
|
|
78
|
+
"type": "boolean"
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
"name": "cardTitle",
|
|
82
|
+
"description": "卡片标题",
|
|
83
|
+
"type": "string"
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
"name": "description",
|
|
87
|
+
"description": "描述信息",
|
|
88
|
+
"type": "string"
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
"name": "auxiliaryText",
|
|
92
|
+
"description": "顶部辅助文字",
|
|
93
|
+
"type": "string"
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
"name": "avatar",
|
|
97
|
+
"description": "图标",
|
|
81
98
|
"attribute": false,
|
|
82
|
-
"type": "
|
|
99
|
+
"type": "IconAvatar | ImgAvatar"
|
|
83
100
|
},
|
|
84
101
|
{
|
|
85
|
-
"name": "
|
|
86
|
-
"description": "
|
|
87
|
-
"type": "
|
|
102
|
+
"name": "href",
|
|
103
|
+
"description": "设置 `href` 时将使用原生 `<a>` 标签,通常用于外链的跳转",
|
|
104
|
+
"type": "LinkProps[\"href\"]"
|
|
88
105
|
},
|
|
89
106
|
{
|
|
90
|
-
"name": "
|
|
91
|
-
"description": "
|
|
92
|
-
"
|
|
107
|
+
"name": "url",
|
|
108
|
+
"description": "链接地址",
|
|
109
|
+
"attribute": false,
|
|
110
|
+
"type": "LinkProps[\"url\"]"
|
|
93
111
|
},
|
|
94
112
|
{
|
|
95
|
-
"name": "
|
|
96
|
-
"description": "
|
|
97
|
-
"type": "
|
|
113
|
+
"name": "target",
|
|
114
|
+
"description": "链接跳转目标",
|
|
115
|
+
"type": "LinkProps[\"target\"]"
|
|
98
116
|
},
|
|
99
117
|
{
|
|
100
|
-
"name": "
|
|
101
|
-
"description": "
|
|
102
|
-
"
|
|
118
|
+
"name": "actions",
|
|
119
|
+
"description": "操作按钮组",
|
|
120
|
+
"attribute": false,
|
|
121
|
+
"type": "ActionType[]"
|
|
103
122
|
},
|
|
104
123
|
{
|
|
105
|
-
"name": "
|
|
106
|
-
"description": "
|
|
124
|
+
"name": "showActions",
|
|
125
|
+
"description": "展示操作按钮组",
|
|
126
|
+
"default": "\"always\"",
|
|
127
|
+
"type": "\"always\" | \"hover\""
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
"name": "selected",
|
|
131
|
+
"description": "是否选中",
|
|
107
132
|
"type": "boolean"
|
|
108
133
|
},
|
|
109
134
|
{
|
|
110
|
-
"name": "
|
|
111
|
-
"
|
|
112
|
-
"
|
|
113
|
-
}
|
|
114
|
-
],
|
|
115
|
-
"events": [],
|
|
116
|
-
"slots": [
|
|
135
|
+
"name": "styleType",
|
|
136
|
+
"description": "卡片样式类型",
|
|
137
|
+
"type": "\"grayish\""
|
|
138
|
+
},
|
|
117
139
|
{
|
|
118
|
-
"name":
|
|
119
|
-
"description": "
|
|
140
|
+
"name": "hasCover",
|
|
141
|
+
"description": "是否使用卡片封面",
|
|
142
|
+
"type": "boolean"
|
|
120
143
|
},
|
|
121
144
|
{
|
|
122
|
-
"name": "
|
|
123
|
-
"description": "
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
"parts": [],
|
|
128
|
-
"description": "告警提示",
|
|
129
|
-
"category": "display-component"
|
|
130
|
-
},
|
|
131
|
-
{
|
|
132
|
-
"name": "eo-code-display",
|
|
133
|
-
"alias": [
|
|
134
|
-
"presentational.code-display"
|
|
135
|
-
],
|
|
136
|
-
"properties": [
|
|
145
|
+
"name": "coverImage",
|
|
146
|
+
"description": "卡片封面背景图片",
|
|
147
|
+
"attribute": false,
|
|
148
|
+
"type": "string"
|
|
149
|
+
},
|
|
137
150
|
{
|
|
138
|
-
"name": "
|
|
139
|
-
"description": "
|
|
140
|
-
"
|
|
151
|
+
"name": "coverColor",
|
|
152
|
+
"description": "卡片封面背景颜色(使用纯色背景)",
|
|
153
|
+
"attribute": false,
|
|
141
154
|
"type": "string"
|
|
142
155
|
},
|
|
143
156
|
{
|
|
144
|
-
"name": "
|
|
145
|
-
"description": "
|
|
157
|
+
"name": "coverImageSize",
|
|
158
|
+
"description": "卡片封面图片尺寸 ,配置参考 https://developer.mozilla.org/zh-CN/docs/Web/CSS/background-size",
|
|
159
|
+
"attribute": false,
|
|
160
|
+
"type": "React.CSSProperties[\"backgroundSize\"]"
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
"name": "avatarPosition",
|
|
164
|
+
"description": "图标是否放置在卡片封面",
|
|
165
|
+
"type": "\"content\" | \"cover\""
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
"name": "tagConfig",
|
|
169
|
+
"attribute": false,
|
|
170
|
+
"type": "TagConfig"
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
"name": "borderColor",
|
|
174
|
+
"description": "卡片边框颜色",
|
|
146
175
|
"type": "string"
|
|
147
176
|
},
|
|
148
177
|
{
|
|
149
|
-
"name": "
|
|
150
|
-
"description": "
|
|
151
|
-
"
|
|
178
|
+
"name": "cardStyle",
|
|
179
|
+
"description": "卡片样式",
|
|
180
|
+
"attribute": false,
|
|
181
|
+
"type": "React.CSSProperties"
|
|
152
182
|
},
|
|
153
183
|
{
|
|
154
|
-
"name": "
|
|
155
|
-
"description": "
|
|
156
|
-
"
|
|
184
|
+
"name": "cardBodyStyle",
|
|
185
|
+
"description": "卡片内容区域样式",
|
|
186
|
+
"attribute": false,
|
|
187
|
+
"type": "React.CSSProperties"
|
|
157
188
|
},
|
|
158
189
|
{
|
|
159
|
-
"name": "
|
|
160
|
-
"description": "
|
|
161
|
-
"
|
|
190
|
+
"name": "cardTitleStyle",
|
|
191
|
+
"description": "卡片标题样式",
|
|
192
|
+
"attribute": false,
|
|
193
|
+
"type": "React.CSSProperties"
|
|
162
194
|
},
|
|
163
195
|
{
|
|
164
|
-
"name": "
|
|
165
|
-
"
|
|
166
|
-
"
|
|
167
|
-
|
|
196
|
+
"name": "textContent",
|
|
197
|
+
"type": "string",
|
|
198
|
+
"description": "文本内容"
|
|
199
|
+
}
|
|
200
|
+
],
|
|
201
|
+
"events": [
|
|
202
|
+
{
|
|
203
|
+
"name": "tag.click",
|
|
204
|
+
"description": "徽标点击事件",
|
|
205
|
+
"detail": {
|
|
206
|
+
"type": "void"
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
],
|
|
210
|
+
"slots": [
|
|
211
|
+
{
|
|
212
|
+
"name": null,
|
|
213
|
+
"description": "内容区域,通常放置卡片自定义内容"
|
|
168
214
|
},
|
|
169
215
|
{
|
|
170
|
-
"name": "
|
|
171
|
-
"description": "
|
|
172
|
-
"type": "boolean"
|
|
216
|
+
"name": "expanded-area-1",
|
|
217
|
+
"description": "扩展区域 1,通常放置标签信息"
|
|
173
218
|
},
|
|
174
219
|
{
|
|
175
|
-
"name": "
|
|
176
|
-
"description": "
|
|
177
|
-
"default": "download.txt",
|
|
178
|
-
"type": "string"
|
|
220
|
+
"name": "expanded-area-2",
|
|
221
|
+
"description": "扩展区域 2,通常放置操作和其他属性信息(图标/头像/小字描述/统计信息)"
|
|
179
222
|
}
|
|
180
223
|
],
|
|
181
|
-
"events": [],
|
|
182
|
-
"slots": [],
|
|
183
224
|
"methods": [],
|
|
184
225
|
"parts": [],
|
|
185
|
-
"description": "
|
|
186
|
-
"category": "
|
|
226
|
+
"description": "信息类卡片 —— 通用卡片",
|
|
227
|
+
"category": "card-info"
|
|
187
228
|
},
|
|
188
229
|
{
|
|
189
|
-
"name": "eo-
|
|
230
|
+
"name": "eo-alert",
|
|
231
|
+
"alias": [
|
|
232
|
+
"presentational.general-alert"
|
|
233
|
+
],
|
|
190
234
|
"properties": [
|
|
191
235
|
{
|
|
192
236
|
"name": "type",
|
|
193
|
-
"description": "",
|
|
194
|
-
"
|
|
195
|
-
"type": "
|
|
237
|
+
"description": "警告类型",
|
|
238
|
+
"attribute": false,
|
|
239
|
+
"type": "AlertType"
|
|
196
240
|
},
|
|
197
241
|
{
|
|
198
|
-
"name": "
|
|
199
|
-
"description": "
|
|
200
|
-
"
|
|
201
|
-
"type": "number"
|
|
242
|
+
"name": "hasTitle",
|
|
243
|
+
"description": "是否显示标题。开启后,可以使用 `title` 插槽",
|
|
244
|
+
"type": "boolean"
|
|
202
245
|
},
|
|
203
246
|
{
|
|
204
|
-
"name": "
|
|
205
|
-
"description": "
|
|
206
|
-
"
|
|
207
|
-
"type": "number"
|
|
247
|
+
"name": "showIcon",
|
|
248
|
+
"description": "是否显示提示图标",
|
|
249
|
+
"type": "boolean"
|
|
208
250
|
},
|
|
209
251
|
{
|
|
210
|
-
"name": "
|
|
211
|
-
"description": "
|
|
212
|
-
"
|
|
213
|
-
"type": "number"
|
|
252
|
+
"name": "closable",
|
|
253
|
+
"description": "是否显示关闭按钮",
|
|
254
|
+
"type": "boolean"
|
|
214
255
|
},
|
|
215
256
|
{
|
|
216
|
-
"name": "
|
|
217
|
-
"description": "
|
|
218
|
-
"
|
|
219
|
-
"attribute": false,
|
|
220
|
-
"type": "number[]"
|
|
257
|
+
"name": "localStorageKey",
|
|
258
|
+
"description": "以该值和页面 url 作为命名空间,决定是否显示该警告提示",
|
|
259
|
+
"type": "string"
|
|
221
260
|
},
|
|
222
261
|
{
|
|
223
|
-
"name": "
|
|
224
|
-
"description": "
|
|
225
|
-
"default": "true",
|
|
262
|
+
"name": "disableUrlNamespace",
|
|
263
|
+
"description": "关闭后仅以 `localStorageKey` 作为命名空间",
|
|
226
264
|
"type": "boolean"
|
|
227
265
|
},
|
|
228
266
|
{
|
|
229
|
-
"name": "
|
|
230
|
-
"type": "string"
|
|
231
|
-
|
|
232
|
-
{
|
|
233
|
-
"name": "previousToken",
|
|
234
|
-
"type": "string"
|
|
267
|
+
"name": "textContent",
|
|
268
|
+
"type": "string",
|
|
269
|
+
"description": "文本内容"
|
|
235
270
|
}
|
|
236
271
|
],
|
|
237
|
-
"events": [
|
|
272
|
+
"events": [],
|
|
273
|
+
"slots": [
|
|
238
274
|
{
|
|
239
|
-
"name":
|
|
240
|
-
"description": "
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
275
|
+
"name": null,
|
|
276
|
+
"description": "内容区"
|
|
277
|
+
},
|
|
278
|
+
{
|
|
279
|
+
"name": "title",
|
|
280
|
+
"description": "标题"
|
|
244
281
|
}
|
|
245
282
|
],
|
|
246
|
-
"slots": [],
|
|
247
283
|
"methods": [],
|
|
248
284
|
"parts": [],
|
|
249
|
-
"description": "
|
|
250
|
-
"category": "
|
|
285
|
+
"description": "告警提示",
|
|
286
|
+
"category": "display-component"
|
|
251
287
|
},
|
|
252
288
|
{
|
|
253
289
|
"name": "eo-divider",
|
|
@@ -292,249 +328,201 @@
|
|
|
292
328
|
"category": "container-display"
|
|
293
329
|
},
|
|
294
330
|
{
|
|
295
|
-
"name": "eo-card-item",
|
|
331
|
+
"name": "eo-info-card-item",
|
|
296
332
|
"properties": [
|
|
297
|
-
{
|
|
298
|
-
"name": "hasHeader",
|
|
299
|
-
"description": "是否有顶部小标题",
|
|
300
|
-
"type": "boolean"
|
|
301
|
-
},
|
|
302
333
|
{
|
|
303
334
|
"name": "cardTitle",
|
|
304
|
-
"description": "
|
|
335
|
+
"description": "title",
|
|
305
336
|
"type": "string"
|
|
306
337
|
},
|
|
307
338
|
{
|
|
308
339
|
"name": "description",
|
|
309
|
-
"description": "
|
|
340
|
+
"description": "description",
|
|
310
341
|
"type": "string"
|
|
311
342
|
},
|
|
312
343
|
{
|
|
313
|
-
"name": "
|
|
314
|
-
"description": "
|
|
344
|
+
"name": "url",
|
|
345
|
+
"description": "链接地址",
|
|
315
346
|
"type": "string"
|
|
316
347
|
},
|
|
317
348
|
{
|
|
318
|
-
"name": "
|
|
349
|
+
"name": "cardIcon",
|
|
319
350
|
"description": "图标",
|
|
320
351
|
"attribute": false,
|
|
321
|
-
"type": "IconAvatar
|
|
322
|
-
},
|
|
323
|
-
{
|
|
324
|
-
"name": "href",
|
|
325
|
-
"description": "设置 `href` 时将使用原生 `<a>` 标签,通常用于外链的跳转",
|
|
326
|
-
"type": "LinkProps[\"href\"]"
|
|
352
|
+
"type": "IconAvatar"
|
|
327
353
|
},
|
|
328
354
|
{
|
|
329
|
-
"name": "
|
|
330
|
-
"description": "
|
|
355
|
+
"name": "detailList",
|
|
356
|
+
"description": "详细列表",
|
|
331
357
|
"attribute": false,
|
|
332
|
-
"type": "
|
|
358
|
+
"type": "InfoCardDetail[]"
|
|
333
359
|
},
|
|
334
360
|
{
|
|
335
361
|
"name": "target",
|
|
336
362
|
"description": "链接跳转目标",
|
|
337
363
|
"type": "LinkProps[\"target\"]"
|
|
364
|
+
}
|
|
365
|
+
],
|
|
366
|
+
"events": [],
|
|
367
|
+
"slots": [],
|
|
368
|
+
"methods": [],
|
|
369
|
+
"parts": [],
|
|
370
|
+
"description": "信息卡片",
|
|
371
|
+
"category": "card-info"
|
|
372
|
+
},
|
|
373
|
+
{
|
|
374
|
+
"name": "eo-pagination",
|
|
375
|
+
"properties": [
|
|
376
|
+
{
|
|
377
|
+
"name": "type",
|
|
378
|
+
"description": "",
|
|
379
|
+
"default": "\"page\"",
|
|
380
|
+
"type": "\"page\" | \"token\""
|
|
338
381
|
},
|
|
339
382
|
{
|
|
340
|
-
"name": "
|
|
341
|
-
"description": "
|
|
342
|
-
"
|
|
343
|
-
"type": "
|
|
383
|
+
"name": "total",
|
|
384
|
+
"description": "数据总数",
|
|
385
|
+
"default": "0",
|
|
386
|
+
"type": "number"
|
|
344
387
|
},
|
|
345
388
|
{
|
|
346
|
-
"name": "
|
|
347
|
-
"description": "
|
|
348
|
-
"default": "
|
|
349
|
-
"type": "
|
|
389
|
+
"name": "page",
|
|
390
|
+
"description": "当前页数",
|
|
391
|
+
"default": "1",
|
|
392
|
+
"type": "number"
|
|
350
393
|
},
|
|
351
394
|
{
|
|
352
|
-
"name": "
|
|
353
|
-
"description": "
|
|
354
|
-
"
|
|
395
|
+
"name": "pageSize",
|
|
396
|
+
"description": "每页条数",
|
|
397
|
+
"default": "20",
|
|
398
|
+
"type": "number"
|
|
355
399
|
},
|
|
356
400
|
{
|
|
357
|
-
"name": "
|
|
358
|
-
"description": "
|
|
359
|
-
"
|
|
401
|
+
"name": "pageSizeOptions",
|
|
402
|
+
"description": "指定每页可以显示多少条",
|
|
403
|
+
"default": "[10, 20, 50, 100]",
|
|
404
|
+
"attribute": false,
|
|
405
|
+
"type": "number[]"
|
|
360
406
|
},
|
|
361
407
|
{
|
|
362
|
-
"name": "
|
|
363
|
-
"description": "
|
|
408
|
+
"name": "showSizeChanger",
|
|
409
|
+
"description": "是否展示`pageSize`分页器",
|
|
410
|
+
"default": "true",
|
|
364
411
|
"type": "boolean"
|
|
365
412
|
},
|
|
366
413
|
{
|
|
367
|
-
"name": "
|
|
368
|
-
"description": "卡片封面背景图片",
|
|
369
|
-
"attribute": false,
|
|
414
|
+
"name": "nextToken",
|
|
370
415
|
"type": "string"
|
|
371
416
|
},
|
|
372
417
|
{
|
|
373
|
-
"name": "
|
|
374
|
-
"description": "卡片封面背景颜色(使用纯色背景)",
|
|
375
|
-
"attribute": false,
|
|
418
|
+
"name": "previousToken",
|
|
376
419
|
"type": "string"
|
|
377
|
-
},
|
|
378
|
-
{
|
|
379
|
-
"name": "coverImageSize",
|
|
380
|
-
"description": "卡片封面图片尺寸 ,配置参考 https://developer.mozilla.org/zh-CN/docs/Web/CSS/background-size",
|
|
381
|
-
"attribute": false,
|
|
382
|
-
"type": "React.CSSProperties[\"backgroundSize\"]"
|
|
383
|
-
},
|
|
384
|
-
{
|
|
385
|
-
"name": "avatarPosition",
|
|
386
|
-
"description": "图标是否放置在卡片封面",
|
|
387
|
-
"type": "\"content\" | \"cover\""
|
|
388
|
-
},
|
|
389
|
-
{
|
|
390
|
-
"name": "tagConfig",
|
|
391
|
-
"attribute": false,
|
|
392
|
-
"type": "TagConfig"
|
|
393
|
-
},
|
|
394
|
-
{
|
|
395
|
-
"name": "cardStyle",
|
|
396
|
-
"description": "卡片样式",
|
|
397
|
-
"attribute": false,
|
|
398
|
-
"type": "React.CSSProperties"
|
|
399
|
-
},
|
|
400
|
-
{
|
|
401
|
-
"name": "cardTitleStyle",
|
|
402
|
-
"description": "卡片标题样式",
|
|
403
|
-
"attribute": false,
|
|
404
|
-
"type": "React.CSSProperties"
|
|
405
420
|
}
|
|
406
421
|
],
|
|
407
422
|
"events": [
|
|
408
423
|
{
|
|
409
|
-
"name": "
|
|
410
|
-
"description": "
|
|
424
|
+
"name": "change",
|
|
425
|
+
"description": "页码及每页条数改变事件",
|
|
411
426
|
"detail": {
|
|
412
|
-
"type": "
|
|
427
|
+
"type": "ChangeDetail"
|
|
413
428
|
}
|
|
414
429
|
}
|
|
415
430
|
],
|
|
416
|
-
"slots": [
|
|
417
|
-
{
|
|
418
|
-
"name": "expanded-area-1",
|
|
419
|
-
"description": "扩展区域 1,通常放置标签信息"
|
|
420
|
-
},
|
|
421
|
-
{
|
|
422
|
-
"name": "expanded-area-2",
|
|
423
|
-
"description": "扩展区域 2,通常放置操作和其他属性信息(图标/头像/小字描述/统计信息)"
|
|
424
|
-
}
|
|
425
|
-
],
|
|
431
|
+
"slots": [],
|
|
426
432
|
"methods": [],
|
|
427
433
|
"parts": [],
|
|
428
|
-
"description": "
|
|
429
|
-
"category": "
|
|
434
|
+
"description": "分页",
|
|
435
|
+
"category": "navigation"
|
|
430
436
|
},
|
|
431
437
|
{
|
|
432
|
-
"name": "eo-
|
|
438
|
+
"name": "eo-statistics-card",
|
|
433
439
|
"properties": [
|
|
434
440
|
{
|
|
435
441
|
"name": "cardTitle",
|
|
436
|
-
"description": "
|
|
442
|
+
"description": "卡片标题",
|
|
443
|
+
"type": "string"
|
|
444
|
+
},
|
|
445
|
+
{
|
|
446
|
+
"name": "value",
|
|
447
|
+
"description": "值",
|
|
448
|
+
"type": "string"
|
|
449
|
+
},
|
|
450
|
+
{
|
|
451
|
+
"name": "unit",
|
|
452
|
+
"description": "单位",
|
|
437
453
|
"type": "string"
|
|
438
454
|
},
|
|
439
455
|
{
|
|
440
|
-
"name": "
|
|
441
|
-
"description": "
|
|
442
|
-
"
|
|
456
|
+
"name": "icon",
|
|
457
|
+
"description": "图标",
|
|
458
|
+
"attribute": false,
|
|
459
|
+
"type": "EoStatisticsCardProps[\"icon\"]"
|
|
460
|
+
},
|
|
461
|
+
{
|
|
462
|
+
"name": "size",
|
|
463
|
+
"description": "尺寸",
|
|
464
|
+
"default": "\"medium\"",
|
|
465
|
+
"type": "\"large\" | \"medium\" | \"small\""
|
|
466
|
+
},
|
|
467
|
+
{
|
|
468
|
+
"name": "outline",
|
|
469
|
+
"description": "卡片轮廓",
|
|
470
|
+
"default": "\"border\"",
|
|
471
|
+
"type": "\"border\" | \"background\" | \"none\""
|
|
443
472
|
},
|
|
444
473
|
{
|
|
445
|
-
"name": "
|
|
446
|
-
"description": "
|
|
474
|
+
"name": "background",
|
|
475
|
+
"description": "背景",
|
|
447
476
|
"type": "string"
|
|
448
477
|
},
|
|
449
478
|
{
|
|
450
|
-
"name": "
|
|
451
|
-
"description": "
|
|
452
|
-
"
|
|
453
|
-
"type": "
|
|
479
|
+
"name": "descriptionPosition",
|
|
480
|
+
"description": "描述位置",
|
|
481
|
+
"default": "\"bottom\"",
|
|
482
|
+
"type": "\"bottom\" | \"right\""
|
|
454
483
|
},
|
|
455
484
|
{
|
|
456
|
-
"name": "
|
|
457
|
-
"description": "
|
|
485
|
+
"name": "valueStyle",
|
|
486
|
+
"description": "值样式",
|
|
458
487
|
"attribute": false,
|
|
459
|
-
"type": "
|
|
488
|
+
"type": "React.CSSProperties"
|
|
460
489
|
},
|
|
461
490
|
{
|
|
462
|
-
"name": "
|
|
463
|
-
"description": "
|
|
464
|
-
"type": "
|
|
491
|
+
"name": "interactable",
|
|
492
|
+
"description": "是否可互动",
|
|
493
|
+
"type": "boolean"
|
|
465
494
|
}
|
|
466
495
|
],
|
|
467
496
|
"events": [],
|
|
468
|
-
"slots": [
|
|
469
|
-
"methods": [],
|
|
470
|
-
"parts": [],
|
|
471
|
-
"description": "信息卡片",
|
|
472
|
-
"category": "card-info"
|
|
473
|
-
},
|
|
474
|
-
{
|
|
475
|
-
"name": "eo-humanize-time",
|
|
476
|
-
"alias": [
|
|
477
|
-
"presentational.humanize-time"
|
|
478
|
-
],
|
|
479
|
-
"properties": [
|
|
480
|
-
{
|
|
481
|
-
"name": "value",
|
|
482
|
-
"description": "时间截,或字符串,当为字符串时,应提供时间格式 `inputFormat`",
|
|
483
|
-
"required": true,
|
|
484
|
-
"attribute": false,
|
|
485
|
-
"type": "number | string"
|
|
486
|
-
},
|
|
487
|
-
{
|
|
488
|
-
"name": "inputFormat",
|
|
489
|
-
"description": "字符串的时间格式,如 \"YYYY-MM-DD\", [时间格式参照表](https://day.js.org/docs/en/parse/string-format)",
|
|
490
|
-
"type": "string"
|
|
491
|
-
},
|
|
492
|
-
{
|
|
493
|
-
"name": "outputFormat",
|
|
494
|
-
"description": "展示时间格式,如 \"YYYY-MM-DD\",当设置该属性时,属性 `formatter` 无效 [时间格式参照表](https://day.js.org/docs/en/display/format)",
|
|
495
|
-
"type": "string"
|
|
496
|
-
},
|
|
497
|
+
"slots": [
|
|
497
498
|
{
|
|
498
|
-
"name": "
|
|
499
|
-
"description": "
|
|
500
|
-
"default": "\"datetime\"",
|
|
501
|
-
"type": "\"datetime\" | \"date\""
|
|
499
|
+
"name": "titlePrefix",
|
|
500
|
+
"description": "标题前缀,放置辅助信息"
|
|
502
501
|
},
|
|
503
502
|
{
|
|
504
|
-
"name": "
|
|
505
|
-
"description": "
|
|
506
|
-
"type": "boolean"
|
|
503
|
+
"name": "titleSuffix",
|
|
504
|
+
"description": "标题前缀,放置辅助信息"
|
|
507
505
|
},
|
|
508
506
|
{
|
|
509
|
-
"name": "
|
|
510
|
-
"description": "
|
|
511
|
-
"default": "\"default\"",
|
|
512
|
-
"attribute": false,
|
|
513
|
-
"type": "HumanizeTimeFormat"
|
|
507
|
+
"name": "description",
|
|
508
|
+
"description": "描述信息,通常是对于统计值的描述"
|
|
514
509
|
},
|
|
515
510
|
{
|
|
516
|
-
"name": "
|
|
517
|
-
"description": "
|
|
518
|
-
"deprecated": "请使用 `isMillisecond`",
|
|
519
|
-
"type": "boolean"
|
|
511
|
+
"name": "basicContent",
|
|
512
|
+
"description": "卡片右侧内容区,适合放置迷你图表,常用于小卡片"
|
|
520
513
|
},
|
|
521
514
|
{
|
|
522
|
-
"name": "
|
|
523
|
-
"description": "
|
|
524
|
-
"type": "boolean"
|
|
515
|
+
"name": "extraContent",
|
|
516
|
+
"description": "卡片下方内容区,适合放置图表,用于展示更多信息的场景"
|
|
525
517
|
},
|
|
526
518
|
{
|
|
527
|
-
"name": "
|
|
528
|
-
"description": "
|
|
529
|
-
"attribute": false,
|
|
530
|
-
"type": "LinkInfo"
|
|
519
|
+
"name": "operator",
|
|
520
|
+
"description": "右上角操作区"
|
|
531
521
|
}
|
|
532
522
|
],
|
|
533
|
-
"events": [],
|
|
534
|
-
"slots": [],
|
|
535
523
|
"methods": [],
|
|
536
524
|
"parts": [],
|
|
537
|
-
"description": "
|
|
525
|
+
"description": "统计卡片"
|
|
538
526
|
},
|
|
539
527
|
{
|
|
540
528
|
"name": "eo-loading-step",
|
|
@@ -601,94 +589,69 @@
|
|
|
601
589
|
"description": "加载步骤框"
|
|
602
590
|
},
|
|
603
591
|
{
|
|
604
|
-
"name": "eo-
|
|
592
|
+
"name": "eo-humanize-time",
|
|
593
|
+
"alias": [
|
|
594
|
+
"presentational.humanize-time"
|
|
595
|
+
],
|
|
605
596
|
"properties": [
|
|
606
|
-
{
|
|
607
|
-
"name": "cardTitle",
|
|
608
|
-
"description": "卡片标题",
|
|
609
|
-
"type": "string"
|
|
610
|
-
},
|
|
611
597
|
{
|
|
612
598
|
"name": "value",
|
|
613
|
-
"description": "
|
|
614
|
-
"
|
|
615
|
-
},
|
|
616
|
-
{
|
|
617
|
-
"name": "unit",
|
|
618
|
-
"description": "单位",
|
|
619
|
-
"type": "string"
|
|
620
|
-
},
|
|
621
|
-
{
|
|
622
|
-
"name": "icon",
|
|
623
|
-
"description": "图标",
|
|
599
|
+
"description": "时间截,或字符串,当为字符串时,应提供时间格式 `inputFormat`",
|
|
600
|
+
"required": true,
|
|
624
601
|
"attribute": false,
|
|
625
|
-
"type": "
|
|
626
|
-
},
|
|
627
|
-
{
|
|
628
|
-
"name": "size",
|
|
629
|
-
"description": "尺寸",
|
|
630
|
-
"default": "\"medium\"",
|
|
631
|
-
"type": "\"large\" | \"medium\" | \"small\""
|
|
632
|
-
},
|
|
633
|
-
{
|
|
634
|
-
"name": "outline",
|
|
635
|
-
"description": "卡片轮廓",
|
|
636
|
-
"default": "\"border\"",
|
|
637
|
-
"type": "\"border\" | \"background\" | \"none\""
|
|
602
|
+
"type": "number | string"
|
|
638
603
|
},
|
|
639
604
|
{
|
|
640
|
-
"name": "
|
|
641
|
-
"description": "
|
|
605
|
+
"name": "inputFormat",
|
|
606
|
+
"description": "字符串的时间格式,如 \"YYYY-MM-DD\", [时间格式参照表](https://day.js.org/docs/en/parse/string-format)",
|
|
642
607
|
"type": "string"
|
|
643
608
|
},
|
|
644
609
|
{
|
|
645
|
-
"name": "
|
|
646
|
-
"description": "
|
|
647
|
-
"
|
|
648
|
-
"type": "\"bottom\" | \"right\""
|
|
610
|
+
"name": "outputFormat",
|
|
611
|
+
"description": "展示时间格式,如 \"YYYY-MM-DD\",当设置该属性时,属性 `formatter` 无效 [时间格式参照表](https://day.js.org/docs/en/display/format)",
|
|
612
|
+
"type": "string"
|
|
649
613
|
},
|
|
650
614
|
{
|
|
651
|
-
"name": "
|
|
652
|
-
"description": "
|
|
653
|
-
"
|
|
654
|
-
"type": "
|
|
615
|
+
"name": "type",
|
|
616
|
+
"description": "使用日期+时间格式输出还是仅日期。",
|
|
617
|
+
"default": "\"datetime\"",
|
|
618
|
+
"type": "\"datetime\" | \"date\""
|
|
655
619
|
},
|
|
656
620
|
{
|
|
657
|
-
"name": "
|
|
658
|
-
"description": "
|
|
621
|
+
"name": "isCostTime",
|
|
622
|
+
"description": "是否展示为耗费时间,例如:'1 个月 20 天'",
|
|
659
623
|
"type": "boolean"
|
|
660
|
-
}
|
|
661
|
-
],
|
|
662
|
-
"events": [],
|
|
663
|
-
"slots": [
|
|
664
|
-
{
|
|
665
|
-
"name": "titlePrefix",
|
|
666
|
-
"description": "标题前缀,放置辅助信息"
|
|
667
|
-
},
|
|
668
|
-
{
|
|
669
|
-
"name": "titleSuffix",
|
|
670
|
-
"description": "标题前缀,放置辅助信息"
|
|
671
624
|
},
|
|
672
625
|
{
|
|
673
|
-
"name": "
|
|
674
|
-
"description": "
|
|
626
|
+
"name": "formatter",
|
|
627
|
+
"description": "格式类型",
|
|
628
|
+
"default": "\"default\"",
|
|
629
|
+
"attribute": false,
|
|
630
|
+
"type": "HumanizeTimeFormat"
|
|
675
631
|
},
|
|
676
632
|
{
|
|
677
|
-
"name": "
|
|
678
|
-
"description": "
|
|
633
|
+
"name": "isMicrosecond",
|
|
634
|
+
"description": "value 值的单位是否为毫秒(此处属性 id 写错,实际表达意义为 isMillisecond)",
|
|
635
|
+
"deprecated": "请使用 `isMillisecond`",
|
|
636
|
+
"type": "boolean"
|
|
679
637
|
},
|
|
680
638
|
{
|
|
681
|
-
"name": "
|
|
682
|
-
"description": "
|
|
639
|
+
"name": "isMillisecond",
|
|
640
|
+
"description": "value 值的单位是否为毫秒",
|
|
641
|
+
"type": "boolean"
|
|
683
642
|
},
|
|
684
643
|
{
|
|
685
|
-
"name": "
|
|
686
|
-
"description": "
|
|
644
|
+
"name": "link",
|
|
645
|
+
"description": "跳转链接,默认为空",
|
|
646
|
+
"attribute": false,
|
|
647
|
+
"type": "LinkInfo"
|
|
687
648
|
}
|
|
688
649
|
],
|
|
650
|
+
"events": [],
|
|
651
|
+
"slots": [],
|
|
689
652
|
"methods": [],
|
|
690
653
|
"parts": [],
|
|
691
|
-
"description": "
|
|
654
|
+
"description": "人性化时间展示,可显示完整时间、相对时间、未来时间、耗时等,支持自定义输入值格式和输出格式。"
|
|
692
655
|
},
|
|
693
656
|
{
|
|
694
657
|
"name": "eo-current-time",
|
|
@@ -751,6 +714,63 @@
|
|
|
751
714
|
"methods": [],
|
|
752
715
|
"parts": [],
|
|
753
716
|
"description": "构件 `eo-carousel-text`"
|
|
717
|
+
},
|
|
718
|
+
{
|
|
719
|
+
"name": "eo-code-display",
|
|
720
|
+
"alias": [
|
|
721
|
+
"presentational.code-display"
|
|
722
|
+
],
|
|
723
|
+
"properties": [
|
|
724
|
+
{
|
|
725
|
+
"name": "value",
|
|
726
|
+
"description": "代码内容",
|
|
727
|
+
"default": "\"\"",
|
|
728
|
+
"type": "string"
|
|
729
|
+
},
|
|
730
|
+
{
|
|
731
|
+
"name": "language",
|
|
732
|
+
"description": "语言,具体查阅 [Supported languages](https://prismjs.com/#supported-languages)",
|
|
733
|
+
"type": "string"
|
|
734
|
+
},
|
|
735
|
+
{
|
|
736
|
+
"name": "hideLineNumber",
|
|
737
|
+
"description": "是否隐藏行号",
|
|
738
|
+
"type": "boolean"
|
|
739
|
+
},
|
|
740
|
+
{
|
|
741
|
+
"name": "maxLines",
|
|
742
|
+
"description": "最大行数",
|
|
743
|
+
"type": "number"
|
|
744
|
+
},
|
|
745
|
+
{
|
|
746
|
+
"name": "minLines",
|
|
747
|
+
"description": "最小行数",
|
|
748
|
+
"type": "number"
|
|
749
|
+
},
|
|
750
|
+
{
|
|
751
|
+
"name": "showCopyButton",
|
|
752
|
+
"description": "是否显示复制按钮",
|
|
753
|
+
"default": "true",
|
|
754
|
+
"type": "boolean"
|
|
755
|
+
},
|
|
756
|
+
{
|
|
757
|
+
"name": "showExportButton",
|
|
758
|
+
"description": "是否显示导出按钮",
|
|
759
|
+
"type": "boolean"
|
|
760
|
+
},
|
|
761
|
+
{
|
|
762
|
+
"name": "exportFileName",
|
|
763
|
+
"description": "导出的文件名",
|
|
764
|
+
"default": "download.txt",
|
|
765
|
+
"type": "string"
|
|
766
|
+
}
|
|
767
|
+
],
|
|
768
|
+
"events": [],
|
|
769
|
+
"slots": [],
|
|
770
|
+
"methods": [],
|
|
771
|
+
"parts": [],
|
|
772
|
+
"description": "代码展示",
|
|
773
|
+
"category": "display-component"
|
|
754
774
|
}
|
|
755
775
|
],
|
|
756
776
|
"providers": []
|