From 29b4b7004e3cd17e77134eae63126dd7a10729ca Mon Sep 17 00:00:00 2001 From: Amumu Date: Thu, 26 Dec 2019 14:37:39 +0800 Subject: [PATCH] docs upgrade (#20460) --- README-zh_CN.md | 5 +++-- components/card/index.en-US.md | 2 +- components/card/index.zh-CN.md | 2 +- components/input/index.en-US.md | 2 +- components/input/index.zh-CN.md | 2 +- components/menu/index.en-US.md | 2 +- components/menu/index.zh-CN.md | 2 +- components/pagination/index.en-US.md | 4 ++-- components/pagination/index.zh-CN.md | 4 ++-- components/select/index.en-US.md | 8 ++++---- 10 files changed, 17 insertions(+), 16 deletions(-) diff --git a/README-zh_CN.md b/README-zh_CN.md index 1838df0fcb..854e693e14 100644 --- a/README-zh_CN.md +++ b/README-zh_CN.md @@ -53,7 +53,7 @@ yarn add antd ## 🔨 示例 -````jsx +```jsx import { Button, DatePicker } from 'antd'; const App = () => ( @@ -62,12 +62,13 @@ const App = () => ( ); +``` 引入样式: ```jsx import 'antd/dist/antd.css'; // or 'antd/dist/antd.less' -```` +``` 你也可以使用 [babel-plugin-import](https://ant.design/docs/react/getting-started-cn#按需加载)。 diff --git a/components/card/index.en-US.md b/components/card/index.en-US.md index b45738902b..d68bff6c3c 100644 --- a/components/card/index.en-US.md +++ b/components/card/index.en-US.md @@ -13,7 +13,7 @@ A card can be used to display content related to a single subject. The content c ## API -```html +```jsx Card content ``` diff --git a/components/card/index.zh-CN.md b/components/card/index.zh-CN.md index f70e2a0165..24a158516e 100644 --- a/components/card/index.zh-CN.md +++ b/components/card/index.zh-CN.md @@ -14,7 +14,7 @@ cols: 1 ## API -```html +```jsx 卡片内容 ``` diff --git a/components/input/index.en-US.md b/components/input/index.en-US.md index 8d3d1ad5d9..7e98841924 100644 --- a/components/input/index.en-US.md +++ b/components/input/index.en-US.md @@ -66,7 +66,7 @@ Supports all props of `Input`. | compact | Whether use compact style | boolean | false | | size | The size of `Input.Group` specifies the size of the included `Input` fields. Available: `large` `default` `small` | string | `default` | -```html +```jsx diff --git a/components/input/index.zh-CN.md b/components/input/index.zh-CN.md index 73ec7d9a75..8713a72edd 100644 --- a/components/input/index.zh-CN.md +++ b/components/input/index.zh-CN.md @@ -67,7 +67,7 @@ Input 的其他属性和 React 自带的 [input](https://facebook.github.io/reac | compact | 是否用紧凑模式 | boolean | false | | size | `Input.Group` 中所有的 `Input` 的大小,可选 `large` `default` `small` | string | `default` | -```html +```jsx diff --git a/components/menu/index.en-US.md b/components/menu/index.en-US.md index f4b12cfe8b..ae60095720 100644 --- a/components/menu/index.en-US.md +++ b/components/menu/index.en-US.md @@ -15,7 +15,7 @@ More layouts with navigation: [Layout](/components/layout). ## API -```html +```jsx Menu diff --git a/components/menu/index.zh-CN.md b/components/menu/index.zh-CN.md index c8cc73c398..0a9dfd74da 100644 --- a/components/menu/index.zh-CN.md +++ b/components/menu/index.zh-CN.md @@ -16,7 +16,7 @@ subtitle: 导航菜单 ## API -```html +```jsx 菜单项 diff --git a/components/pagination/index.en-US.md b/components/pagination/index.en-US.md index f27cf5943b..c5c2491af0 100644 --- a/components/pagination/index.en-US.md +++ b/components/pagination/index.en-US.md @@ -14,8 +14,8 @@ A long list can be divided into several pages using `Pagination`, and only one p ## API -```html - +```jsx + ``` | Property | Description | Type | Default | Version | diff --git a/components/pagination/index.zh-CN.md b/components/pagination/index.zh-CN.md index 74e790eb42..1f6a9414ec 100644 --- a/components/pagination/index.zh-CN.md +++ b/components/pagination/index.zh-CN.md @@ -15,8 +15,8 @@ cols: 1 ## API -```html - +```jsx + ``` | 参数 | 说明 | 类型 | 默认值 | 版本 | diff --git a/components/select/index.en-US.md b/components/select/index.en-US.md index 8b3bc32f9f..8054ea9830 100644 --- a/components/select/index.en-US.md +++ b/components/select/index.en-US.md @@ -13,10 +13,10 @@ Select component to select value from options. ## API -```html - +```jsx + ``` ### Select props