JackPu / weex-percentage-circle

a component for weex percentage circle

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

weex-percentage-circle

weex-percentage-circle is a component which supports you define your percent and draw the circle.And also you can use it as a progress bar.

shots:

Start

npm i weex-percentage-circle --save
<template>
  <div class="container">
    <div class="item">
        <weex-percentage-circle border-width="2" color="#e74c3c" percent="100" radius="60"></weex-percentage-circle> 
     </div>
     
  </div>
</template>

<style>
  .container{
    display: flex;
    flex-direction: column;
    align-self: center;
    align-items: center;
  }
  
</style>

<script>
  require('weex-percentage-circle')

</script>

Options

Props Type Example Description
color string '#000' the color of border
percent Number 30 the percent you need
radius Number 20 how large the circle is
border-width Number(default 2) 5 the width of percentage progress bar

Contributions

Your contributions and suggestions are welcome ๐Ÿ˜„๐Ÿ˜„๐Ÿ˜„

React-Native-Percentage-Circle

MIT License

About

a component for weex percentage circle


Languages

Language:JavaScript 92.0%Language:Java 7.2%Language:Objective-C 0.7%Language:HTML 0.1%Language:Batchfile 0.0%Language:Ruby 0.0%