-
Notifications
You must be signed in to change notification settings - Fork 269
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix: 优化 divider 垂直类型写法 * fix: 移除冗余代码 * fix: 优化demo写法 * fix: 移除无用属性
- Loading branch information
Showing
9 changed files
with
25 additions
and
23 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
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,21 +1,30 @@ | ||
import React from 'react' | ||
import { Divider } from '@nutui/nutui-react-taro' | ||
import { View, Text } from '@tarojs/components' | ||
|
||
const Demo6 = () => { | ||
return ( | ||
<> | ||
<div> | ||
文本 | ||
<Divider direction="vertical" /> | ||
<a href="#" style={{ color: '#1989fa' }}> | ||
链接 | ||
</a> | ||
<Divider direction="vertical" /> | ||
<a href="#" style={{ color: '#1989fa' }}> | ||
链接 | ||
</a> | ||
</div> | ||
</> | ||
<View> | ||
文本 | ||
<Divider direction="vertical" /> | ||
<Text | ||
onClick={() => { | ||
console.log('跳转') | ||
}} | ||
style={{ color: '#1989fa', verticalAlign: 'middle' }} | ||
> | ||
链接 | ||
</Text> | ||
<Divider direction="vertical" /> | ||
<Text | ||
onClick={() => { | ||
console.log('跳转') | ||
}} | ||
style={{ color: '#1989fa', verticalAlign: 'middle' }} | ||
> | ||
链接 | ||
</Text> | ||
</View> | ||
) | ||
} | ||
export default Demo6 |
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