Comments (3)
@lljj-x 我用了ui:attrs配置了clearable和multiply发现可以
from vue-json-schema-form.
已经解决了吗 ?
这里如果配置为多选的话应该是数组了,而不能是 Number,大致形式如下:
multiSelect: {
type: 'array',
title: 'A multiple choices list',
items: {
type: 'string',
enum: [
'foo',
'bar',
'fuzz',
'qux'
]
},
uniqueItems: true
}
https://codepen.io/ljj/pen/wvGONGv
但是这里多选默认是渲染为 checkbox多选,不过配置成 select会有些问题,你可以先打开这个问题 我后面会处理。
from vue-json-schema-form.
@alicksnake22 对,attrs 可以透传,新的版本我合并了 attrs 和 props,就像你写模板组件一样不用区分。
from vue-json-schema-form.
Related Issues (20)
- 数组操作的一些功能支持 HOT 1
- antdv4.x 的样式兼容, 内含复现demo HOT 3
- vue2+element 下拉框 单选框等无法渲染,设置enum和'ui:enumOptions'都无法正确展示 HOT 6
- select 下拉框怎么绑定值为对象 HOT 4
- customrule 自定义校验 成功我希望就校验成功,但是如果schema校验失败会即使自动义校验成功也会校验失败。希望自定义校验结果最高 HOT 5
- 一个formSchema中如果有两个category,那么使用array的类型就不能渲染,并且功能也实现不了 HOT 3
- 配置 description,可以支持自定义icon嘛? HOT 2
- 能不能通过uischema重置schema中的object为其他类型的 HOT 4
- Playground 无法访问了吗? HOT 1
- 针对oneOf类型,是否可以把description显示出来 HOT 2
- 自定义field组件,如何通过$emit()调用父组件方法 HOT 4
- vue-json-schema-form 使用的element-ui 的select 可以自定义备选项吗 HOT 1
- Type 类型兼容数组不报错
- 模块 ""@lljj/vue3-form-ant"" 没有导出的成员 "JsonSchemaFormAntdV4" HOT 1
- 建议支持Dialog HOT 2
- 布局配置:formProps属性不生效 HOT 3
- 如何将保存和取消按钮放置在整个页面其他位置,而不是最底端
- [求助] 夜间模式下,array的背景不会自动成暗色 HOT 3
- Inline props not working
- AutoCompleteWidget如何使用 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 vue-json-schema-form.