0.2.5 • Published 3 years ago

vue-water-flow v0.2.5

Weekly downloads
-
License
-
Repository
-
Last release
3 years ago

water-flow

简单的瀑布流图片展示

Install

npm install vue-water-flow -S -D

Use

入口main.js:
import WaterFlow from "vue-water-flow";
Vue.use(WaterFlow)

在页面直接使用:
<WaterFlow :dataList="list" :colNum="2" @OnHandler="handlerTest" />

 data() {
    return {
      list: [
        { path: "https://picsum.photos/200/200" },
        { path: "https://picsum.photos/200/303" },
        {
          path: "https://picsum.photos/200/310",
        },
        {
          path: "https://picsum.photos/200/300",
        },
        {
          path: "https://picsum.photos/200/400",
        },
      ],
    };
 }

props

  itemType: [String] 元素是否有圆角,默认`default` 
            default: 无圆角
              round: 有圆角

  colNum:   [String,Number] 元素每行个数,默认`2` 
  dataList: [Array] 元素列表
      注意: 可参考用例, [{path: "xxxxxx"}], 关键字段`path`

Event

  OnHandler: 点击获取当前元素 信息:
  
  handlerTest(res) {
    console.log("ces", res);
  },
0.2.5

3 years ago

0.2.3

3 years ago

0.2.2

3 years ago

0.2.1

3 years ago

0.1.9

3 years ago

0.1.8

3 years ago

0.1.7

3 years ago

0.1.6

3 years ago

0.1.5

3 years ago

0.1.3

3 years ago

0.1.2

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago