forked from alibaba/lowcode-materials
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmeta.ts
More file actions
41 lines (41 loc) · 1006 Bytes
/
meta.ts
File metadata and controls
41 lines (41 loc) · 1006 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
module.exports = {
group: '原子组件',
componentName: 'ErrorBoundary',
title: 'ErrorBoundary',
docUrl: '',
screenshot: '',
npm: {
package: '@alifd/next',
version: '{{version}}',
exportName: 'ConfigProvider',
main: '',
destructuring: true,
subName: 'ErrorBoundary',
},
props: [
{
name: 'children',
propType: {
type: 'instanceOf',
value: 'element',
},
},
{
name: 'afterCatch',
propType: 'func',
description:
'捕获错误后的自定义处理, 比如埋点上传\n@param {Object} error 错误\n@param {Object} errorInfo 错误详细信息',
},
{
name: 'fallbackUI',
propType: 'func',
description:
'捕获错误后的展现 自定义组件\n@param {Object} error 错误\n@param {Object} errorInfo 错误详细信息\n@returns {Element} 捕获错误后的处理',
},
{
name: 'style',
propType: 'object',
},
],
category: '基础',
};