We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
基于 json-schema 生成表单是足够的,但是不是非常充分;尤其是在展现方面:
json-schema
[ ] 1. Object 的 properties 的排序干预 [ ] 2. 特殊展现的控件,比如密码类型文本输入框 [ ] 3. 以及其他
Object
properties
因此,需要引入一个额外的配置文件 uiSchema;
uiSchema
基于格式:
{ "$order": ["username", "password"], "password": { "$control": "password" }, "username": { "$disabled": true }, "address": { "$readOnly": true }, "hiddenField": { "$hidden": true } }
其中,以 schema 的 value 值为主体;以 @ 开头的字段是给 uiSchema 使用的,非以 @ 开头的字段是 json-pointer 的一部分;
@
json-pointer
具体的:
$order
object
$control
$disabled
禁用
$readOnly
只读
$hidden
隐藏
The text was updated successfully, but these errors were encountered:
部分完成 #6
074bf99
finish #6
ed40010
No branches or pull requests
基于
json-schema
生成表单是足够的,但是不是非常充分;尤其是在展现方面:[ ] 1.
Object
的properties
的排序干预[ ] 2. 特殊展现的控件,比如密码类型文本输入框
[ ] 3. 以及其他
因此,需要引入一个额外的配置文件
uiSchema
;基于格式:
其中,以 schema 的 value 值为主体;以
@
开头的字段是给 uiSchema 使用的,非以@
开头的字段是json-pointer
的一部分;具体的:
$order
只在object
类型字段上生效,用以描述object
属性展现的顺序$control
指定输入控件的渲染组件$disabled
整个字段的进入禁用
状态$readOnly
整个字段进入只读
状态$hidden
整个字段进入隐藏
状态The text was updated successfully, but these errors were encountered: