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>
  • 相关阅读:
    IT人士必去的10个网站
    c++怎样让函数返回数组
    vs中“Stack around the variable was corrupted”的解决方案
    c++ eof()函数
    bat开发小工具以及使用
    Python接口自动化(一)---json数据类型取值
    MAVEN编译错误解决:maven only whitespace content allowed before start
    shell常用命令总结总结
    shell打包和解压
    java总结笔记
  • 原文地址:https://www.cnblogs.com/wangrongjie/p/12484944.html
Copyright © 2011-2022 走看看