1.0.3 • Published 2 years ago

uwaterfall v1.0.3

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

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

propsusage
columnCount列数
columnGap间距
1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago