diff --git a/src/components/Exception/index.en-US.md b/src/components/Exception/index.en-US.md index 320b0e719887df81b4773b74859ac7b55f3de12d..10f23a0a6a83f0d6a54b25c7225de76ae9ff763b 100644 --- a/src/components/Exception/index.en-US.md +++ b/src/components/Exception/index.en-US.md @@ -10,6 +10,7 @@ Exceptions page is used to provide feedback on specific abnormal state. Usually, Property | Description | Type | Default ---------|-------------|------|-------- +| backText | default return button text | ReactNode | back to home | type | type of exception, the corresponding default `title`, `desc`, `img` will be given if set, which can be overridden by explicit setting of `title`, `desc`, `img` | Enum {'403', '404', '500'} | - title | title | ReactNode | - desc | supplementary description | ReactNode | - diff --git a/src/components/Exception/index.zh-CN.md b/src/components/Exception/index.zh-CN.md index 13e4e7eff0d620f4bd40c0098d7226c871923d43..bc7e5f1d8971498db76fb030a07cd362052464b5 100644 --- a/src/components/Exception/index.zh-CN.md +++ b/src/components/Exception/index.zh-CN.md @@ -9,11 +9,12 @@ order: 5 ## API -| 参数 | 说明 | 类型 | 默认值 | +| 参数 | 说明| 类型 | 默认值 | |-------------|------------------------------------------|-------------|-------| -| type | 页面类型,若配置,则自带对应类型默认的 `title`,`desc`,`img`,此默认设置可以被 `title`,`desc`,`img` 覆盖 | Enum {'403', '404', '500'} | - | -| title | 标题 | ReactNode | - | -| desc | 补充描述 | ReactNode | - | -| img | 背景图片地址 | string | - | -| actions | 建议操作,配置此属性时默认的『返回首页』按钮不生效 | ReactNode | - | +| backText| 默认的返回按钮文本 | ReactNode| back to home | +| type| 页面类型,若配置,则自带对应类型默认的 `title`,`desc`,`img`,此默认设置可以被 `title`,`desc`,`img` 覆盖 | Enum {'403', '404', '500'} | - | +| title | 标题 | ReactNode| -| +| desc| 补充描述| ReactNode| -| +| img | 背景图片地址 | string| -| +| actions | 建议操作,配置此属性时默认的『返回首页』按钮不生效| ReactNode| -| | linkElement | 定义链接的元素 | string\|ReactElement | 'a' |