Coder Social home page Coder Social logo

miniprogress's Introduction

miniProgress (本项目是一个使用了自定义组件的代码片段)

自定义 半圆进环度条 canvas绘制

效果

体验代码片段

半圆环进度条

使用

直接将 <miniprogress />组件,引入要使用的页面

<view class='progress'>
    <miniprogress score="60" />
</view>

progress.wxss

.progress {
    padding: 0 10%;
    background: #5182e9;
    height: 320rpx;
}

并在该页面的json文件中将 <miniprogress /> 关联

"usingComponents": {
      "miniprogress": "../common/miniprogress/miniprogress"
}

注:自定义组件即为common文件夹下的文件

miniprogress's People

Contributors

fikyair avatar

Stargazers

 avatar QihuCMS avatar Romen avatar Yuting avatar  avatar  avatar A avatar  avatar  avatar soypeot avatar Seeker avatar seedling avatar

miniprogress's Issues

感谢+求助

您好,我是使用了您这个项目,十分感谢您的开源,但是我由于没有用过canvas这个技术,就是给这个组件动态赋值的时候会出现问题,这个能帮忙解决一下吗,期待您的回复

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.