Skip to content

anymouschina/masonryjs

Repository files navigation

masonryjs

流式拖拽排序

安装

cnpm install @624144061/masonryjs

示例

import Masonry from '@624144061/masonryjs';
Masonry.create(
this.$refs['container'].$el,//容器 docoment
        {
         columnGap:10,
         rowGap:10,
         draggable:true,//拖拽
         scaleable:true//放缩
        })
//更新
Masonry.update();//更新当前容器下的布局

demo

Project setup

yarn install

Compiles and hot-reloads for development

yarn serve

Compiles and minifies for production

yarn build

Customize configuration

See Configuration Reference.

About

流式布局,可拖拽放缩容器,适合二次开发,纯原生。

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published