-
Notifications
You must be signed in to change notification settings - Fork 266
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
feat: v15 popup #2844
Merged
Merged
feat: v15 popup #2844
Changes from 6 commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
71e34d2
feat: v15 popup
xiaoyatong 808e9cc
fix: popup 不该是 overflow-y auto
xiaoyatong f19d4a7
fix: timeselect test fixed
xiaoyatong 39762e1
fix: 修订 鸿蒙下demo样式
xiaoyatong dce1bc6
fix: icon 大小
xiaoyatong 563271c
fix: 调整了标题中标题和副标题的间距
xiaoyatong 97b0243
fix: return back
xiaoyatong 3654237
Merge branch 'feat_v3.x' into v-popup
xiaoyatong 89ecff4
test: fixed
xiaoyatong 534c260
fix: merge
xiaoyatong e70cef6
fix: 调整标题和描述间距,增加test
xiaoyatong b9f3aed
fix: address left null
xiaoyatong 307fc95
test: address
xiaoyatong f565985
test: addrss
xiaoyatong ff54e0a
test: add tests
xiaoyatong f2f8712
test: add tests
xiaoyatong 33b8f84
test: add test
xiaoyatong 196d4a3
chore: change version
xiaoyatong f13ddcf
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
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains 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 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 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 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,25 +1,28 @@ | ||
import React, { useState } from 'react' | ||
import { Popup, Cell } from '@nutui/nutui-react' | ||
|
||
const Demo1 = () => { | ||
const [showBasic, setShowBasic] = useState(false) | ||
const Demo = () => { | ||
const [showIcon, setShowIcon] = useState(false) | ||
|
||
return ( | ||
<> | ||
<Cell | ||
title="展示弹出层" | ||
title="基础弹框" | ||
onClick={() => { | ||
setShowBasic(true) | ||
setShowIcon(true) | ||
}} | ||
/> | ||
<Popup | ||
zIndex={2000} | ||
visible={showBasic} | ||
style={{ padding: '30px 50px' }} | ||
closeable | ||
visible={showIcon} | ||
title="标题" | ||
description="这里是副标题这是副标题" | ||
position="bottom" | ||
onClose={() => { | ||
setShowBasic(false) | ||
setShowIcon(false) | ||
}} | ||
/> | ||
</> | ||
) | ||
} | ||
export default Demo1 | ||
export default Demo |
This file contains 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 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,35 +1,28 @@ | ||
import React, { useState } from 'react' | ||
import { Popup, Cell } from '@nutui/nutui-react-taro' | ||
import { ScrollView, Text } from '@tarojs/components' | ||
|
||
const Demo1 = () => { | ||
const [showBasic, setShowBasic] = useState(false) | ||
const Demo = () => { | ||
const [showIcon, setShowIcon] = useState(false) | ||
|
||
return ( | ||
<> | ||
<Cell | ||
title="展示弹出层" | ||
title="基础弹框" | ||
onClick={() => { | ||
setShowBasic(true) | ||
setShowIcon(true) | ||
}} | ||
/> | ||
<Popup | ||
visible={showBasic} | ||
style={{ padding: '30px 50px' }} | ||
closeable | ||
visible={showIcon} | ||
title="标题" | ||
description="这里是副标题这是副标题" | ||
position="bottom" | ||
onClose={() => { | ||
setShowBasic(false) | ||
setShowIcon(false) | ||
}} | ||
> | ||
<ScrollView style={{ height: '200px', overflowY: 'scroll' }}> | ||
{Array.from({ length: 1 }) | ||
.fill('') | ||
.map((_, i) => ( | ||
<Cell key={i}> | ||
<Text>正文</Text> | ||
</Cell> | ||
))} | ||
</ScrollView> | ||
</Popup> | ||
/> | ||
</> | ||
) | ||
} | ||
export default Demo1 | ||
export default Demo |
This file contains 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 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.
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.
这个文件不提交