更新记录

1.0.0(2025-07-18)

初始版本


平台兼容性

云端兼容性

阿里云 腾讯云 支付宝云

uni-app x(4.25)

Chrome Safari Android iOS 鸿蒙 微信小程序
- - - -

yzc-circle 类似于apple watch彩虹进度条(uniappx)

示例

<template>
    <view class="wrapper">
        <view class="rainbowPrgress">
            <yzc-cirlce class="cicle" :circleRadius="80" :progress="process1" :strokeWidth="20" strokeColor="#ff006c" :duration="2000" :bgAlpha="0.3" :animation="true"></yzc-cirlce>
            <yzc-cirlce class="cicle" :circleRadius="59" :progress="process2" :strokeWidth="20" strokeColor="#90fd00" :duration="2000" :bgAlpha="0.3" :animation="true"></yzc-cirlce>
            <yzc-cirlce class="cicle" :circleRadius="38" :progress="process3" :strokeWidth="20" strokeColor="#00bcc8" :duration="2000" :bgAlpha="0.3" :animation="true"></yzc-cirlce>
        </view>
    </view>
</template>

<script setup lang="uts">
    import YzcCirlce  from '@/uni_modules/yzc-circle/components/yzc-circle/yzc-circle.uvue'
    const process1 = ref(1.4)
    const process2 = ref(1.3)
    const process3 = ref(1.4)
</script>

<style lang="scss">
.wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: black;
    .rainbowPrgress {
        width: 200px;
        height: 200px;
        .cicle {
            position: absolute;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(255, 0, 0, 0.001);
        }
    }
}
</style>

隐私、权限声明

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

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

插件不采集任何数据

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

暂无用户评论。

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