progress icon indicating copy to clipboard operation
progress copied to clipboard

Indeterminate Value

Open lyleunderwood opened this issue 3 years ago • 7 comments

It seems like there is not currently a way to specify that the value is indeterminate. DOM's <progress /> and and Android's ProgressBar both support indeterminate modes, can rc-progress?

lyleunderwood avatar Aug 04 '20 22:08 lyleunderwood

rc-progress use percent, maybe I did not understand what you mean.

xrkffgg avatar Nov 16 '20 09:11 xrkffgg

I'm referring specifically to this bit:

image

With a native <progress />, not specifying a value gives us a special indeterminate state, that indicates that something is happening but does not indicate any specific value, or amount of progress. This feature doesn't seem to exist in rc-progress, and I'm suggesting that maybe it should:

image

Here's a sandbox that illustrates how the native component works, and how rc-progress does not support the feature:

https://codesandbox.io/s/crazy-cherry-nprp5?fontsize=14&hidenavigation=1&theme=dark

lyleunderwood avatar Nov 16 '20 18:11 lyleunderwood

Do you have interested to contribute this feature?

zombieJ avatar Nov 17 '20 02:11 zombieJ

I might be able to find time for this, or I might be able to find somebody else to work on it. I mostly wanted to confirm that this is a feature ant would want to support. Sounds like it is.

lyleunderwood avatar Nov 17 '20 19:11 lyleunderwood

I assume that design for this would want to be similar to that of the native component? Is there some particular UI design process you guys use that this kind of feature should go through?

lyleunderwood avatar Nov 17 '20 19:11 lyleunderwood

rc component should support basic ability of native component. We usually realize the ability in rc and fill design style in antd. So it's not force design process in rc component.

zombieJ avatar Nov 18 '20 03:11 zombieJ

Hey guys, Check the PR above do not hesitate if you have any suggestions 😉 @zombieJ @lyleunderwood @xrkffgg

SaidMarar avatar Jan 01 '23 15:01 SaidMarar