Coder Social home page Coder Social logo

Comments (4)

cdfan avatar cdfan commented on August 15, 2024

DictSelect组件主要就是一个下拉组件而已,只不过可以通过业务字典模块维护的字典编码获取到字典详情信息。他接收一个字典编码然后组件中在通过传入的字典编码查询对应的字典详情然后显示在下拉框中。这样要在下拉框中要显示那些字典详情,只需要传入对应的字典编码就可以了

from my-admin.

tlerbao avatar tlerbao commented on August 15, 2024

@cdfan 嗯,我在想字典的展现形式可能不光只有select下拉一种,还有可能是多选,radio等,是否再传个组件类型动态渲染相应的组件更好呢哈。

from my-admin.

cdfan avatar cdfan commented on August 15, 2024

下拉多选可以支持,至于其他的后面如果有这种需求可以弄一下哈。

from my-admin.

tlerbao avatar tlerbao commented on August 15, 2024

@cdfan 从您这里学到封装DictSelect组件来快速调用字典数据并生成select 在表单里是挺方便了,请教一下,在表格数据中,要将数据的列回显成相应的字典label,这个您是怎么做的呢?

from my-admin.

Related Issues (7)

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.