antd vue solves the a-select drop-down menu in the pop-up box to follow the page scrolling

Official words: If you find that the drop-down menu follows the scrolling of the page, or you need to trigger Select in other pop-up layers, please try to use getPopupContainer={triggerNode => triggerNode.parentNode} to fix the drop-down pop-up rendering node in the parent element of the trigger

       <a-select
          v-model="this.form.data"
          @change="handleChange"
          placeholder="签约状态"
          :getPopupContainer="
            triggerNode => {
              return triggerNode.parentNode
            }
          "
        >
          <a-select-option value="已签约">
            已签约
          </a-select-option>
          <a-select-option value="未签约">
            未签约
          </a-select-option>
          <a-select-option value="待定">
            待定
          </a-select-option>
          <a-select-option value="已解约">
            已解约
          </a-select-option>
        </a-select>

Guess you like

Origin blog.csdn.net/slow097/article/details/126031449