更新记录

0.0.1(2022-07-04)

<style> .CanvasBox { width: 100%; height: 100%; position: absolute; top: 0px; left: 0px; display: flex; justify-content: center; align-items: center; } </style>

平台兼容性

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

进度条控制

<template>
    <view class="content">
        <iCircle :percent="percent" :size="580" :stroke-color="color" :dashboard="true" BgId="BgId1" InId="InId1">

            <view class="kongzhiBox">
                <view class="titles">
                    温度℃
                </view>
                <view class="center">
                    <i @click.stop='temperatureJian' >-</i>
                    <text>{{params.temperature || '-'}}</text>
                    <i @click.stop='temperatureAdd'>+</i>
                </view>

            </view>
            <view slot="canvas">
                <canvas class="CanvasBox strokeCanvas" canvas-id="BgId1"></canvas>
                <canvas class="CanvasBox trailCanvas" canvas-id="InId1"></canvas>
            </view>
        </iCircle>
    </view>
</template>

<script>
    import iCircle from '@/components/circle-rang/circle-rang.vue';
    export default {
        data() {
            return {
                title: 'Hello',
                device: {
                    tem: 20,
                    humi: 10
                },
                params: {

                    temperature: 15
                },
                percent: 60
            }
        },
        components: {
            iCircle
        },
        onLoad() {

        },
        methods: {
            temperatureJian() {

            },
            temperatureAdd() {

            }

        }
    }
</script>

<style>

    .CanvasBox {
        width: 100%;
        height: 100%;
        position: absolute;
        top: 0px;
        left: 0px;
        display: flex;
        justify-content: center;
        align-items: center;
    }

</style>

隐私、权限声明

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

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

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

许可协议

MIT协议

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