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 | 8 | import Breadcrumb from './components/breadcrumb'; |
9 | 9 | import Button from './components/button'; |
10 | 10 | import Card from './components/card'; |
11 | +import Carousel from './components/carousel'; | |
11 | 12 | import Cascader from './components/cascader'; |
12 | 13 | import Checkbox from './components/checkbox'; |
13 | 14 | import Circle from './components/circle'; |
... | ... | @@ -52,6 +53,8 @@ const iview = { |
52 | 53 | iButton: Button, |
53 | 54 | ButtonGroup: Button.Group, |
54 | 55 | Card, |
56 | + Carousel, | |
57 | + CarouselItem: Carousel.Item, | |
55 | 58 | Cascader, |
56 | 59 | Checkbox, |
57 | 60 | CheckboxGroup: Checkbox.Group, | ... | ... |
test/app.vue
test/main.js
... | ... | @@ -134,6 +134,11 @@ router.map({ |
134 | 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 | 144 | router.beforeEach(function () { | ... | ... |