Coder Social home page Coder Social logo

antd-virtual-select's People

Contributors

dependabot[bot] avatar iblq avatar pengtikui avatar yaokailun avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

antd-virtual-select's Issues

引用时传入dropdownClassName无效

代码里写死了dropdownClassName,这样外部引用时传入这个属性并不会被传给antd
这段代码是否修改成别的变量名,最后传入的时候拼接这个变量名和外部传入的dropdownClassName会更好?

this.dropdownClassName = `dc${+new Date()}`;

antd 被全量打包

目前项目引入 antd 是使用按需加载的,但引入该组件后,发送所有引用到改组件的打包文件都包含全量的 antd 打包文件,猜测是 import { Select } from 'antd' 这段代码导致的,应该改为 import Select from 'antd/es/select'

异步加载数据未完成时点击,高度固定为 100,数据加载完成后,高度没有自动更新

可复现,使用官方 demo,使用 setTimeout 初始数据,如下:

setTimeout(() => {
  for (let i = 0; i < 10000; i++) {
    children.push(
      <Option value={i + "aa"} key={i}>
        {i}
      </Option>
    );
  }
}, 3000)

在组件加载后的 3s 内,激活组件,dropmenu 高度为默认高度 100,3 s 后高度没更新,antd 原生是正常的。
考虑在 DropDownWrap 组件里,监听 allHeight props 更新重新 setState allHeight

滚动一定高度后搜索下拉不出来。

在第一次搜索(数据量很多)然后滚动不选择,在搜索一个数量相对少的,然后下拉就出不来了,再去搜索第一次那个数据较多,会出现空白,滚动后正常。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.