-
Notifications
You must be signed in to change notification settings - Fork 282
feat(v15): indicator adaptation #2746
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
12 commits
Select commit
Hold shift + click to select a range
ea770d1
feat(v14): indicator adaptation
oasis-cloud 68fad76
feat(v14): indicator adaptation
oasis-cloud 6cddb63
feat: 增加视觉限制最大宽度
oasis-cloud b9ce36e
Merge branch 'feat_v3.x' into v14/indicator
oasis-cloud a6bd87e
fix: review
oasis-cloud 9915970
fix: update test
oasis-cloud d35a0be
Merge branch 'feat_v3.x' into v14/indicator
oasis-cloud 9559885
fix: 覆盖率
oasis-cloud 854b67a
Merge branch 'feat_v3.x' into v14/indicator
xiaoyatong f30567f
fix: review
oasis-cloud a5818bc
Merge branch 'feat_v3.x' into v14/indicator
oasis-cloud e925231
fix: review
oasis-cloud 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1045,6 +1045,7 @@ | |
"sort": 16, | ||
"show": true, | ||
"taro": true, | ||
"v15": true, | ||
"author": "liukun" | ||
}, | ||
{ | ||
|
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 |
---|---|---|
@@ -1,38 +1,61 @@ | ||
import React from 'react' | ||
import { Indicator, Cell } from '@nutui/nutui-react' | ||
import { Cell, Indicator } from '@nutui/nutui-react' | ||
|
||
const Demo4 = () => { | ||
return ( | ||
<Cell> | ||
<Indicator total={6} current={5} direction="vertical"> | ||
<div | ||
<> | ||
<Cell> | ||
<Indicator total={6} current={5} direction="vertical"> | ||
<div | ||
style={{ | ||
display: 'inline-block', | ||
width: '14px', | ||
height: '14px', | ||
lineHeight: '14px', | ||
textAlign: 'center', | ||
fontSize: '12px', | ||
color: '#FFFFFF', | ||
border: '1px solid #FFFFFF', | ||
borderRadius: '50%', | ||
margin: '4px', | ||
background: `var(--nutui-color-primary)`, | ||
boxShadow: `0 0 1px 1px var(--nutui-color-primary)`, | ||
}} | ||
> | ||
{5} | ||
</div> | ||
</Indicator> | ||
<Indicator | ||
total={6} | ||
current={2} | ||
direction="vertical" | ||
style={{ | ||
display: 'inline-block', | ||
width: '14px', | ||
height: '14px', | ||
lineHeight: '14px', | ||
textAlign: 'center', | ||
fontSize: '12px', | ||
color: '#FFFFFF', | ||
border: '1px solid #FFFFFF', | ||
borderRadius: '50%', | ||
margin: '4px', | ||
background: `var(--nutui-color-primary)`, | ||
boxShadow: `0 0 1px 1px var(--nutui-color-primary)`, | ||
marginLeft: '50px', | ||
}} | ||
> | ||
{5} | ||
</div> | ||
</Indicator> | ||
<Indicator | ||
total={6} | ||
current={2} | ||
direction="vertical" | ||
style={{ | ||
marginLeft: '50px', | ||
}} | ||
/> | ||
</Cell> | ||
/> | ||
|
||
<Indicator | ||
total={6} | ||
current={5} | ||
direction="vertical" | ||
type="slide" | ||
style={{ | ||
marginLeft: '50px', | ||
}} | ||
/> | ||
</Cell> | ||
<Cell style={{ background: '#C2C4CC' }}> | ||
<Indicator | ||
total={6} | ||
current={2} | ||
direction="vertical" | ||
color="white" | ||
style={{ | ||
marginLeft: '50px', | ||
}} | ||
/> | ||
</Cell> | ||
</> | ||
) | ||
} | ||
export default Demo4 |
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,13 @@ | ||
import React from 'react' | ||
import { Cell, Indicator } from '@nutui/nutui-react' | ||
|
||
const Demo5 = () => { | ||
return ( | ||
<> | ||
<Cell style={{ background: '#C2C4CC' }}> | ||
<Indicator total={3} current={0} color="white" /> | ||
</Cell> | ||
</> | ||
) | ||
} | ||
export default Demo5 |
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,16 @@ | ||
import React from 'react' | ||
import { Cell, Indicator } from '@nutui/nutui-react' | ||
|
||
const Demo6 = () => { | ||
return ( | ||
<> | ||
<Cell> | ||
<Indicator total={3} current={2} type="slide" /> | ||
</Cell> | ||
<Cell> | ||
<Indicator total={3} current={2} type="slide" direction="vertical" /> | ||
</Cell> | ||
</> | ||
) | ||
} | ||
export default Demo6 |
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.