sunmao-ui/examples/tabs/index.json
2021-11-24 15:02:02 +08:00

99 lines
2.2 KiB
JSON

{
"app": {
"version": "example/v1",
"metadata": {
"name": "nested_components",
"description": "nested components example"
},
"spec": {
"components": [
{
"id": "root",
"type": "chakra_ui/v1/root",
"properties": {},
"traits": []
},
{
"id": "tabs",
"type": "chakra_ui/v1/tabs",
"properties": {
"tabNames": ["Tab One", "Tab Two"],
"initialSelectedTabIndex": 1
},
"traits": [
{
"type": "core/v1/slot",
"properties": {
"container": {
"id": "root",
"slot": "root"
}
}
}
]
},
{
"id": "btn",
"type": "chakra_ui/v1/button",
"properties": {
"text": {
"raw": "in tab1",
"format": "plain"
}
},
"traits": [
{
"type": "core/v1/slot",
"properties": {
"container": {
"id": "tabs",
"slot": "content"
}
}
}
]
},
{
"id": "text",
"type": "core/v1/text",
"properties": {
"value": {
"raw": "in tab3",
"format": "plain"
}
},
"traits": [
{
"type": "core/v1/slot",
"properties": {
"container": {
"id": "nested_tabs",
"slot": "content"
}
}
}
]
},
{
"id": "nested_tabs",
"type": "chakra_ui/v1/tabs",
"properties": {
"tabNames": ["Tab Three", "Tab Four"]
},
"traits": [
{
"type": "core/v1/slot",
"properties": {
"container": {
"id": "tabs",
"slot": "content"
}
}
}
]
}
]
}
}
}