更新记录

1.0.0(2020-04-18)

点击效果-水波纹 内容自定义, 不局限于button【多端支持】


平台兼容性

简介


兼容多端, 自定义内容, 好用的话给个好评

使用

<template>
    <view>
        <waves itemClass="butclass">
            <button >按钮</button>
        </waves>
        <waves itemClass="butclass" wavesColor="#ff9900">
            <button >波纹颜色</button>
        </waves>
        <waves itemClass="custom" @onTap="onTap" wavesColor="#ff9900">
            <view >自定义内容</view>
            <view >自定义内容</view>
        </waves>
    </view>
</template>

<script>
    import waves from '@/components/waves/waves.vue';
    export default {
        data() {
            return {

            };
        },
        methods: {
            onTap() {
                uni.showToast({
                    title: '点击事件',
                    icon: 'none'
                });
            }
        },
        components: {
            waves
        }
    }
</script>

<style lang="scss">
    .butclass {
        margin-top: 50rpx;
    }

    .custom {
        margin-top: 50rpx;
        border: 1rpx solid rgba(0, 0, 0, 0.5);
        height: 300rpx;
        text-align: center;
        line-height: 150rpx;
        border-radius: 100%;
    }
</style>

隐私、权限声明

1. 本插件需要申请的系统权限列表:

2. 本插件采集的数据、发送的服务器地址、以及数据用途说明:

3. 本插件是否包含广告,如包含需详细说明广告表达方式、展示频率:

许可协议

MIT协议

使用中有什么不明白的地方,就向插件作者提问吧~ 我要提问