From bb71140e7ba5139c5391222940fcb381ca33bf18 Mon Sep 17 00:00:00 2001 From: 梁灏 Date: Thu, 2 Mar 2017 15:36:39 +0800 Subject: [PATCH] support Carousel --- 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 a03f293..70016e2 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 eea0dc9..ead257b 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 7381afc..758fe72 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 -- libgit2 0.21.4