tdesign-mobile-vue
Version:
tdesign-mobile-vue
45 lines (36 loc) • 660 B
text/less
@import "../../../base.less";
@import "./_var.less";
.@{prefix}-swiper {
position: relative;
box-sizing: border-box;
font-weight: normal;
border-radius: @swiper-border-radius;
overflow: hidden;
&-item {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
flex-shrink: 0;
& > * {
border-radius: @swiper-border-radius;
}
}
// 主要容器
&__container {
height: 100%;
width: auto;
position: relative;
}
&__item {
overflow: hidden;
img {
height: 100%;
width: 100%;
}
}
&--outside {
padding-bottom: @swiper-placement-outside-padding;
}
}