更新记录

1.0.3(2024-06-04) 下载此版本

1.0.3

1.0.2(2024-05-31) 下载此版本

1.0.2

1.0.1(2024-05-31) 下载此版本

1.0.1

查看更多

平台兼容性

HbuilderX/cli最低兼容版本
3.1.0

uni-app

Vue2 Vue3
?
app-vue app-nvue app-android app-ios app-harmony
? ? ? ? ?
H5-Safari Android Browser 微信浏览器(Android) QQ浏览器(Android) Chrome IE Edge Firefox PC-Safari
? ? ? ? ? ? ? ? ?
微信小程序 支付宝小程序 百度小程序 字节小程序 QQ小程序 钉钉小程序 快手小程序 飞书小程序 京东小程序
? ? ? ? ? ? ? ? ?
快应用-华为 快应用-联盟
? ?

uni-app x

app-android app-ios
? ?
H5-Safari Android Browser 微信浏览器(Android) QQ浏览器(Android) Chrome IE Edge Firefox PC-Safari
? ? ? ? ? ? ? ? ?

qying-circular-progress

  • 圆形进度条,支持Nvue和vue
  • 支持设置进度条最大值
  • 借鉴于: 此插件 在此感谢

使用方式

<template>
    <view class="qying_circle_progress">
        <view class="circle_item">
            <text class="max_val">默认: 100</text>
            <qyingCircleProgress originalColor="#ececec" processColor="#2979ff" innerbgColor="#fff" :process="process"
                :radius="150" :barWidth="20">
                <text class="btntext">{{process}}</text>
            </qyingCircleProgress>
        </view>
        <view class="circle_item">
            <text class="max_val">最大值: 30</text>
            <qyingCircleProgress originalColor="#ececec" processColor="#ff9900" innerbgColor="#fff" :process="process"
                :radius="150" :barWidth="20" :max="30">
                <text class="btntext">{{process}}</text>
            </qyingCircleProgress>
        </view>
        <view class="circle_item">
            <text class="max_val">最大值: 30  宽度: 100</text>
            <qyingCircleProgress originalColor="#ececec" processColor="#19BE6B" innerbgColor="#fff" :process="process"
                :radius="100" :barWidth="15" :max="30">
                <text class="btntext">{{process}}</text>
            </qyingCircleProgress>
        </view>
    </view>
</template>

<script>
    import qyingCircleProgress from '@/uni_modules/qying-progress/components/qying-progress/qying-progress.vue';
    export default {
        components: {
            qyingCircleProgress
        },
        data() {
            return {
                process: 20,
            }
        },
        onLoad() {

        },
        methods: {
        }

    }
</script>

<style scoped>
    .circle_item{
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-top: 30rpx;
    }
    .max_val{
        font-size: 30rpx;
        font-weight: bold;
        margin-bottom: 20rpx;
    }
    .btntext {
        color: #000;
        font-size: 40rpx;
        font-weight: bold;
    }

</style>

参数

参数 说明 类型 默认值
processColor 进度条的颜色 String #2979ff
originalColor 进度条灰度时的颜色 String #ececec
innerbgColor 进度条中间圆的背景色 String #ffffff
process 当前进度 Number 10
radius 组件的大小,最好设置为双数,因为要转为rpx(rpx) Number 100
barWidth 进度条的宽度(rpx) Number 15
max 进度条的最大值 Number 100

隐私、权限声明

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

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

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

许可协议

MIT协议

暂无用户评论。

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