mirror of
https://github.com/vxcontrol/ncform.git
synced 2026-07-18 16:24:27 -04:00
fix(ncform-show): fixed array-tab demo
This commit is contained in:
@@ -1,60 +1,62 @@
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"user": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"name": {
|
||||
"type": "string",
|
||||
"ui": {
|
||||
"label": "Name",
|
||||
"description": "Please fill in your name",
|
||||
"placeholder": "Name"
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"user": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"name": {
|
||||
"type": "string",
|
||||
"ui": {
|
||||
"label": "Name",
|
||||
"description": "Please fill in your name",
|
||||
"placeholder": "Name"
|
||||
},
|
||||
"rules": {
|
||||
"required": true
|
||||
}
|
||||
},
|
||||
"email": {
|
||||
"type": "string",
|
||||
"ui": {
|
||||
"label": "Email"
|
||||
},
|
||||
"rules": {
|
||||
"required": true,
|
||||
"email": true
|
||||
}
|
||||
},
|
||||
"age": {
|
||||
"type": "integer",
|
||||
"ui": {
|
||||
"label": "Age"
|
||||
}
|
||||
},
|
||||
"adult": {
|
||||
"type": "boolean",
|
||||
"ui": {
|
||||
"label": "Adult",
|
||||
"help": {
|
||||
"show": true,
|
||||
"text": "?",
|
||||
"content": "Adults can play games"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"ui": {
|
||||
"label": "User"
|
||||
}
|
||||
},
|
||||
"rules": {
|
||||
"required": true
|
||||
}
|
||||
},
|
||||
"email": {
|
||||
"type": "string",
|
||||
"ui": {
|
||||
"label": "Email"
|
||||
},
|
||||
"rules": {
|
||||
"required": true,
|
||||
"email": true
|
||||
"showLegend": false,
|
||||
"noLabelSpace": true,
|
||||
"widget": "array-tabs",
|
||||
"widgetConfig": {
|
||||
"showOneIfEmpty": true
|
||||
}
|
||||
}
|
||||
},
|
||||
"age": {
|
||||
"type": "integer",
|
||||
"ui": {
|
||||
"label": "Age"
|
||||
}
|
||||
},
|
||||
"adult": {
|
||||
"type": "boolean",
|
||||
"ui": {
|
||||
"label": "Adult",
|
||||
"help": {
|
||||
"show": true,
|
||||
"text": "?",
|
||||
"content": "Adults can play games"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"ui": {
|
||||
"showLegend": false,
|
||||
"noLabelSpace": true,
|
||||
"widget": "array-table",
|
||||
"widgetConfig": {
|
||||
"disableCollapse": true,
|
||||
"showOneIfEmpty": true
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user