forked from jdf2e/nutui-react
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'hxy/0603/progress' into f-rn
- Loading branch information
Showing
19 changed files
with
228 additions
and
156 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
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 { Progress } from '@nutui/nutui-react' | ||
import { Cell, Progress } from '@nutui/nutui-react' | ||
|
||
const Demo1 = () => { | ||
return <Progress percent={30} /> | ||
return ( | ||
<Cell> | ||
<Progress percent={30} /> | ||
</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,14 +1,16 @@ | ||
import React from 'react' | ||
import { Progress } from '@nutui/nutui-react' | ||
import { Progress, Cell } from '@nutui/nutui-react' | ||
|
||
const Demo2 = () => { | ||
return ( | ||
<Progress | ||
percent={30} | ||
color="var(--nutui-color-primary)" | ||
background="var(--nutui-brand-1)" | ||
strokeWidth="15" | ||
/> | ||
<Cell> | ||
<Progress | ||
percent={30} | ||
color="var(--nutui-color-primary)" | ||
background="var(--nutui-brand-1)" | ||
strokeWidth="15" | ||
/> | ||
</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 { Progress } from '@nutui/nutui-react' | ||
import { Cell, Progress } from '@nutui/nutui-react' | ||
|
||
const Demo3 = () => { | ||
return <Progress percent={50} showText /> | ||
return ( | ||
<Cell> | ||
<Progress percent={50} showText /> | ||
</Cell> | ||
) | ||
} | ||
export default Demo3 |
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,15 +1,17 @@ | ||
import React from 'react' | ||
import { Progress, Image } from '@nutui/nutui-react' | ||
import { Progress, Image, Cell } from '@nutui/nutui-react' | ||
|
||
const Demo4 = () => { | ||
return ( | ||
<Progress percent={60} showText> | ||
<Image | ||
width="30px" | ||
height="30px" | ||
src="https://img11.360buyimg.com/imagetools/jfs/t1/137646/13/7132/1648/5f4c748bE43da8ddd/a3f06d51dcae7b60.png" | ||
/> | ||
</Progress> | ||
<Cell> | ||
<Progress percent={60} showText> | ||
<Image | ||
width="30px" | ||
height="30px" | ||
src="https://img11.360buyimg.com/imagetools/jfs/t1/137646/13/7132/1648/5f4c748bE43da8ddd/a3f06d51dcae7b60.png" | ||
/> | ||
</Progress> | ||
</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,7 +1,11 @@ | ||
import React from 'react' | ||
import { Progress } from '@nutui/nutui-react' | ||
import { Cell, Progress } from '@nutui/nutui-react' | ||
|
||
const Demo8 = () => { | ||
return <Progress percent={30} lazy delay={500} /> | ||
return ( | ||
<Cell align="center"> | ||
<Progress percent={30} lazy delay={500} /> | ||
</Cell> | ||
) | ||
} | ||
export default Demo8 |
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 { Progress } from '@nutui/nutui-react-taro' | ||
import { Cell, Progress } from '@nutui/nutui-react-taro' | ||
|
||
const Demo1 = () => { | ||
return <Progress percent={30} /> | ||
return ( | ||
<Cell> | ||
<Progress percent={30} /> | ||
</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,14 +1,25 @@ | ||
import React from 'react' | ||
import { Progress } from '@nutui/nutui-react-taro' | ||
import { Cell, Progress } from '@nutui/nutui-react-taro' | ||
import Taro from '@tarojs/taro' | ||
|
||
const Demo2 = () => { | ||
return ( | ||
<Progress | ||
percent={30} | ||
color="var(--nutui-color-primary)" | ||
background="var(--nutui-brand-1)" | ||
strokeWidth="15" | ||
/> | ||
<Cell> | ||
<Progress | ||
percent={30} | ||
color={ | ||
['HARMONY', 'RN'].includes(Taro.getEnv()) | ||
? '#FF0F23' | ||
: 'var(--nutui-color-primary)' | ||
} | ||
background={ | ||
['HARMONY', 'RN'].includes(Taro.getEnv()) | ||
? '#FFEAE8' | ||
: 'var(--nutui-brand-1)' | ||
} | ||
strokeWidth="15" | ||
/> | ||
</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 { Progress } from '@nutui/nutui-react-taro' | ||
import { Cell, Progress } from '@nutui/nutui-react-taro' | ||
|
||
const Demo3 = () => { | ||
return <Progress percent={50} showText /> | ||
return ( | ||
<Cell> | ||
<Progress percent={50} showText /> | ||
</Cell> | ||
) | ||
} | ||
export default Demo3 |
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,15 +1,17 @@ | ||
import React from 'react' | ||
import { Progress, Image } from '@nutui/nutui-react-taro' | ||
import { Progress, Image, Cell } from '@nutui/nutui-react-taro' | ||
|
||
const Demo4 = () => { | ||
return ( | ||
<Progress percent={60} showText> | ||
<Image | ||
width="30px" | ||
height="30px" | ||
src="https://img11.360buyimg.com/imagetools/jfs/t1/137646/13/7132/1648/5f4c748bE43da8ddd/a3f06d51dcae7b60.png" | ||
/> | ||
</Progress> | ||
<Cell> | ||
<Progress percent={60} showText> | ||
<Image | ||
width="30px" | ||
height="30px" | ||
src="https://img11.360buyimg.com/imagetools/jfs/t1/137646/13/7132/1648/5f4c748bE43da8ddd/a3f06d51dcae7b60.png" | ||
/> | ||
</Progress> | ||
</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
Oops, something went wrong.