0.0.2 • Published 4 years ago

vue2-masonry v0.0.2

Weekly downloads
5
License
-
Repository
-
Last release
4 years ago

vue2-masonry

GitHub stars npm npm npm bundle size

Install

# Using npm
npm i vue2-masonry -S

# Using yarn
yarn add vue2-masonry

Import

/* in xxx.vue */

import Masonry from "vue2-masonry";

export default {
    ...
    components: { Masonry },
    ...
};

Props

NameDescriptionTypeDefault
listPicture arrayarray[]
url-namePicture urlStringurl
gap-widthPicture horizontal spacingstring | number10
gap-heightPicture vertical spacingstring | number10
colNumber of vertical arrangement(Mutually exclusive with width)string | number-
widthPicture width(Mutually exclusive with col)string | number300
radiusBorder Radiusstring | number5
shadowCard shadowstring0 2px 12px 0 rgba(0, 0, 0, 0.1)

Methods

Use ref to get Masonry instance and call instance methods Name |Description|Return value -|-|- reset|reset Masonry |-