opentiny / tiny-vue

TinyVue is an enterprise-class UI component library of OpenTiny community, support both Vue.js 2 and Vue.js 3, as well as PC and mobile.
https://opentiny.design/tiny-vue
MIT License
1.54k stars 253 forks source link

🐛 [Carousel]: 垂直模式的时候,设置arrow属性,箭头显示位置有误 #1543

Open AcWrong02 opened 5 months ago

AcWrong02 commented 5 months ago

Version

latest

Vue Version

latest

Link to minimal reproduction

<template>
  <tiny-carousel height="150px" type="vertical" arrow>
    <tiny-carousel-item class="carousel-item-demo" v-for="item in 4" :key="item">
      <h3>{{ item }}</h3>
    </tiny-carousel-item>
  </tiny-carousel>
</template>

<script lang="jsx">
import { Carousel, CarouselItem } from '@opentiny/vue'

export default {
  components: {
    TinyCarousel: Carousel,
    TinyCarouselItem: CarouselItem
  }
}
</script>

<style scoped>
.carousel-item-demo:nth-child(2n) {
  background-color: #fafafa;
}

.carousel-item-demo:nth-child(2n + 1) {
  background-color: #edf0f3;
}
</style>

Step to reproduce

点击链接即可查看效果

What is expected

上下箭头位置合理

What is actually happening

上下箭头重合了

What is your project name

null

Any additional comments (optional)

No response

Issues-translate-bot commented 5 months ago

Bot detected the issue body's language is not English, translate it automatically.


Title: 🐛 [Carousel]: When setting the arrow attribute in vertical mode, the arrow display position is wrong.

James-9696 commented 1 month ago

待评估,纵向模式下,箭头是否需要

Issues-translate-bot commented 1 month ago

Bot detected the issue body's language is not English, translate it automatically.


To be evaluated, whether arrows are needed in portrait mode