- Replace invalid 'Page' and 'Card' components with valid bricks components (VBox, HBox, Filler, etc.) - Add comprehensive examples for all major bricks components in examples/ directory - Update hermes-web-cli UI files to use correct component hierarchy - Include examples for: VBox, HBox, Filler, ResponsableBox, Form, Button, Text, Modal, TabPanel, DataViewer, Tree, Image, VideoPlayer, Input, LLMOut - Follow proper bricks-framework JSON structure with widgettype, options, subwidgets - Ensure all examples are production-ready and follow module development specifications
46 lines
917 B
XML
46 lines
917 B
XML
{
|
|
"widgettype": "TabPanel",
|
|
"options": {
|
|
"tab_pos": "top",
|
|
"items": [
|
|
{
|
|
"name": "tab1",
|
|
"label": "首页",
|
|
"content": {
|
|
"widgettype": "Text",
|
|
"options": {
|
|
"text": "欢迎来到首页!",
|
|
"fontSize": "20px"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "tab2",
|
|
"label": "设置",
|
|
"content": {
|
|
"widgettype": "Form",
|
|
"options": {
|
|
"fields": [
|
|
{
|
|
"name": "setting1",
|
|
"label": "设置项1",
|
|
"uitype": "str"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "tab3",
|
|
"label": "关于",
|
|
"content": {
|
|
"widgettype": "Text",
|
|
"options": {
|
|
"text": "这是关于页面",
|
|
"fontSize": "16px"
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|
|
} |