1.0.7 • Published 5 years ago
@bj-nsc/progressbar v1.0.7
简单的水平进度条
## 安装和使用
npm 安装
npm i @bj-nsc/progressbaryarn 安装
yarn add @bj-nsc/progressbar在代码里使用
const totalProgressOptions = {
width: 18.75,
height: 1.5,
unit: "vw",
};
<ProgressBar value={100} label={"总进度"} options={totalProgressOptions} />;Props
属性详细说明
value进度值label标签名称showLabel是否显示标签width进度条宽度height进度条高度unit值单位 px|vwradius圆角值bgColor进度条背景barColor进度条颜色labelOptions标签配置 (对象类型)valueOptions进度数值配置 (对象类型)