vue-masonry
Advanced tools
Comparing version 0.10.1 to 0.10.2
@@ -0,0 +0,0 @@ // http://eslint.org/docs/user-guide/configuring |
@@ -0,0 +0,0 @@ { |
@@ -0,0 +0,0 @@ import {VueMasonryPlugin} from './src/VueMasonry.vue' |
{ | ||
"name": "vue-masonry", | ||
"version": "0.10.1", | ||
"version": "0.10.2", | ||
"description": "masonry layout for vue.js", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -39,2 +39,4 @@ # vue-masonry | ||
- ```origin-top="false"``` - set to group elements to the bottom instead of top by default | ||
- ```stamp=".stamp"``` - specifies which elements are stamped within the layout | ||
- ```gutter="10"``` - specifies [horizontal space between item elements](https://masonry.desandro.com/options.html#gutter). | ||
@@ -44,5 +46,10 @@ | ||
### Questions, bugs | ||
- Check the [original masonry library docs](https://masonry.desandro.com/options.html) | ||
- Create [an issue](https://github.com/shershen08/vue-masonry/issues) or ping me on twitter [@legkoletat](https://twitter.com/legkoletat) | ||
### License | ||
MIT |
@@ -10,3 +10,5 @@ import Vue from 'vue' | ||
'origin-left': 'originLeft', | ||
'origin-top': 'originTop' | ||
'origin-top': 'originTop', | ||
'stamp': 'stamp', | ||
'gutter': 'gutter' | ||
} | ||
@@ -21,4 +23,4 @@ const EVENT_ADD = 'vuemasonry.itemAdded' | ||
let res = {} | ||
let attrsrray = Array.prototype.slice.call(attrs) | ||
attrsrray.forEach(function (attr) { | ||
let attributesArray = Array.prototype.slice.call(attrs) | ||
attributesArray.forEach((attr) => { | ||
if (Object.keys(attributesMap).indexOf(attr.name) > -1) { | ||
@@ -25,0 +27,0 @@ res[ attributesMap[ attr.name ] ] = (attr.name.indexOf('origin') > -1) ? stringToBool(attr.value) : attr.value |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
7214
127
54