* Support round/floor/ceil for the current step calculate logic
Always `round` is not really good.
In my case, I really want step current to be 2 when percent is 34% with 3 steps.
Signed-off-by: Đào Văn Hùng <memsenpai3@gmail.com>
* Update Steps.tsx
Signed-off-by: Đào Văn Hùng <memsenpai3@gmail.com>
* Update docs and props
* refactor(Steps): rename stepRound to rounding and update type to function
* fix(Steps): update rounding prop type to specify argument type
* fix(Steps): update rounding prop type to specify parameter name
* docs(Progress): add rounding function description to props table
* fix(Steps): update rounding prop to use custom default function and document default value
* fix(Progress): update rounding prop type to specify parameter name in documentation
* fix(Steps): remove extra comma in default rounding prop assignment
* Update components/progress/index.en-US.md
Signed-off-by: lijianan <574980606@qq.com>
* Update components/progress/index.zh-CN.md
Signed-off-by: lijianan <574980606@qq.com>
---------
Signed-off-by: Đào Văn Hùng <memsenpai3@gmail.com>
Signed-off-by: lijianan <574980606@qq.com>
Co-authored-by: lijianan <574980606@qq.com>
* refactor: Progress rebuild as function component
* refactor: Progress rebuild as function component
* refactor: Progress rebuild as function component
* refactor: Progress rebuild as function component
* refactor: Progress rebuild as function component
* refactor: Progress rebuild as function component
* refactor: Progress rebuild as function component
* test: increase test case of Progress and Comment
* test: add test case for Avatar
* test: add test case for Dropdown
* fix snapshot
* fix snapshot
* remove console.log
* fix lint
* add avatar
* feat: Tag add status props
* feat: change solution for status tag
* fix: fix coding specification issues
* fix coding specification issues in demo
* add Steps subcomponent in Progress component
* update doc and demo
* fix lint
* small change for progress api
* fix lint
* fix wrong omit
* update test suites
* fix test failed
* use inline-block
* fix test issue
* fix ci issue
* update demo
* optimize demo
* update progress api
* fix stylelint issue
* remove overflow
* reset some prettier
* reset some prettier again
* fix test failed
* resolve bad code