Package Exports
- @tntx/risk-rate
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@tntx/risk-rate) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
风险评估结果
安装
npm i @tntx/risk-rate --save
使用
import React from 'react';
import RiskRate from '@tntx/risk-rate';
export default () => {
return (
<RiskRate
color='#07C790'
text='通过'
count={67}
width={100}
/>
);
};
API
| 参数 | 说明 | 类型 | 是否必须 | 默认值 | | --------------- | --------------- | ------ | -------- | ------ | | width | 水波球宽度 | string | 否 | 200px | | color | 水波球颜色(十六进制) | string | 否 | #07C790 | | text | 评估结果文字 | string | 是 | | count | 评估结果分数 | Number | 否 | 0 |