更新记录

1.0.0(2023-05-13)

1.0.0


平台兼容性

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

l-circularProgress

传入的值单位都是px 需自行转化适配 例如:宽度{ 需要传入的宽度px = 想要的宽度rpx / 750 * wx.getSystemInfoSync().windowWidth }

使用方法

配置easycom规则后,自动按需引入,无需import组件,直接引用即可。

<template>
    <l-circularProgress :isBgShow="false" :lineWidth="10" boxWidth="100" boxHeight="100" progressColor="#ff7900" fontColor="#5677fc" gradualColor="#5677fc"
      :percent="80"></l-circularProgress>
    <l-circularProgress progressColor="#EB0559" :lineWidth="10" fontColor="#EB0999" gradualColor="#f57900" :percent="100">
    </l-circularProgress>
    <l-circularProgress :fontShow="false" :percent="66" type="halfCircular" :lineWidth="10" gradualColor="#f57900" progressColor="#19be6b" fontColor="#19be6b"
      bgColor="rgba(25,190,107,0.1)" @end="end">
      <view class="text">
        <view>{{num}}/6</view>
        <view class="">已签到/应签到</view>
      </view>
    </l-circularProgress>
</template>

组件属性

属性 类型 默认值 说明
boxWidth Number 100 宽度
boxHeight Number 100 高度
lineWidth Number 4 进度条线条宽度
isBgShow Boolean true 是否显示背景进度条
bgColor String #CCCCCC 背景进度条颜色
type String circular 进度条类型 circular圆形 halfCircular 半圆
percent Number 0 进度百分比
progressColor String #5677fc 进度条颜色
gradualColor String '' 进度条渐变颜色 跟progressColor一起使用
fontShow Boolean true 是否显示进度文字
fontSize Number 12 进度字体大小
fontColor String #5677fc 进度字体颜色

组件事件

名称 触发时机
end 动画结束

插槽

名称 触发时机
slot 自定义文字

隐私、权限声明

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

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

插件不采集任何数据

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

许可协议

MIT协议

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