1.0.3 • Published 6 years ago

circle-process-bar v1.0.3

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

circle-process-bar

circle-process-bar is a kind of lightweight javacript library about creating custom circle-process-bar.

DEMO

https://ruichengping.github.io/circle-process-bar/site/

Dependencies

  • jquery

Attentions: circle-process-bar does not import jquery,you should import jquery by yourself

INSTALL

npm i circle-process-bar --save

HOW TO USE

Execute circleProcessBar,you will get a html string about circle-process-bar.

import CircleProcessBar from 'circle-process-bar';

// return an  html fragment code
CircleProcessBar({
            percent: 0.7
            ...
       });

       

PARAMETER INSTRUCTIONS

PARAMETERNEEDTYPEDEFAULTINSTRUCTIONS
percentYESNumberthe process of circle-process-bar ,RANGE:0~1
widthNONumber100the diameter of circle-process-bar,UNIT:px
strokeWidthNONumber6the width of line,UNIT:px
strokeColorNOString#52c41aline color
bgColorNOString#f8f8f8background color
fontColorNOString#999text color
fontSizeNOString14pxtext fontsize
formatNOFunctionbuilt-in functionscustom function for formating text
footerNOFunctionbuilt-in functionscustom function for extensions in footer

License

MIT License

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago