Implementation of waterfall layout in uni-app project

Implementation of waterfall layout in uni-app project

GitHub address, you can star it if you like it

Plugin preview

Tutorial

1. Copy the plugin code

After downloading, copy the waterfall.vue file in the components directory to your own project directory

2. Global configuration of plugins

Configure the following code in main.js in the project

import waterfall from './components/waterfall.vue'

Vue.component('waterfall',waterfall)

3. Use of plugins

Vue page usage

<template>
    <view>
        <!-- Waterfall flow (display: flex) H5 IOS Android support -->
        <waterfall></waterfall>
    </view>
</template>

compatibility

All uni-app projects are compatible

The above is the full content of this article. I hope it will be helpful for everyone’s study. I also hope that everyone will support 123WORDPRESS.COM.

<<:  Summary of four ways to introduce CSS (sharing)

>>:  Common repair methods for MySQL master-slave replication disconnection

Recommend

Analysis of two usages of the a tag in HTML post request

Two examples of the use of the a tag in HTML post...

Will this SQL writing method really cause the index to fail?

Preface There are often some articles on the Inte...

Summary of commonly used operators and functions in MySQL

Let’s build the data table first. use test; creat...

Example of using the href attribute and onclick event of a tag

The a tag is mainly used to implement page jump, ...

Perfect solution to MySQL common insufficient memory startup failure

1. If MySQL is not started successfully, check th...

How to build a deep learning environment running Python in Docker container

Check virtualization in Task Manager, if it is en...

How to upgrade all Python libraries in Ubuntu 18.04 at once

What is pip pip is a Python package management to...

HTML+CSS to implement the sample code of the navigation bar drop-down menu

Effect The pictures in the code can be changed by...

Summary of some common techniques in front-end development

1. How to display the date on the right in the art...

Common failures and reasons for mysql connection failure

=================================================...

Example of implementing element table row and column dragging

The element ui table does not have a built-in dra...