-
Notifications
You must be signed in to change notification settings - Fork 291
feat(progress): 兼容并支持taro components的progressProps & v15适配 #3202
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
Merged
Merged
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
5e940cc
feat(progress): 兼容并支持taro components的props
Miles-hxy c83a5f9
feat(progress): 兼容并支持taro components的props
Miles-hxy 6f69804
feat(progress): 兼容并支持taro components的props
Miles-hxy af67ff8
Merge branch 'feat_v3.x' into feat_progress
Miles-hxy 03dd7f1
feat: add docs and demos for progress
Miles-hxy 966b3f6
feat: 属性对齐web h5
Miles-hxy f3aa312
feat: 属性对齐web h5
Miles-hxy d1df367
feat: add unit vitest
Miles-hxy 81d06a3
feat: cr review
Miles-hxy 00cb18a
feat: v15
Miles-hxy cbf9a72
feat: v15
Miles-hxy a0f892d
fix: cr
Miles-hxy 158adc6
fix: cr
Miles-hxy File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,39 @@ | ||
| import React, { useState } from 'react' | ||
| import { Cell, Button, Progress } from '@nutui/nutui-react' | ||
|
|
||
| const Demo7 = () => { | ||
| const [value, setValue] = useState(0) | ||
| return ( | ||
| <Cell.Group> | ||
| <Cell align="center" style={{ flexWrap: 'wrap' }}> | ||
| <Progress | ||
| percent={value} | ||
| duration={800} | ||
| style={{ marginBottom: 10 }} | ||
| activeMode="forwards" | ||
| /> | ||
| <Progress percent={value} activeMode="backwards" /> | ||
| </Cell> | ||
| <Cell align="center"> | ||
| <Button | ||
| type="default" | ||
| style={{ marginRight: 16 }} | ||
| onClick={() => { | ||
| setValue(Math.max(0, value - 10)) | ||
| }} | ||
| > | ||
| 减少 | ||
| </Button> | ||
| <Button | ||
| type="primary" | ||
| onClick={() => { | ||
| setValue(Math.min(100, value + 10)) | ||
| }} | ||
| > | ||
| 增加 | ||
| </Button> | ||
| </Cell> | ||
| </Cell.Group> | ||
| ) | ||
| } | ||
| export default Demo7 | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,39 @@ | ||
| import React, { useState } from 'react' | ||
| import { Cell, Button, Progress, pxTransform } from '@nutui/nutui-react-taro' | ||
|
|
||
| const Demo7 = () => { | ||
| const [value, setValue] = useState(0) | ||
| return ( | ||
| <Cell.Group> | ||
| <Cell align="center" style={{ flexWrap: 'wrap' }}> | ||
| <Progress | ||
| percent={value} | ||
| duration={800} | ||
| style={{ marginBottom: 10 }} | ||
| activeMode="forwards" | ||
| /> | ||
| <Progress percent={value} activeMode="backwards" /> | ||
| </Cell> | ||
| <Cell align="center"> | ||
| <Button | ||
| type="default" | ||
| style={{ marginRight: pxTransform(16) }} | ||
| onClick={() => { | ||
| setValue(Math.max(0, value - 10)) | ||
| }} | ||
| > | ||
| 减少 | ||
Miles-hxy marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| </Button> | ||
| <Button | ||
| type="primary" | ||
| onClick={() => { | ||
| setValue(Math.min(100, value + 10)) | ||
| }} | ||
| > | ||
| 增加 | ||
| </Button> | ||
| </Cell> | ||
| </Cell.Group> | ||
| ) | ||
| } | ||
| export default Demo7 | ||
Miles-hxy marked this conversation as resolved.
Show resolved
Hide resolved
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.