-
-
Notifications
You must be signed in to change notification settings - Fork 162
实现半圆 #20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
实现半圆 #20
Conversation
增加了太多属性了。
应该就足够了。 |
@afc163 也可以,让使用者自己将值转换为百分比。我修改一下 |
@afc163 已经删除了remove value, minValue, MaxValue,只保留了gapWidth和gapPosition |
ci的环境好像不支持ES6的一些写法,检查失败了。 |
Line 11 in 725f238
改为 6 即可。 |
补个用例? |
<td>gapWidth</td> | ||
<td>Number</td> | ||
<td>0</td> | ||
<td>the gap width of half circle</td> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
其实这个我是有点困惑的,是按百分比还是绝对值?绝对值的话,宽度又是相对于什么?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
百分比的确解释起来比较麻烦,绝对值应该比较直观
HISTORY.md
Outdated
--- | ||
|
||
## 2.1.0 | ||
- Add `value` `minValue` `maxValue` `openWidth` `beginPosition` props. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change log 和实际修改不同步。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry,我修改一下
👍 |
增加了属性:
value
: 如果设置将会覆盖percent
, 如果不设置就是要percent
;minValue
: 进度的起点值,例如温度仪表盘,起点不一定是0,这个值缺省0;maxValue
:进度的终点值,缺省100openWidth
:半圆开口的宽度,缺省0beginPosition
:进度起始位置,更重要的是影响半圆开口方向,目前设置了上下左右四个方向,值为:'top', 'bottom', 'left', 'right',缺省向上,保持和以前相同。这部分修改不影响之前的功能。