-
Notifications
You must be signed in to change notification settings - Fork 266
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
23561c4
commit 71f0a53
Showing
24 changed files
with
308 additions
and
229 deletions.
There are no files selected for viewing
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
12 changes: 9 additions & 3 deletions
12
src/packages/address/__test__/__snapshots__/address.spec.tsx.snap
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
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 |
Oops, something went wrong.