diff --git a/components/grid/demo/index.vue b/components/grid/demo/index.vue index ede56aac1..b2dd1d080 100644 --- a/components/grid/demo/index.vue +++ b/components/grid/demo/index.vue @@ -8,6 +8,7 @@ import Offset from './offset' import ResponsiveMore from './responsive-more' import Responsive from './responsive' import Sort from './sort' +import Playfround from './playfround' import CN from '../index.zh-CN.md' import US from '../index.en-US.md' const md = { @@ -53,7 +54,7 @@ Following is a brief look at how it works: ## Flex layout Our grid systems support Flex layout to allow the elements within the parent to be aligned horizontally - left, center, right, wide arrangement, and decentralized arrangement. The Grid system also supports vertical alignment - top aligned, vertically centered, bottom-aligned. You can also define the order of elements by using \`order\`. Flex layout uses a 24 grid layout to define the width of each "box", but does not rigidly adhere to the grid layout. -## Examples +## Examples `, } export default { @@ -125,6 +126,7 @@ export default { + diff --git a/components/grid/demo/playfround.md b/components/grid/demo/playfround.md new file mode 100644 index 000000000..4d2a82cbf --- /dev/null +++ b/components/grid/demo/playfround.md @@ -0,0 +1,97 @@ + +#### 栅格配置器 +可以简单配置几种等分栅格和间距。 + + + +#### Playground +A simple playground for column count and gutter. + + +```html + + + +``` + + diff --git a/contributors.md b/contributors.md index 79aa47e5d..43064e78b 100644 --- a/contributors.md +++ b/contributors.md @@ -33,7 +33,7 @@ Carousel Mention ##万 -Grid | done slider完成后补全playground demo +Grid | done Layout Anchor Tree diff --git a/examples/routes.js b/examples/routes.js index b73615c7c..d9670c48e 100644 --- a/examples/routes.js +++ b/examples/routes.js @@ -3,7 +3,7 @@ const AsyncComp = () => { const hashs = window.location.hash.split('/') const d = hashs[hashs.length - 1] return { - component: import(`../components/timeline/demo/${d}`), + component: import(`../components/grid/demo/${d}`), } } export default [