From bb71140e7ba5139c5391222940fcb381ca33bf18 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=A2=81=E7=81=8F?= Date: Thu, 2 Mar 2017 15:36:39 +0800 Subject: [PATCH] support Carousel support Carousel @rijn you can review when you are free --- CHANGE.md | 4 +- README.md | 4 +- src/components/carousel/carousel-item.vue | 8 +- src/components/carousel/carousel.vue | 26 +-- src/index.js | 6 +- test/app.vue | 1 + test/main.js | 4 + test/routers/carousel.vue | 207 +++------------------- 8 files changed, 57 insertions(+), 203 deletions(-) diff --git a/CHANGE.md b/CHANGE.md index a03f2936..70016e24 100644 --- a/CHANGE.md +++ b/CHANGE.md @@ -19,4 +19,6 @@ class 改为了 className ### Upload 父级不能 computed Upload 的 fileList 了 ### Collapse -废弃 activeKey,使用 v-model,key 是保留的,更名为 name \ No newline at end of file +废弃 activeKey,使用 v-model,key 是保留的,更名为 name +### Carousel +废弃 activeIndex,使用 v-model,v-for="n in slides.length",Vue2的数字循环,是从1开始的 \ No newline at end of file diff --git a/README.md b/README.md index eea0dc95..ead257bf 100644 --- a/README.md +++ b/README.md @@ -42,12 +42,12 @@ - [ ] Modal - [x] Progress - [x] Badge -- [ ] Collapse +- [x] Collapse - [x] Timeline - [x] Tag - [ ] Tooltip - [ ] Poptip -- [ ] Carousel +- [x] Carousel - [ ] Tree - [ ] Menu - [ ] Tabs diff --git a/src/components/carousel/carousel-item.vue b/src/components/carousel/carousel-item.vue index 7381afc4..758fe729 100644 --- a/src/components/carousel/carousel-item.vue +++ b/src/components/carousel/carousel-item.vue @@ -1,12 +1,12 @@ + \ No newline at end of file