Skip to content

Commit

Permalink
fix(image): standardize demos (#2177)
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex-huxiyang authored Apr 19, 2024
1 parent e82122e commit 6c775d4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 10 deletions.
4 changes: 0 additions & 4 deletions src/packages/image/demos/taro/demo2.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@ const Demo2 = () => {
radius="50%"
/>
</Col>
</Row>
<Row gutter={10}>
<Col span="8">
<Image
src={src}
Expand All @@ -27,8 +25,6 @@ const Demo2 = () => {
radius="50%"
/>
</Col>
</Row>
<Row gutter={10}>
<Col span="8">
<Image
src={src}
Expand Down
6 changes: 3 additions & 3 deletions src/packages/image/demos/taro/demo6.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import React from 'react'
import { Cell, Col, Image } from '@nutui/nutui-react-taro'
import { Row, Col, Image } from '@nutui/nutui-react-taro'

const Demo6 = () => {
const src =
'https://storage.360buyimg.com/imgtools/e067cd5b69-07c864c0-dd02-11ed-8b2c-d7f58b17086a.png'
return (
<>
<Cell style={{ flexWrap: 'wrap' }}>
<Row gutter={10}>
{[
'scaleToFill',
'aspectFit',
Expand All @@ -20,7 +20,7 @@ const Demo6 = () => {
</Col>
)
})}
</Cell>
</Row>
</>
)
}
Expand Down
6 changes: 3 additions & 3 deletions src/packages/image/demos/taro/demo7.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import React from 'react'
import { Cell, Col, Image } from '@nutui/nutui-react-taro'
import { Row, Col, Image } from '@nutui/nutui-react-taro'

const Demo7 = () => {
const src =
'https://storage.360buyimg.com/imgtools/e067cd5b69-07c864c0-dd02-11ed-8b2c-d7f58b17086a.png'
return (
<>
<Cell style={{ flexWrap: 'wrap' }}>
<Row gutter={10}>
{[
'top',
'bottom',
Expand All @@ -24,7 +24,7 @@ const Demo7 = () => {
</Col>
)
})}
</Cell>
</Row>
</>
)
}
Expand Down

0 comments on commit 6c775d4

Please sign in to comment.