GithubHelp home page GithubHelp logo

TreeSelect onSelect有问题 about ant-design HOT 8 OPEN

meseme avatar meseme commented on May 6, 2024
TreeSelect onSelect有问题

from ant-design.

Comments (8)

afc163 avatar afc163 commented on May 6, 2024

你怎么判断输出正确和输出错误呢?我从这个描述看不出来怎样算正确的结果。

你预期的结果是什么?实际看到的结果是什么?

from ant-design.

meseme avatar meseme commented on May 6, 2024

你怎么判断输出正确和输出错误呢?我从这个描述看不出来怎样算正确的结果。

你预期的结果是什么?实际看到的结果是什么?

正确的结果应该是高亮度条显示的结果”50102 接待团收入“,而不是所显示列表中并不存在的”10115 支付宝“

from ant-design.

afc163 avatar afc163 commented on May 6, 2024

我看你的代码完全 hack 了 TreeSelect 默认的行为,基本上接管了组件自带的交互,这个可能就不是我们能解决的了。

from ant-design.

meseme avatar meseme commented on May 6, 2024

我看你的代码完全 hack 了 TreeSelect 默认的行为,基本上接管了自带的交互,这个可能就不是我们能解决的了。
并没有接管自带交互,只是设置了onSearch,应该是默认亮度条的问题,以前出现过这个问题,后来的版本修复了,最近的版本又出现这个问题了。

from ant-design.

meseme avatar meseme commented on May 6, 2024

并没有接管自带交互,只是设置了onSearch,应该是默认亮度条的问题,以前出现过这个问题,后来的版本修复了,最近的版本又出现这个问题了。

并没有接管自带交互,只是设置了onSearch,应该是默认亮度条的问题,以前出现过这个问题,后来的版本修复了,最近的版本又出现这个问题了。

from ant-design.

afc163 avatar afc163 commented on May 6, 2024

onKeyDown,
onBlur,
onClick,
onSearch,
onSelect,

这些代码差不多把原本的选择逻辑都换掉了。

from ant-design.

meseme avatar meseme commented on May 6, 2024

onKeyDown, onBlur, onClick, onSearch, onSelect,

这些代码差不多把原本的选择逻辑都换掉了。

好吧,感谢,我慢慢自己解决吧

from ant-design.

afc163 avatar afc163 commented on May 6, 2024

我感觉你需要一个 TreeSelect 默认高亮条的能力,目前确实不太好做。

from ant-design.

Related Issues (20)

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.