fix(ncform-show): fixed array-tab demo

This commit is contained in:
Gcaufy
2020-12-13 15:59:43 +08:00
committed by Dmitry Nagibin
parent c0478ef06b
commit 51520d2cb3
@@ -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
}
}
}
}
}
}