Closed yangliguo7 closed 1 year ago
这里面加上default 是可以的
设置并没有作用
{
"schema": {
"type": "object",
"required": [],
"properties": {
"array_1677151659800x0": {
"default": ["1","2"],
"type": "array",
"uniqueItems": true,
"items": {
"type": "string",
"enum": [
"1",
"2",
"3"
],
"enumNames": [
"一",
"二",
"三"
]
},
"title": "多选(Select)",
"ui:widget": "SelectWidget"
}
},
"ui:order": [
"array_1677151659800x0"
]
},
"uiSchema": {},
"formFooter": {
"show": false
},
"formProps": {
"labelWidth": "100px",
"labelSuffix": ":"
}
}
单独纯文本标签是可以生效的
@lljj-x
用的你的schema也没问题 playground
是的,然而在 https://form.lljj.me/schema-generator.html#/index 这里去导入schema 却不表现出默认值
感谢回复
设置default 没用