From 61b2aaa68baf1f1eae35ab71c561bfe0c8bb8353 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E5=B8=85?= Date: Tue, 16 Apr 2019 18:37:30 +0800 Subject: [PATCH] remove demos --- .../src/components/Exception/demo/403.md | 29 ------------------- .../src/components/Exception/demo/404.md | 22 -------------- .../src/components/Exception/demo/500.md | 22 -------------- .../src/components/Exception/index.en-US.md | 20 ------------- .../src/components/Exception/index.zh-CN.md | 21 -------------- Exception404/src/index.tsx | 2 +- .../src/components/Exception/demo/403.md | 29 ------------------- .../src/components/Exception/demo/404.md | 22 -------------- .../src/components/Exception/demo/500.md | 22 -------------- .../src/components/Exception/index.en-US.md | 20 ------------- .../src/components/Exception/index.zh-CN.md | 21 -------------- 11 files changed, 1 insertion(+), 229 deletions(-) delete mode 100644 Exception404/src/components/Exception/demo/403.md delete mode 100644 Exception404/src/components/Exception/demo/404.md delete mode 100644 Exception404/src/components/Exception/demo/500.md delete mode 100644 Exception404/src/components/Exception/index.en-US.md delete mode 100644 Exception404/src/components/Exception/index.zh-CN.md delete mode 100644 Exception500/src/components/Exception/demo/403.md delete mode 100644 Exception500/src/components/Exception/demo/404.md delete mode 100644 Exception500/src/components/Exception/demo/500.md delete mode 100644 Exception500/src/components/Exception/index.en-US.md delete mode 100644 Exception500/src/components/Exception/index.zh-CN.md diff --git a/Exception404/src/components/Exception/demo/403.md b/Exception404/src/components/Exception/demo/403.md deleted file mode 100644 index c0244ab1..00000000 --- a/Exception404/src/components/Exception/demo/403.md +++ /dev/null @@ -1,29 +0,0 @@ ---- -order: 2 -title: - zh-CN: 403 页面 - en-US: 403 Page ---- - -## zh-CN - -403 页面,配合自定义操作。 - -## en-US - -403 page with custom operations. - -````jsx -import Exception from 'ant-design-pro/lib/Exception'; -import { Button } from 'antd'; - -const actions = ( -
- - -
-); -ReactDOM.render( - -, mountNode); -```` diff --git a/Exception404/src/components/Exception/demo/404.md b/Exception404/src/components/Exception/demo/404.md deleted file mode 100644 index c54e99d4..00000000 --- a/Exception404/src/components/Exception/demo/404.md +++ /dev/null @@ -1,22 +0,0 @@ ---- -order: 0 -title: - zh-CN: 404 页面 - en-US: 404 Page ---- - -## zh-CN - -404 页面。 - -## en-US - -404 page. - -````jsx -import Exception from 'ant-design-pro/lib/Exception'; - -ReactDOM.render( - -, mountNode); -```` diff --git a/Exception404/src/components/Exception/demo/500.md b/Exception404/src/components/Exception/demo/500.md deleted file mode 100644 index 2336e41e..00000000 --- a/Exception404/src/components/Exception/demo/500.md +++ /dev/null @@ -1,22 +0,0 @@ ---- -order: 1 -title: - zh-CN: 500 页面 - en-US: 500 Page ---- - -## zh-CN - -500 页面。 - -## en-US - -500 page. - -````jsx -import Exception from 'ant-design-pro/lib/Exception'; - -ReactDOM.render( - -, mountNode); -```` diff --git a/Exception404/src/components/Exception/index.en-US.md b/Exception404/src/components/Exception/index.en-US.md deleted file mode 100644 index 37e7e807..00000000 --- a/Exception404/src/components/Exception/index.en-US.md +++ /dev/null @@ -1,20 +0,0 @@ ---- -title: Exception -cols: 1 -order: 5 ---- - -Exceptions page is used to provide feedback on specific abnormal state. Usually, it contains an explanation of the error status, and provides users with suggestions or operations, to prevent users from feeling lost and confused. - -## API - -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 | - -img | the url of background image | string | - -actions | suggested operations, a default 'Home' link will show if not set | ReactNode | - -linkElement | to specify the element of link | string\|ReactElement | 'a' -redirect | redirect path | string | '/' \ No newline at end of file diff --git a/Exception404/src/components/Exception/index.zh-CN.md b/Exception404/src/components/Exception/index.zh-CN.md deleted file mode 100644 index 2e64399f..00000000 --- a/Exception404/src/components/Exception/index.zh-CN.md +++ /dev/null @@ -1,21 +0,0 @@ ---- -title: Exception -subtitle: 异常 -cols: 1 -order: 5 ---- - -异常页用于对页面特定的异常状态进行反馈。通常,它包含对错误状态的阐述,并向用户提供建议或操作,避免用户感到迷失和困惑。 - -## API - -| 参数 | 说明| 类型 | 默认值 | -|-------------|------------------------------------------|-------------|-------| -| 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' | -| redirect | 返回按钮的跳转地址 | string | '/' diff --git a/Exception404/src/index.tsx b/Exception404/src/index.tsx index 1239c2c1..35a6b9c6 100644 --- a/Exception404/src/index.tsx +++ b/Exception404/src/index.tsx @@ -3,7 +3,7 @@ import { formatMessage } from 'umi-plugin-react/locale'; import Link from 'umi/link'; import Exception from './components/Exception'; -const PAGE_NAME_UPPER_CAMEL_CASE: React.FC = () => ( +const PAGE_NAME_UPPER_CAMEL_CASE: React.SFC = () => ( - - - -); -ReactDOM.render( - -, mountNode); -```` diff --git a/Exception500/src/components/Exception/demo/404.md b/Exception500/src/components/Exception/demo/404.md deleted file mode 100644 index c54e99d4..00000000 --- a/Exception500/src/components/Exception/demo/404.md +++ /dev/null @@ -1,22 +0,0 @@ ---- -order: 0 -title: - zh-CN: 404 页面 - en-US: 404 Page ---- - -## zh-CN - -404 页面。 - -## en-US - -404 page. - -````jsx -import Exception from 'ant-design-pro/lib/Exception'; - -ReactDOM.render( - -, mountNode); -```` diff --git a/Exception500/src/components/Exception/demo/500.md b/Exception500/src/components/Exception/demo/500.md deleted file mode 100644 index 2336e41e..00000000 --- a/Exception500/src/components/Exception/demo/500.md +++ /dev/null @@ -1,22 +0,0 @@ ---- -order: 1 -title: - zh-CN: 500 页面 - en-US: 500 Page ---- - -## zh-CN - -500 页面。 - -## en-US - -500 page. - -````jsx -import Exception from 'ant-design-pro/lib/Exception'; - -ReactDOM.render( - -, mountNode); -```` diff --git a/Exception500/src/components/Exception/index.en-US.md b/Exception500/src/components/Exception/index.en-US.md deleted file mode 100644 index 37e7e807..00000000 --- a/Exception500/src/components/Exception/index.en-US.md +++ /dev/null @@ -1,20 +0,0 @@ ---- -title: Exception -cols: 1 -order: 5 ---- - -Exceptions page is used to provide feedback on specific abnormal state. Usually, it contains an explanation of the error status, and provides users with suggestions or operations, to prevent users from feeling lost and confused. - -## API - -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 | - -img | the url of background image | string | - -actions | suggested operations, a default 'Home' link will show if not set | ReactNode | - -linkElement | to specify the element of link | string\|ReactElement | 'a' -redirect | redirect path | string | '/' \ No newline at end of file diff --git a/Exception500/src/components/Exception/index.zh-CN.md b/Exception500/src/components/Exception/index.zh-CN.md deleted file mode 100644 index 2e64399f..00000000 --- a/Exception500/src/components/Exception/index.zh-CN.md +++ /dev/null @@ -1,21 +0,0 @@ ---- -title: Exception -subtitle: 异常 -cols: 1 -order: 5 ---- - -异常页用于对页面特定的异常状态进行反馈。通常,它包含对错误状态的阐述,并向用户提供建议或操作,避免用户感到迷失和困惑。 - -## API - -| 参数 | 说明| 类型 | 默认值 | -|-------------|------------------------------------------|-------------|-------| -| 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' | -| redirect | 返回按钮的跳转地址 | string | '/' -- GitLab