Giter Site home page Giter Site logo

单选这里有个问题,如果所有分组全部展开的话,单选是正确的;但是当已经选中某一项的分组被折叠起来的时候,再去选择其它的,这个时候就出现多选了 about brv HOT 2 CLOSED

zjie1595 avatar zjie1595 commented on June 12, 2024
单选这里有个问题,如果所有分组全部展开的话,单选是正确的;但是当已经选中某一项的分组被折叠起来的时候,再去选择其它的,这个时候就出现多选了

from brv.

Comments (2)

liangjingkanji avatar liangjingkanji commented on June 12, 2024

因为分组展开折叠实际上是增删列表, 故单选会无法考量到已经被折叠的item.
这里我推荐你手动保存一份models. 然后再onChecked里面去判断是否已经被选择过

from brv.

liangjingkanji avatar liangjingkanji commented on June 12, 2024

分组和单选兼容的问题, 推荐将models数据集合复制一份然后在onCheck里面进行判断将元素置为false.

from brv.

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.