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 | 66 | <li><router-link to="/scroll">Scroll</router-link></li> |
67 | 67 | <li><router-link to="/divider">Divider</router-link></li> |
68 | 68 | <li><router-link to="/time">Time</router-link></li> |
69 | + <li><router-link to="/cell">Cell</router-link></li> | |
69 | 70 | </ul> |
70 | 71 | </nav> |
71 | 72 | <router-view></router-view> | ... | ... |
examples/main.js
... | ... | @@ -218,6 +218,10 @@ const router = new VueRouter({ |
218 | 218 | { |
219 | 219 | path: '/time', |
220 | 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 | 11 | import Card from './components/card'; |
12 | 12 | import Carousel from './components/carousel'; |
13 | 13 | import Cascader from './components/cascader'; |
14 | +import Cell from './components/cell'; | |
14 | 15 | import Checkbox from './components/checkbox'; |
15 | 16 | import Circle from './components/circle'; |
16 | 17 | import Collapse from './components/collapse'; |
... | ... | @@ -74,6 +75,8 @@ const components = { |
74 | 75 | Carousel, |
75 | 76 | CarouselItem: Carousel.Item, |
76 | 77 | Cascader, |
78 | + Cell, | |
79 | + CellGroup: Cell.Group, | |
77 | 80 | Checkbox, |
78 | 81 | CheckboxGroup: Checkbox.Group, |
79 | 82 | Col, | ... | ... |