initialize carousel
This commit is contained in:
parent
6831b361ca
commit
6c9acb08fa
8 changed files with 50 additions and 0 deletions
10
src/components/carousel/carousel-item.vue
Normal file
10
src/components/carousel/carousel-item.vue
Normal file
|
@ -0,0 +1,10 @@
|
|||
<template>
|
||||
<div :class="prefixCls"><slot></slot></div>
|
||||
</template>
|
||||
<script>
|
||||
const prefixCls = 'ivu-carousel-item';
|
||||
|
||||
export default {
|
||||
name: 'CarouselItem'
|
||||
};
|
||||
</script>
|
11
src/components/carousel/carousel.vue
Normal file
11
src/components/carousel/carousel.vue
Normal file
|
@ -0,0 +1,11 @@
|
|||
<template>
|
||||
<div :class="prefixCls">
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
const prefixCls = 'ivu-cascader';
|
||||
|
||||
export default {
|
||||
name: 'Carousel'
|
||||
};
|
||||
</script>
|
5
src/components/carousel/index.js
Normal file
5
src/components/carousel/index.js
Normal file
|
@ -0,0 +1,5 @@
|
|||
import Carousel from './carousel.vue';
|
||||
import CarouselItem from './carousel-item.vue';
|
||||
|
||||
Carousel.Item = CarouselItem;
|
||||
export default Carousel;
|
Loading…
Add table
Add a link
Reference in a new issue