zoukankan      html  css  js  c++  java
  • Ant Design vue Modal 中Select组件下拉选项随页面滚动与Select框分离异常 解决办法

      <a-form-item>
                    <a-select
                      v-decorator="['inst_id']"
                      placeholder="请选择研究中心"
                      :getPopupContainer="(triggerNode)=>{ return triggerNode.parentNode}" 
                      allowClear
                      showSearch
                      :filterOption="filterOption"
                      @change="inst_change"
                    >
                      <a-select-option
                        v-for="item in inst_list"
                        :key="item.id"
                        :value="item.id"
                      >{{item.instname}}</a-select-option>
                    </a-select>
                  </a-form-item>
      <a-form-item>
                    <a-select
                      v-decorator="['inst_id']"
                      placeholder="请选择研究中心"
                      :getPopupContainer="(triggerNode)=>return triggerNode.parentNode}" 
                      allowClear
                      showSearch
                      :filterOption="filterOption"
                      @change="inst_change"
                    >
                      <a-select-option
                        v-for="item in inst_list"
                        :key="item.id"
                        :value="item.id"
                      >{{item.instname}}</a-select-option>
                    </a-select>
                  </a-form-item>
  • 相关阅读:
    2.操作系统基础
    6.Linux基础3
    DRAM 内存介绍(一)
    131127新的一天
    Java中的super关键字何时使用
    JAVA的引用类型变量(C/C++中叫指针)
    System.out.println()的含义
    Java面试题
    HTML基础知识
    子域名查找
  • 原文地址:https://www.cnblogs.com/wangrongjie/p/12484944.html
Copyright © 2011-2022 走看看