diff --git a/src/components/DescriptionList/demo/basic.md b/src/components/DescriptionList/demo/basic.md index 9e59c015dc655c6898c948b050af601a819e7c86..13df17e9ef5eca5463f52b8045201bebf09ae832 100644 --- a/src/components/DescriptionList/demo/basic.md +++ b/src/components/DescriptionList/demo/basic.md @@ -6,7 +6,7 @@ title: Basic 基本描述列表。 ````jsx -import { DescriptionList } from 'ant-design-pro'; +import DescriptionList from 'ant-design-pro/lib/DescriptionList'; const { Description } = DescriptionList; diff --git a/src/components/DescriptionList/demo/vertical.md b/src/components/DescriptionList/demo/vertical.md index c45c9f87a4062acb31114078c3f494e22ddce111..6d7b943363c5990cf9fb9503e34ef8666682ff32 100644 --- a/src/components/DescriptionList/demo/vertical.md +++ b/src/components/DescriptionList/demo/vertical.md @@ -6,7 +6,7 @@ title: Vertical 垂直布局。 ````jsx -import { DescriptionList } from 'ant-design-pro'; +import DescriptionList from 'ant-design-pro/lib/DescriptionList'; const { Description } = DescriptionList; diff --git a/src/components/Exception/demo/403.md b/src/components/Exception/demo/403.md index 9cafa41cf558357dcf3032c2d1535234b3f07444..ef7655c9b7e7d8303091f2de86724c360364291c 100644 --- a/src/components/Exception/demo/403.md +++ b/src/components/Exception/demo/403.md @@ -6,7 +6,7 @@ title: 403 403 页面,配合自定义操作。 ````jsx -import { Exception } from 'ant-design-pro'; +import Exception from 'ant-design-pro/lib/Exception'; import { Button } from 'antd'; const actions = ( diff --git a/src/components/Exception/demo/404.md b/src/components/Exception/demo/404.md index cd693592516e37ae92f741ab40b09111ac5e8ab7..6ff2de78d75d19b0fe63f918cd81023c28821a72 100644 --- a/src/components/Exception/demo/404.md +++ b/src/components/Exception/demo/404.md @@ -6,7 +6,7 @@ title: 404 404 页面。 ````jsx -import { Exception } from 'ant-design-pro'; +import Exception from 'ant-design-pro/lib/Exception'; ReactDOM.render( diff --git a/src/components/Exception/demo/500.md b/src/components/Exception/demo/500.md index b94e10ef695240865914f4aa4ea5a30993bbdeb0..0ed9cedb5adc3a8a70ee1e77890c3e2bd599efa3 100644 --- a/src/components/Exception/demo/500.md +++ b/src/components/Exception/demo/500.md @@ -6,7 +6,7 @@ title: 500 500 页面。 ````jsx -import { Exception } from 'ant-design-pro'; +import Exception from 'ant-design-pro/lib/Exception'; ReactDOM.render( diff --git a/src/components/GlobalFooter/demo/basic.md b/src/components/GlobalFooter/demo/basic.md index 2f0d82fe7573d8e38c929717779befd104d28784..eb47d0e43877d20aa993ec58ee5d1e62e36e5184 100644 --- a/src/components/GlobalFooter/demo/basic.md +++ b/src/components/GlobalFooter/demo/basic.md @@ -6,7 +6,7 @@ title: Basic 基本页脚。 ````jsx -import { GlobalFooter } from 'ant-design-pro'; +import GlobalFooter from 'ant-design-pro/lib/GlobalFooter'; import { Icon } from 'antd'; const links = [{ diff --git a/src/components/NoticeIcon/demo/basic.md b/src/components/NoticeIcon/demo/basic.md index c61a91f70cb5187343bf8860487788f8c697112d..26835db4b449f77d59ec2ff9d7c3d26391a14eac 100644 --- a/src/components/NoticeIcon/demo/basic.md +++ b/src/components/NoticeIcon/demo/basic.md @@ -6,7 +6,7 @@ title: 通知图标 通常用在全局导航上。 ````jsx -import { NoticeIcon } from 'ant-design-pro'; +import NoticeIcon from 'ant-design-pro/lib/NoticeIcon'; ReactDOM.render(, mountNode); ```` diff --git a/src/components/NoticeIcon/demo/popover.md b/src/components/NoticeIcon/demo/popover.md index 071b2eacb91e76118240bc6efdba7840209353a5..f4ecafddf30b8db189e7bd341253e01a88f8991f 100644 --- a/src/components/NoticeIcon/demo/popover.md +++ b/src/components/NoticeIcon/demo/popover.md @@ -6,7 +6,7 @@ title: 带浮层卡片 点击展开通知卡片,展现多种类型的通知。 ````jsx -import { NoticeIcon } from 'ant-design-pro'; +import NoticeIcon from 'ant-design-pro/lib/NoticeIcon'; import moment from 'moment'; const data = [{ diff --git a/src/components/PageHeader/demo/image.md b/src/components/PageHeader/demo/image.md index b5d0dc9556f2a48e5e3e5188e4281b59ade1e8ec..96045ac1d2de36dcdc3e61b9537872e5c038726c 100644 --- a/src/components/PageHeader/demo/image.md +++ b/src/components/PageHeader/demo/image.md @@ -6,7 +6,7 @@ title: With Image 带图片的页头。 ````jsx -import { PageHeader } from 'ant-design-pro'; +import PageHeader from 'ant-design-pro/lib/PageHeader'; const content = (
diff --git a/src/components/PageHeader/demo/simple.md b/src/components/PageHeader/demo/simple.md index bff44117f46c3f30d037814e806755bbce807264..30edd647f7ff4491e87ecf84848965d2c557d372 100644 --- a/src/components/PageHeader/demo/simple.md +++ b/src/components/PageHeader/demo/simple.md @@ -6,7 +6,7 @@ title: Simple 简单的页头。 ````jsx -import { PageHeader } from 'ant-design-pro'; +import PageHeader from 'ant-design-pro/lib/PageHeader'; const breadcrumbList = [{ title: '一级菜单', diff --git a/src/components/PageHeader/demo/standard.md b/src/components/PageHeader/demo/standard.md index e870e9868e67cd317e86c730b5fd2a83ab8b46dc..080e8f0113527828c5a6439d2962ad024c4e817c 100644 --- a/src/components/PageHeader/demo/standard.md +++ b/src/components/PageHeader/demo/standard.md @@ -6,7 +6,7 @@ title: Standard 标准页头。 ````jsx -import { PageHeader } from 'ant-design-pro'; +import PageHeader from 'ant-design-pro/lib/PageHeader'; import { Button, Menu, Dropdown, Icon, Row, Col } from 'antd'; const menu = ( diff --git a/src/components/PageHeader/demo/structure.md b/src/components/PageHeader/demo/structure.md index 0c7f81e62fbd6144b211c2ce0ea9c8d9176ec418..e82491149797ec5b1325dfbbbb36bd64315aba08 100644 --- a/src/components/PageHeader/demo/structure.md +++ b/src/components/PageHeader/demo/structure.md @@ -6,7 +6,7 @@ title: Structure 基本结构,可以形成多种组合。 ````jsx -import { PageHeader } from 'ant-design-pro'; +import PageHeader from 'ant-design-pro/lib/PageHeader'; const breadcrumbList = [{ title: '面包屑', diff --git a/src/components/Result/demo/classic.md b/src/components/Result/demo/classic.md index 8fbcf1851264a1bc640a3e311b17d7aa51d13dd4..d9cfeb7beca4a8b5e227b5442d020f26bfa4a5b7 100644 --- a/src/components/Result/demo/classic.md +++ b/src/components/Result/demo/classic.md @@ -6,7 +6,7 @@ title: Classic 典型结果页面。 ````jsx -import { Result } from 'ant-design-pro'; +import Result from 'ant-design-pro/lib/Result'; import { Button, Row, Col, Icon, Steps } from 'antd'; const Step = Steps.Step; diff --git a/src/components/Result/demo/error.md b/src/components/Result/demo/error.md index 1ab7ad8ed49d4eca77f9bdc30534a98717b6e1e3..3cb779e67d3c87632f0a736e088da90dcc82d6d2 100644 --- a/src/components/Result/demo/error.md +++ b/src/components/Result/demo/error.md @@ -6,7 +6,7 @@ title: Failed 提交失败。 ````jsx -import { Result } from 'ant-design-pro'; +import Result from 'ant-design-pro/lib/Result'; import { Button, Icon } from 'antd'; const extra = ( diff --git a/src/components/Result/demo/structure.md b/src/components/Result/demo/structure.md index 13f2dab7bccca6eb7a8e3a8dba6050ea35255260..7fcecfd6d0c0f539c32454b14d7a39f63c006606 100644 --- a/src/components/Result/demo/structure.md +++ b/src/components/Result/demo/structure.md @@ -6,7 +6,7 @@ title: Structure 结构包含 `处理结果`,`补充信息` 以及 `操作建议` 三个部分,其中 `处理结果` 由 `提示图标`,`标题` 和 `结果描述` 组成。 ````jsx -import { Result } from 'ant-design-pro'; +import Result from 'ant-design-pro/lib/Result'; ReactDOM.render(