style: 单轮播图居中
This commit is contained in:
@@ -61,7 +61,12 @@ export default function Carousel(props) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<View className={styles["detail-swiper-container"]}>
|
<View
|
||||||
|
className={styles["detail-swiper-container"]}
|
||||||
|
style={
|
||||||
|
list.length === 1 ? { display: "flex", justifyContent: "center" } : {}
|
||||||
|
}
|
||||||
|
>
|
||||||
<View
|
<View
|
||||||
className={styles["detail-swiper-scroll-container"]}
|
className={styles["detail-swiper-scroll-container"]}
|
||||||
style={{ width: listWidth + "px" }}
|
style={{ width: listWidth + "px" }}
|
||||||
|
|||||||
Reference in New Issue
Block a user