Comments (4)
牛逼,说得这么抽象也能看得懂 @snowlocked
from el-form-renderer.
请问,到底是什么场景呢。你说的有道理,但我们无法找到你的场景,因而代码不能简单地就去改动
from el-form-renderer.
如图。在查询表格的时,选择特殊的状态一起查询。这时需要用单独的 checkbox 来渲染(期望 data 输出 boolean)。
// expected
{
id: 'isNewToday',
type: 'checkbox',
default: false,
label: 'mycheckbox'
},
当然。可以用 checkbox-group 实现。
{
id: 'isNewToday',
type: 'checkbox-group',
default: [],
options: [
{
label: '今日新增',
}
]
},
此时 isNewToday 的值是 ['今日新增'] 或者 []。而期望的是 boolean
from el-form-renderer.
这个可以使用 inputFormat
和 outputFormat
将数组转换一下
from el-form-renderer.
Related Issues (20)
- Support inline form items? HOT 2
- readme 需要更新
- readonly 模式改进
- [Feature]: 支持 label 接受 vnode 定义 HOT 1
- 期望支持自定义布局 HOT 3
- please upgrade the version of package.json HOT 1
- 不支持el-tree组件 HOT 1
- 回填时,保留model的数据 HOT 2
- remote request方法如何动态传参数? HOT 1
- 增加请求参数配置 HOT 3
- [help] 如何自定义表单项的宽度(how to customize the form-item's width)
- 自定义组件的$attrs会默认带loading和disabled HOT 2
- 是不是不支持vue2+组合 api? HOT 1
- 关于组建中 dialog的使用问题 HOT 1
- 有疑问可进钉钉群
- 如何自定义布局?How to customize layout ? HOT 1
- 很长时间没有更新了,还活着么 HOT 5
- 支持动态表单项有什么思路吗? HOT 1
- 表单中如果使用内嵌属性,那么值显示不出来
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 el-form-renderer.