Commit b31bef40 by 姜雷

Merge branch 'test' into 'master'

Test See merge request !18
parents 749f9c6c 017f66df
......@@ -43,24 +43,16 @@ class Perview extends Component {
afterChange={this.onChangeHandle}
>
{list.length === 1 ? (
<div>
<img
className={styles.carouselImg}
src={list[0].url || list[0]}
alt=""
/>
<div className={styles.carouselImg}>
<img src={list[0].url || list[0]} alt="" />
</div>
) : (
list.map(
(item, index) =>
item ? (
<img
className={styles.carouselImg}
key={index}
src={item.url || item}
alt=""
/>
) : null
list.map((item, index) =>
item ? (
<div className={styles.carouselImg} key={index}>
<img src={item.url || item} alt="" />
</div>
) : null
)
)}
</Carousel>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment