Comments (4)
DictSelect组件主要就是一个下拉组件而已,只不过可以通过业务字典模块维护的字典编码获取到字典详情信息。他接收一个字典编码然后组件中在通过传入的字典编码查询对应的字典详情然后显示在下拉框中。这样要在下拉框中要显示那些字典详情,只需要传入对应的字典编码就可以了
from my-admin.
@cdfan 嗯,我在想字典的展现形式可能不光只有select下拉一种,还有可能是多选,radio等,是否再传个组件类型动态渲染相应的组件更好呢哈。
from my-admin.
下拉多选可以支持,至于其他的后面如果有这种需求可以弄一下哈。
from my-admin.
@cdfan 从您这里学到封装DictSelect组件来快速调用字典数据并生成select 在表单里是挺方便了,请教一下,在表格数据中,要将数据的列回显成相应的字典label,这个您是怎么做的呢?
from my-admin.
Related Issues (7)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from my-admin.