mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-03 12:38:58 +08:00
update docs
This commit is contained in:
parent
d1fc49f885
commit
7b6fd3128c
@ -34,7 +34,7 @@ ReactDOM.render(<DatePicker />, mountNode);
|
|||||||
import 'antd/lib/index.css'; // or 'antd/style/index.less'
|
import 'antd/lib/index.css'; // or 'antd/style/index.less'
|
||||||
```
|
```
|
||||||
|
|
||||||
按需加载可通过此写法 `import DatePicker from 'antd/lib/date-picker';` 或使用插件 [babel-plugin-antd](https://github.com/ant-design/babel-plugin-antd)。
|
按需加载可通过此写法 `import DatePicker from 'antd/lib/date-picker'` 或使用插件 [babel-plugin-antd](https://github.com/ant-design/babel-plugin-antd)。
|
||||||
|
|
||||||
|
|
||||||
## 浏览器支持
|
## 浏览器支持
|
||||||
|
@ -33,7 +33,7 @@ Import style:
|
|||||||
import 'antd/lib/index.css'; // or 'antd/style/index.less'
|
import 'antd/lib/index.css'; // or 'antd/style/index.less'
|
||||||
```
|
```
|
||||||
|
|
||||||
Use antd on demand by `import DatePicker from 'antd/lib/date-picker';` or use [babel-plugin-antd](https://github.com/ant-design/babel-plugin-antd).
|
Use components on demand by writing as `import DatePicker from 'antd/lib/date-picker'` or use [babel-plugin-antd](https://github.com/ant-design/babel-plugin-antd).
|
||||||
|
|
||||||
|
|
||||||
## Browser Support
|
## Browser Support
|
||||||
|
@ -45,7 +45,7 @@ ReactDOM.render(<DatePicker />, mountNode);
|
|||||||
import 'antd/lib/index.css'; // or 'antd/style/index.less'
|
import 'antd/lib/index.css'; // or 'antd/style/index.less'
|
||||||
```
|
```
|
||||||
|
|
||||||
按需加载可通过此写法 `import DatePicker from 'antd/lib/date-picker';` 或使用插件 [babel-plugin-antd](https://github.com/ant-design/babel-plugin-antd)。
|
按需加载可通过此写法 `import DatePicker from 'antd/lib/date-picker'` 或使用插件 [babel-plugin-antd](https://github.com/ant-design/babel-plugin-antd)。
|
||||||
|
|
||||||
|
|
||||||
## 版本
|
## 版本
|
||||||
|
@ -48,7 +48,7 @@ pre code {
|
|||||||
background: white;
|
background: white;
|
||||||
color: #666;
|
color: #666;
|
||||||
font-family: Consolas, monospace;
|
font-family: Consolas, monospace;
|
||||||
line-height: 1.hljs-5;
|
line-height: 1.5;
|
||||||
border: 1px solid #e9e9e9;
|
border: 1px solid #e9e9e9;
|
||||||
padding: 10px 15px;
|
padding: 10px 15px;
|
||||||
border-radius: 6px;
|
border-radius: 6px;
|
||||||
|
Loading…
Reference in New Issue
Block a user