Commit 6c9acb08fa34d9db51fdc661fd782926debcb728
1 parent
6831b361
initialize carousel
Showing
8 changed files
with
50 additions
and
0 deletions
Show diff stats
src/index.js
| @@ -8,6 +8,7 @@ import Badge from './components/badge'; | @@ -8,6 +8,7 @@ import Badge from './components/badge'; | ||
| 8 | import Breadcrumb from './components/breadcrumb'; | 8 | import Breadcrumb from './components/breadcrumb'; |
| 9 | import Button from './components/button'; | 9 | import Button from './components/button'; |
| 10 | import Card from './components/card'; | 10 | import Card from './components/card'; |
| 11 | +import Carousel from './components/carousel'; | ||
| 11 | import Cascader from './components/cascader'; | 12 | import Cascader from './components/cascader'; |
| 12 | import Checkbox from './components/checkbox'; | 13 | import Checkbox from './components/checkbox'; |
| 13 | import Circle from './components/circle'; | 14 | import Circle from './components/circle'; |
| @@ -52,6 +53,8 @@ const iview = { | @@ -52,6 +53,8 @@ const iview = { | ||
| 52 | iButton: Button, | 53 | iButton: Button, |
| 53 | ButtonGroup: Button.Group, | 54 | ButtonGroup: Button.Group, |
| 54 | Card, | 55 | Card, |
| 56 | + Carousel, | ||
| 57 | + CarouselItem: Carousel.Item, | ||
| 55 | Cascader, | 58 | Cascader, |
| 56 | Checkbox, | 59 | Checkbox, |
| 57 | CheckboxGroup: Checkbox.Group, | 60 | CheckboxGroup: Checkbox.Group, |
test/app.vue
| @@ -47,6 +47,7 @@ li + li { | @@ -47,6 +47,7 @@ li + li { | ||
| 47 | <li><a v-link="'/menu'">Menu</a></li> | 47 | <li><a v-link="'/menu'">Menu</a></li> |
| 48 | <li><a v-link="'/date'">Date</a></li> | 48 | <li><a v-link="'/date'">Date</a></li> |
| 49 | <li><a v-link="'/form'">Form</a></li> | 49 | <li><a v-link="'/form'">Form</a></li> |
| 50 | + <li><a v-link="'/carousel'">Carousel</a></li> | ||
| 50 | </ul> | 51 | </ul> |
| 51 | </nav> | 52 | </nav> |
| 52 | <router-view></router-view> | 53 | <router-view></router-view> |
test/main.js
| @@ -134,6 +134,11 @@ router.map({ | @@ -134,6 +134,11 @@ router.map({ | ||
| 134 | require(['./routers/form.vue'], resolve); | 134 | require(['./routers/form.vue'], resolve); |
| 135 | } | 135 | } |
| 136 | }, | 136 | }, |
| 137 | + '/carousel': { | ||
| 138 | + component: function (resolve) { | ||
| 139 | + require(['./routers/carousel.vue'], resolve); | ||
| 140 | + } | ||
| 141 | + }, | ||
| 137 | }); | 142 | }); |
| 138 | 143 | ||
| 139 | router.beforeEach(function () { | 144 | router.beforeEach(function () { |