diff --git a/components/grid/__tests__/__snapshots__/demo.test.js.snap b/components/grid/__tests__/__snapshots__/demo.test.js.snap index 3d34c9e4e4..bc7923e065 100644 --- a/components/grid/__tests__/__snapshots__/demo.test.js.snap +++ b/components/grid/__tests__/__snapshots__/demo.test.js.snap @@ -76,7 +76,6 @@ Array [ , - + Vertical Gutter (px): ,
, - + Column Count: ,

{props.children} ReactDOM.render( <> - - Align Top - + Align Top col-4 @@ -38,9 +36,7 @@ ReactDOM.render( - - Align Middle - + Align Middle col-4 @@ -56,9 +52,7 @@ ReactDOM.render( - - Align Bottom - + Align Bottom col-4 diff --git a/components/grid/demo/flex-order.md b/components/grid/demo/flex-order.md index e6e1cdfe77..f394fbda36 100644 --- a/components/grid/demo/flex-order.md +++ b/components/grid/demo/flex-order.md @@ -18,9 +18,7 @@ import { Row, Col, Divider } from 'antd'; ReactDOM.render( <> - - Normal - + Normal 1 col-order-4 @@ -35,9 +33,7 @@ ReactDOM.render( 4 col-order-1 - - Responsive - + Responsive 1 col-order-responsive diff --git a/components/grid/demo/flex-stretch.md b/components/grid/demo/flex-stretch.md index a543157282..c94180a4a8 100644 --- a/components/grid/demo/flex-stretch.md +++ b/components/grid/demo/flex-stretch.md @@ -18,23 +18,17 @@ import { Row, Col, Divider } from 'antd'; ReactDOM.render( <> - - Percentage columns - + Percentage columns 2 / 5 3 / 5 - - Fill rest - + Fill rest 100px Fill Rest - - Raw flex style - + Raw flex style 1 1 200px 0 1 300px diff --git a/components/grid/demo/flex.md b/components/grid/demo/flex.md index 05b06d08c1..422916fcc9 100644 --- a/components/grid/demo/flex.md +++ b/components/grid/demo/flex.md @@ -20,9 +20,7 @@ import { Row, Col, Divider } from 'antd'; ReactDOM.render( <> - - sub-element align left - + sub-element align left col-4 col-4 @@ -30,9 +28,7 @@ ReactDOM.render( col-4 - - sub-element align center - + sub-element align center col-4 col-4 @@ -40,9 +36,7 @@ ReactDOM.render( col-4 - - sub-element align right - + sub-element align right col-4 col-4 @@ -50,9 +44,7 @@ ReactDOM.render( col-4 - - sub-element monospaced arrangement - + sub-element monospaced arrangement col-4 col-4 @@ -60,9 +52,7 @@ ReactDOM.render( col-4 - - sub-element align full - + sub-element align full col-4 col-4 diff --git a/components/grid/demo/gutter.md b/components/grid/demo/gutter.md index 5e006a64a3..e4487e8851 100644 --- a/components/grid/demo/gutter.md +++ b/components/grid/demo/gutter.md @@ -7,7 +7,7 @@ title: ## zh-CN -栅格常常需要和间隔进行配合,你可以使用 `Row` 的 `gutter` 属性,我们推荐使用 `(16+8n)px` 作为栅格间隔。(n 是自然数) +栅格常常需要和间隔进行配合,你可以使用 `Row` 的 `gutter` 属性,我们推荐使用 `(16+8n)px` 作为栅格间隔(n 是自然数)。 如果要支持响应式,可以写成 `{ xs: 8, sm: 16, md: 24, lg: 32 }`。 @@ -17,7 +17,7 @@ title: ## en-US -You can use the `gutter` property of `Row` as grid spacing, we recommend set it to `(16 + 8n) px`. (`n` stands for natural number.) +You can use the `gutter` property of `Row` as grid spacing, we recommend set it to `(16 + 8n) px` (`n` stands for natural number). You can set it to a object like `{ xs: 8, sm: 16, md: 24, lg: 32 }` for responsive design. @@ -32,9 +32,7 @@ const style = { background: '#0092ff', padding: '8px 0' }; ReactDOM.render( <> - - Horizontal - + Horizontal

col-6
@@ -49,9 +47,7 @@ ReactDOM.render(
col-6
- - Responsive - + Responsive
col-6
@@ -66,9 +62,7 @@ ReactDOM.render(
col-6
- - Vertical - + Vertical
col-6
diff --git a/components/grid/demo/playground.md b/components/grid/demo/playground.md index b2df71701b..d331f4c8e3 100644 --- a/components/grid/demo/playground.md +++ b/components/grid/demo/playground.md @@ -64,7 +64,7 @@ class App extends React.Component { } return ( <> - Horizontal Gutter (px): + Horizontal Gutter (px):
gutters[value]} />
- Vertical Gutter (px): + Vertical Gutter (px):
vgutters[value]} />
- Column Count: + Column Count: