Skip to content

Commit

Permalink
Update to 0.6.7 (#128)
Browse files Browse the repository at this point in the history
* add spacePadding as a carousel param

* let some code as it was

* Added new prop navigateTo, watcher to handle parent navigation request to show a specific slide. Added sandbox scenario. Updated api doc. (#108)

* feat(carousel): drag improvements

* feat(carousel): update carousel wrapper ref

* fix: add minSwipeDistance support

* fix: add minSwipeDistance support

* fix: add minSwipeDistance support, fixed perpage

* chore(none): update unit tests

* chore(none): new build

* Bug camelcase event (#87)

* #86(carousel): fix camel casing on page change event

* #86(dist): updated dist files

* #86(carousel): added event emitters for navigation and pagination

* #86(carousel): updated pagechange emitter to also give component information

* #86(carousel): updated dist

* chore(none): documentation update and linter fixes (#120)

* chore(none): linter errors

* chore(none): fixed vue play example for NavigateTo

* feat(documentation): added insturctions for yarn

* feat(none): added various updates to scripts and docs

* feat(none): rebased rc0.6.6

* feat(none): updated giot ignore

* Update to v0.6.7
  • Loading branch information
quinnlangille authored Feb 21, 2018
1 parent 94ccdcb commit e1dda54
Show file tree
Hide file tree
Showing 20 changed files with 12,601 additions and 714 deletions.
2 changes: 1 addition & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"extends": "ssense/client",
"extends": ["ssense/client", "plugin:vue/base", "plugin:prettier/recommended"]
}
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
.DS_Store
node_modules/
npm-debug.log
coverage/
coverage/
/node_modules
/.idea
.env
.yarn-error.log
17 changes: 15 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,13 @@
## Installation

``` bash
npm install -S vue-carousel
npm install vue-carousel
```

or if you prefer yarn

``` bash
yarn add vue-carousel
```

## Usage
Expand Down Expand Up @@ -75,10 +81,17 @@ A sandboxed dev environment is provided by [vue-play](https://github.com/vue-pla
To begin development, run:

``` bash
npm install
npm install
npm run dev
```

or, if you prefer yarn

``` bash
yarn install
yarn dev
```

then navigate to `http://localhost:5000`

To modify and add sandbox scenarios, edit `play/index.js`
Expand Down
5 changes: 3 additions & 2 deletions dist/vue-carousel.min.js

Large diffs are not rendered by default.

22 changes: 22 additions & 0 deletions docs/source/api/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,13 @@ Transition speed between slides. Any valid CSS transition easing is accepted.
* **Type**: `String`
* **Default**: `ease`

### loop

Flag to make the carousel loop around and return to the first page when it reaches the end.

* **Type**: `Boolean`
* **Default**: `false`

### minSwipeDistance

Minimum distance in pixels to swipe before a slide advance is triggered
Expand Down Expand Up @@ -112,6 +119,13 @@ Text content of the navigation prev button
* **Type**: `String`
* **Default**: ``

### navigateTo

Allow carousel parent to programatically navigate to a specific slide (zero based index). Recommend using parent data attribute pageNo and carousel pageChange event to keep pageNo in sync with carousel.currentPage to handle subsequent navigation.

* **Type**: `Number`
* **Default**: 0

## Pagination

Configure the pagination component (clickable page dots)
Expand Down Expand Up @@ -148,3 +162,11 @@ The size of each pagination dot. Pixel values are accepted.

* **Type**: `Number`
* **Default**: `10`

### spacePadding

Stage padding option adds left and right padding style (in pixels) onto VueCarousel-inner.

* **Type**: `Number`
* **Default**: `0`

7 changes: 5 additions & 2 deletions docs/themes/vue/source/js/vue-carousel.min.js

Large diffs are not rendered by default.

Loading

0 comments on commit e1dda54

Please sign in to comment.