-
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: 已适配组件, demo不在环境判断+demo优化 (#2388)
* fix(price): demo优化 * fix(countdown): demo中已适配组件不在环境判断 * fix: demo增加header * fix(divider): demo优化 * fix(switch): demo 优化
- Loading branch information
Showing
48 changed files
with
226 additions
and
302 deletions.
There are no files selected for viewing
This file was deleted.
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
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,11 +1,11 @@ | ||
import React from 'react' | ||
import { Divider } from '@nutui/nutui-react' | ||
import { Cell, Divider } from '@nutui/nutui-react' | ||
|
||
const Demo1 = () => { | ||
return ( | ||
<> | ||
<Cell> | ||
<Divider /> | ||
</> | ||
</Cell> | ||
) | ||
} | ||
export default Demo1 |
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,11 +1,11 @@ | ||
import React from 'react' | ||
import { Divider } from '@nutui/nutui-react' | ||
import { Cell, Divider } from '@nutui/nutui-react' | ||
|
||
const Demo2 = () => { | ||
return ( | ||
<> | ||
<Cell> | ||
<Divider>文本</Divider> | ||
</> | ||
</Cell> | ||
) | ||
} | ||
export default Demo2 |
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,11 +1,11 @@ | ||
import React from 'react' | ||
import { Divider } from '@nutui/nutui-react' | ||
import { Cell, Divider } from '@nutui/nutui-react' | ||
|
||
const Demo4 = () => { | ||
return ( | ||
<> | ||
<Cell> | ||
<Divider style={{ borderStyle: 'dashed' }}>文本</Divider> | ||
</> | ||
</Cell> | ||
) | ||
} | ||
export default Demo4 |
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,11 +1,11 @@ | ||
import React from 'react' | ||
import { Divider } from '@nutui/nutui-react-taro' | ||
import { Cell, Divider } from '@nutui/nutui-react-taro' | ||
|
||
const Demo1 = () => { | ||
return ( | ||
<> | ||
<Cell> | ||
<Divider /> | ||
</> | ||
</Cell> | ||
) | ||
} | ||
export default Demo1 |
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,11 +1,11 @@ | ||
import React from 'react' | ||
import { Divider } from '@nutui/nutui-react-taro' | ||
import { Cell, Divider } from '@nutui/nutui-react-taro' | ||
|
||
const Demo2 = () => { | ||
return ( | ||
<> | ||
<Cell> | ||
<Divider>文本</Divider> | ||
</> | ||
</Cell> | ||
) | ||
} | ||
export default Demo2 |
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,7 +1,11 @@ | ||
import React from 'react' | ||
import { Divider } from '@nutui/nutui-react-taro' | ||
import { Cell, Divider } from '@nutui/nutui-react-taro' | ||
|
||
const Demo4 = () => { | ||
return <Divider style={{ borderStyle: 'dashed' }}>文本</Divider> | ||
return ( | ||
<Cell> | ||
<Divider style={{ borderStyle: 'dashed' }}>文本</Divider> | ||
</Cell> | ||
) | ||
} | ||
export default Demo4 |
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,16 +1,16 @@ | ||
import React from 'react' | ||
import { Divider } from '@nutui/nutui-react-taro' | ||
import { Cell, Divider } from '@nutui/nutui-react-taro' | ||
import { Text } from '@tarojs/components' | ||
|
||
const Demo6 = () => { | ||
return ( | ||
<> | ||
<Cell align="center"> | ||
<Text>文本</Text> | ||
<Divider direction="vertical" /> | ||
<Text style={{ color: '#1989fa' }}>链接</Text> | ||
<Divider direction="vertical" /> | ||
<Text style={{ color: '#1989fa' }}>链接</Text> | ||
</> | ||
</Cell> | ||
) | ||
} | ||
export default Demo6 |
Oops, something went wrong.