What is the problem with the scrolling of Vue components?

Click a button on the parent component, exhale the child component, and occupy the entire screen.
when scrolling over a child component, the parent component also starts at the original scroll position and scrolls the corresponding distance.

how do I make scrolling valid only in the current component?

Mar.03,2021

set the overflow of the parent component to hidden, when the child component pops up when


  1. after an operation, you still have to guess how you wrote it.
  2. Don't want to move the parent element, just let it be fixed.
Menu