Skip to content

peterroe/UWaterfall

Repository files navigation

purpose

基于Vue3.x的瀑布流布局组件

Usage

$ npm install uwaterfall
import { createApp } from 'vue'
import App from './App.vue'

import UWaterfall from 'uwaterfall'  //import component
import 'uwaterfall/dist/style.css'  //import style

createApp(App).use(UWaterfall).mount('#app')
<template>
  <UWaterfall :columnCount="4" columnGap="10px">
    <img src="xxx">
    <img src="xxx">
    <img src="xxx">
    <img src="xxx">
    <img src="xxx">
  </UWaterfall>
</template>

效果预览: Demo

Props

props usage
columnCount 列数
columnGap 间距

About

Vue3-component-layout-waterfall🌊

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published