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.68k stars 266 forks source link

🐛 [Bug]: Modal组件移动位置后滚动条失效 #2432

Open Aklscc opened 4 weeks ago

Aklscc commented 4 weeks ago

Version

latest

Vue Version

latest

Link to minimal reproduction

https://opentiny.design/vue-playground?cmpId=modal&fileName=lock-scroll.vue&apiMode=Composition&mode=pc&theme=smb

Step to reproduce

  1. Modal的内容超出当前页面
  2. Modal的顶部出现移动箭头,单击一下,会出现如下问题
    • Modal自动跳转到底部
    • Modal的滚动条被自动锁住

What is expected

Modal正常被操作

What is actually happening

  1. Modal的内容超出当前页面
  2. Modal的顶部出现移动箭头,单击一下,会出现如下问题
    • Modal自动跳转到底部
    • Modal的滚动条被自动锁住

What is your project name

https://opentiny.design/vue-playground?cmpId=modal&fileName=lock-scroll.vue&apiMode=Composition&mode=pc&theme=smb

Any additional comments (optional)

No response

Issues-translate-bot commented 4 weeks ago

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


Title: 🐛 [Bug]: The scroll bar fails after the Modal component moves its position