Commit 59a3b893b73d441a064eccc8e1698b8899d0c985
1 parent
a0141266
add Cell component for init
Showing
10 changed files
with
57 additions
and
0 deletions
Show diff stats
examples/app.vue
| @@ -66,6 +66,7 @@ nav { | @@ -66,6 +66,7 @@ nav { | ||
| 66 | <li><router-link to="/scroll">Scroll</router-link></li> | 66 | <li><router-link to="/scroll">Scroll</router-link></li> |
| 67 | <li><router-link to="/divider">Divider</router-link></li> | 67 | <li><router-link to="/divider">Divider</router-link></li> |
| 68 | <li><router-link to="/time">Time</router-link></li> | 68 | <li><router-link to="/time">Time</router-link></li> |
| 69 | + <li><router-link to="/cell">Cell</router-link></li> | ||
| 69 | </ul> | 70 | </ul> |
| 70 | </nav> | 71 | </nav> |
| 71 | <router-view></router-view> | 72 | <router-view></router-view> |
examples/main.js
| @@ -218,6 +218,10 @@ const router = new VueRouter({ | @@ -218,6 +218,10 @@ const router = new VueRouter({ | ||
| 218 | { | 218 | { |
| 219 | path: '/time', | 219 | path: '/time', |
| 220 | component: (resolve) => require(['./routers/time.vue'], resolve) | 220 | component: (resolve) => require(['./routers/time.vue'], resolve) |
| 221 | + }, | ||
| 222 | + { | ||
| 223 | + path: '/cell', | ||
| 224 | + component: (resolve) => require(['./routers/cell.vue'], resolve) | ||
| 221 | } | 225 | } |
| 222 | ] | 226 | ] |
| 223 | }); | 227 | }); |
src/index.js
| @@ -11,6 +11,7 @@ import Button from './components/button'; | @@ -11,6 +11,7 @@ import Button from './components/button'; | ||
| 11 | import Card from './components/card'; | 11 | import Card from './components/card'; |
| 12 | import Carousel from './components/carousel'; | 12 | import Carousel from './components/carousel'; |
| 13 | import Cascader from './components/cascader'; | 13 | import Cascader from './components/cascader'; |
| 14 | +import Cell from './components/cell'; | ||
| 14 | import Checkbox from './components/checkbox'; | 15 | import Checkbox from './components/checkbox'; |
| 15 | import Circle from './components/circle'; | 16 | import Circle from './components/circle'; |
| 16 | import Collapse from './components/collapse'; | 17 | import Collapse from './components/collapse'; |
| @@ -74,6 +75,8 @@ const components = { | @@ -74,6 +75,8 @@ const components = { | ||
| 74 | Carousel, | 75 | Carousel, |
| 75 | CarouselItem: Carousel.Item, | 76 | CarouselItem: Carousel.Item, |
| 76 | Cascader, | 77 | Cascader, |
| 78 | + Cell, | ||
| 79 | + CellGroup: Cell.Group, | ||
| 77 | Checkbox, | 80 | Checkbox, |
| 78 | CheckboxGroup: Checkbox.Group, | 81 | CheckboxGroup: Checkbox.Group, |
| 79 | Col, | 82 | Col, |
src/styles/components/index.less