diff --git a/examples/Accordion.ui b/examples/Accordion.ui deleted file mode 100644 index bd0cbde..0000000 --- a/examples/Accordion.ui +++ /dev/null @@ -1,25 +0,0 @@ -{ - "widgettype": "Accordion", - "options": { - "items": [ - { - "title": "面板1", - "content": { - "widgettype": "Text", - "options": { - "text": "这是面板1的内容" - } - } - }, - { - "title": "面板2", - "content": { - "widgettype": "Text", - "options": { - "text": "这是面板2的内容" - } - } - } - ] - } -} \ No newline at end of file diff --git a/examples/Button.ui b/examples/Button.ui deleted file mode 100644 index fd35725..0000000 --- a/examples/Button.ui +++ /dev/null @@ -1,16 +0,0 @@ -{ - "widgettype": "Button", - "options": { - "text": "点击按钮", - "width": "200px", - "height": "50px" - }, - "binds": [ - { - "wid": "self", - "event": "click", - "actiontype": "script", - "script": "alert('按钮被点击了!'); console.log('Button clicked');" - } - ] -} \ No newline at end of file diff --git a/examples/Camera.ui b/examples/Camera.ui deleted file mode 100644 index a9a88ae..0000000 --- a/examples/Camera.ui +++ /dev/null @@ -1,7 +0,0 @@ -{ - "widgettype": "Camera", - "options": { - "width": "400px", - "height": "300px" - } -} \ No newline at end of file diff --git a/examples/ChartBar.ui b/examples/ChartBar.ui deleted file mode 100644 index b8d1b8a..0000000 --- a/examples/ChartBar.ui +++ /dev/null @@ -1,16 +0,0 @@ -{ - "widgettype": "ChartBar", - "options": { - "data": { - "labels": ["一月", "二月", "三月", "四月"], - "datasets": [ - { - "label": "销售额", - "data": [12, 19, 3, 5] - } - ] - }, - "width": "400px", - "height": "300px" - } -} \ No newline at end of file diff --git a/examples/ChartHeatmap.ui b/examples/ChartHeatmap.ui deleted file mode 100644 index 37490ac..0000000 --- a/examples/ChartHeatmap.ui +++ /dev/null @@ -1,12 +0,0 @@ -{ - "widgettype": "ChartHeatmap", - "options": { - "data": { - "x_labels": ["A", "B", "C"], - "y_labels": ["1", "2", "3"], - "values": [[1, 2, 3], [4, 5, 6], [7, 8, 9]] - }, - "width": "400px", - "height": "300px" - } -} \ No newline at end of file diff --git a/examples/ChartKLine.ui b/examples/ChartKLine.ui deleted file mode 100644 index 13a1b44..0000000 --- a/examples/ChartKLine.ui +++ /dev/null @@ -1,10 +0,0 @@ -{ - "widgettype": "ChartKLine", - "options": { - "data": [ - {"time": "2026-04-21", "open": 100, "high": 110, "low": 95, "close": 105} - ], - "width": "400px", - "height": "300px" - } -} \ No newline at end of file diff --git a/examples/ChartLine.ui b/examples/ChartLine.ui deleted file mode 100644 index e7cd7ae..0000000 --- a/examples/ChartLine.ui +++ /dev/null @@ -1,16 +0,0 @@ -{ - "widgettype": "ChartLine", - "options": { - "data": { - "labels": ["1月", "2月", "3月", "4月"], - "datasets": [ - { - "label": "用户增长", - "data": [10, 25, 30, 45] - } - ] - }, - "width": "400px", - "height": "300px" - } -} \ No newline at end of file diff --git a/examples/ChartMap.ui b/examples/ChartMap.ui deleted file mode 100644 index c832677..0000000 --- a/examples/ChartMap.ui +++ /dev/null @@ -1,13 +0,0 @@ -{ - "widgettype": "ChartMap", - "options": { - "geo_data": "china", - "data": { - "北京": 100, - "上海": 85, - "广州": 70 - }, - "width": "500px", - "height": "400px" - } -} \ No newline at end of file diff --git a/examples/ChartPie.ui b/examples/ChartPie.ui deleted file mode 100644 index ab2a1ba..0000000 --- a/examples/ChartPie.ui +++ /dev/null @@ -1,11 +0,0 @@ -{ - "widgettype": "ChartPie", - "options": { - "data": { - "labels": ["类别A", "类别B", "类别C"], - "values": [30, 50, 20] - }, - "width": "400px", - "height": "300px" - } -} \ No newline at end of file diff --git a/examples/ChartRadar.ui b/examples/ChartRadar.ui deleted file mode 100644 index 7716d2b..0000000 --- a/examples/ChartRadar.ui +++ /dev/null @@ -1,11 +0,0 @@ -{ - "widgettype": "ChartRadar", - "options": { - "data": { - "labels": ["速度", "力量", "敏捷", "智力", "耐力"], - "values": [80, 60, 75, 90, 70] - }, - "width": "400px", - "height": "400px" - } -} \ No newline at end of file diff --git a/examples/ChartScatter.ui b/examples/ChartScatter.ui deleted file mode 100644 index 2533294..0000000 --- a/examples/ChartScatter.ui +++ /dev/null @@ -1,15 +0,0 @@ -{ - "widgettype": "ChartScatter", - "options": { - "data": { - "datasets": [ - { - "label": "数据点", - "data": [{"x": 10, "y": 20}, {"x": 15, "y": 25}, {"x": 20, "y": 30}] - } - ] - }, - "width": "400px", - "height": "300px" - } -} \ No newline at end of file diff --git a/examples/Cols.ui b/examples/Cols.ui deleted file mode 100644 index b15f0b4..0000000 --- a/examples/Cols.ui +++ /dev/null @@ -1,25 +0,0 @@ -{ - "widgettype": "Cols", - "options": { - "columns": [ - { - "width": "30%", - "content": { - "widgettype": "Text", - "options": { - "text": "左侧列" - } - } - }, - { - "width": "70%", - "content": { - "widgettype": "Text", - "options": { - "text": "右侧列" - } - } - } - ] - } -} \ No newline at end of file diff --git a/examples/CompleteLayout.ui b/examples/CompleteLayout.ui deleted file mode 100644 index 76b5b03..0000000 --- a/examples/CompleteLayout.ui +++ /dev/null @@ -1,91 +0,0 @@ -{ - "widgettype": "VBox", - "options": { - "width": "100%", - "height": "100%" - }, - "subwidgets": [ - { - "widgettype": "HBox", - "options": { - "height": "60px" - }, - "subwidgets": [ - { - "widgettype": "Text", - "options": { - "text": "顶部导航栏", - "fontSize": "20px" - } - }, - { - "widgettype": "Filler" - }, - { - "widgettype": "Button", - "options": { - "text": "设置" - } - } - ] - }, - { - "widgettype": "Filler", - "subwidgets": [ - { - "widgettype": "VBox", - "options": { - "width": "100%", - "height": "100%" - }, - "subwidgets": [ - { - "widgettype": "Text", - "options": { - "text": "主要内容区域", - "fontSize": "18px" - } - }, - { - "widgettype": "Form", - "options": { - "fields": [ - { - "name": "message", - "label": "消息", - "uitype": "text" - } - ] - } - } - ] - } - ] - }, - { - "widgettype": "HBox", - "options": { - "height": "40px" - }, - "subwidgets": [ - { - "widgettype": "Text", - "options": { - "text": "状态栏", - "fontSize": "12px" - } - }, - { - "widgettype": "Filler" - }, - { - "widgettype": "Text", - "options": { - "text": "就绪", - "fontSize": "12px" - } - } - ] - } - ] -} \ No newline at end of file diff --git a/examples/Conform.ui b/examples/Conform.ui deleted file mode 100644 index e6aebd6..0000000 --- a/examples/Conform.ui +++ /dev/null @@ -1,9 +0,0 @@ -{ - "widgettype": "Conform", - "options": { - "title": "确认对话框", - "message": "您确定要执行此操作吗?", - "ok_text": "确定", - "cancel_text": "取消" - } -} \ No newline at end of file diff --git a/examples/Countdown.ui b/examples/Countdown.ui deleted file mode 100644 index c45239b..0000000 --- a/examples/Countdown.ui +++ /dev/null @@ -1,7 +0,0 @@ -{ - "widgettype": "Countdown", - "options": { - "total_seconds": 60, - "format": "剩余 {minutes}:{seconds}" - } -} \ No newline at end of file diff --git a/examples/DOCXviewer.ui b/examples/DOCXviewer.ui deleted file mode 100644 index f869b7f..0000000 --- a/examples/DOCXviewer.ui +++ /dev/null @@ -1,8 +0,0 @@ -{ - "widgettype": "DOCXviewer", - "options": { - "src": "/static/sample.docx", - "width": "600px", - "height": "400px" - } -} \ No newline at end of file diff --git a/examples/DataViewer.ui b/examples/DataViewer.ui deleted file mode 100644 index b1996dc..0000000 --- a/examples/DataViewer.ui +++ /dev/null @@ -1,31 +0,0 @@ -{ - "widgettype": "DataViewer", - "options": { - "data_url": "/api/sample-data", - "page_rows": 10, - "row_options": { - "fields": [ - { - "name": "id", - "label": "ID", - "uitype": "int" - }, - { - "name": "name", - "label": "名称", - "uitype": "str" - }, - { - "name": "email", - "label": "邮箱", - "uitype": "email" - } - ] - }, - "editable": { - "add_icon": "fa fa-plus", - "update_icon": "fa fa-edit", - "delete_icon": "fa fa-trash" - } - } -} \ No newline at end of file diff --git a/examples/DeletableLabel.ui b/examples/DeletableLabel.ui deleted file mode 100644 index 711f219..0000000 --- a/examples/DeletableLabel.ui +++ /dev/null @@ -1,7 +0,0 @@ -{ - "widgettype": "DeletableLabel", - "options": { - "text": "可删除标签", - "on_delete": "handleDelete" - } -} \ No newline at end of file diff --git a/examples/EXCELviewer.ui b/examples/EXCELviewer.ui deleted file mode 100644 index 0ff17a8..0000000 --- a/examples/EXCELviewer.ui +++ /dev/null @@ -1,8 +0,0 @@ -{ - "widgettype": "EXCELviewer", - "options": { - "src": "/static/sample.xlsx", - "width": "600px", - "height": "400px" - } -} \ No newline at end of file diff --git a/examples/Error.ui b/examples/Error.ui deleted file mode 100644 index 4514c5b..0000000 --- a/examples/Error.ui +++ /dev/null @@ -1,7 +0,0 @@ -{ - "widgettype": "Error", - "options": { - "text": "发生了一个错误!", - "duration": 5000 - } -} \ No newline at end of file diff --git a/examples/Filler.ui b/examples/Filler.ui deleted file mode 100644 index f3c1527..0000000 --- a/examples/Filler.ui +++ /dev/null @@ -1,8 +0,0 @@ -{ - "widgettype": "Filler", - "options": { - "width": "100%", - "height": "50px", - "backgroundColor": "#f0f0f0" - } -} \ No newline at end of file diff --git a/examples/FloatIconBar.ui b/examples/FloatIconBar.ui deleted file mode 100644 index f63160f..0000000 --- a/examples/FloatIconBar.ui +++ /dev/null @@ -1,16 +0,0 @@ -{ - "widgettype": "FloatIconBar", - "options": { - "items": [ - { - "icon": "fa fa-bell", - "tooltip": "通知" - }, - { - "icon": "fa fa-envelope", - "tooltip": "消息" - } - ], - "position": "bottom-right" - } -} \ No newline at end of file diff --git a/examples/FloatIconTextBar.ui b/examples/FloatIconTextBar.ui deleted file mode 100644 index 4a9ad48..0000000 --- a/examples/FloatIconTextBar.ui +++ /dev/null @@ -1,18 +0,0 @@ -{ - "widgettype": "FloatIconTextBar", - "options": { - "items": [ - { - "icon": "fa fa-save", - "text": "保存", - "name": "save" - }, - { - "icon": "fa fa-print", - "text": "打印", - "name": "print" - } - ], - "position": "top-right" - } -} \ No newline at end of file diff --git a/examples/Form.ui b/examples/Form.ui deleted file mode 100644 index 99a903e..0000000 --- a/examples/Form.ui +++ /dev/null @@ -1,30 +0,0 @@ -{ - "widgettype": "Form", - "options": { - "title": "表单示例", - "fields": [ - { - "name": "username", - "label": "用户名", - "uitype": "str", - "required": true - }, - { - "name": "email", - "label": "邮箱", - "uitype": "email", - "required": true - }, - { - "name": "age", - "label": "年龄", - "uitype": "int" - }, - { - "name": "active", - "label": "激活状态", - "uitype": "check" - } - ] - } -} \ No newline at end of file diff --git a/examples/HBox.ui b/examples/HBox.ui deleted file mode 100644 index 826db0c..0000000 --- a/examples/HBox.ui +++ /dev/null @@ -1,31 +0,0 @@ -{ - "widgettype": "HBox", - "options": { - "width": "100%", - "height": "100px" - }, - "subwidgets": [ - { - "widgettype": "Text", - "options": { - "text": "HBox水平布局: ", - "fontSize": "18px" - } - }, - { - "widgettype": "Button", - "options": { - "text": "按钮1" - } - }, - { - "widgettype": "Button", - "options": { - "text": "按钮2" - } - }, - { - "widgettype": "Filler" - } - ] -} \ No newline at end of file diff --git a/examples/HScrollPanel.ui b/examples/HScrollPanel.ui deleted file mode 100644 index e0b69b1..0000000 --- a/examples/HScrollPanel.ui +++ /dev/null @@ -1,16 +0,0 @@ -{ - "widgettype": "HScrollPanel", - "options": { - "width": "300px", - "height": "100px" - }, - "subwidgets": [ - { - "widgettype": "HBox", - "subwidgets": [ - {"widgettype": "Text", "options": {"text": "水平滚动内容 - "}}, - {"widgettype": "Text", "options": {"text": "水平滚动内容 - ".repeat(50)}} - ] - } - ] -} \ No newline at end of file diff --git a/examples/Html.ui b/examples/Html.ui deleted file mode 100644 index cc1786d..0000000 --- a/examples/Html.ui +++ /dev/null @@ -1,8 +0,0 @@ -{ - "widgettype": "Html", - "options": { - "html": "
这是嵌入的HTML内容
", - "width": "400px", - "height": "200px" - } -} \ No newline at end of file diff --git a/examples/Icon.ui b/examples/Icon.ui deleted file mode 100644 index 7982dea..0000000 --- a/examples/Icon.ui +++ /dev/null @@ -1,8 +0,0 @@ -{ - "widgettype": "Icon", - "options": { - "icon": "fa fa-star", - "size": "24px", - "color": "#FFD700" - } -} \ No newline at end of file diff --git a/examples/IconBar.ui b/examples/IconBar.ui deleted file mode 100644 index 74cd32c..0000000 --- a/examples/IconBar.ui +++ /dev/null @@ -1,19 +0,0 @@ -{ - "widgettype": "IconBar", - "options": { - "items": [ - { - "icon": "fa fa-home", - "tooltip": "首页" - }, - { - "icon": "fa fa-user", - "tooltip": "用户" - }, - { - "icon": "fa fa-cog", - "tooltip": "设置" - } - ] - } -} \ No newline at end of file diff --git a/examples/IconTextBar.ui b/examples/IconTextBar.ui deleted file mode 100644 index c515e80..0000000 --- a/examples/IconTextBar.ui +++ /dev/null @@ -1,22 +0,0 @@ -{ - "widgettype": "IconTextBar", - "options": { - "items": [ - { - "icon": "fa fa-plus", - "text": "新建", - "name": "add" - }, - { - "icon": "fa fa-edit", - "text": "编辑", - "name": "edit" - }, - { - "icon": "fa fa-trash", - "text": "删除", - "name": "delete" - } - ] - } -} \ No newline at end of file diff --git a/examples/IconbarPage.ui b/examples/IconbarPage.ui deleted file mode 100644 index 3289920..0000000 --- a/examples/IconbarPage.ui +++ /dev/null @@ -1,19 +0,0 @@ -{ - "widgettype": "IconbarPage", - "options": { - "title": "图标页面", - "icon": "fa fa-dashboard", - "items": [ - { - "icon": "fa fa-home", - "text": "首页", - "url": "home.ui" - }, - { - "icon": "fa fa-user", - "text": "用户", - "url": "user.ui" - } - ] - } -} \ No newline at end of file diff --git a/examples/Iframe.ui b/examples/Iframe.ui deleted file mode 100644 index 88d0d7e..0000000 --- a/examples/Iframe.ui +++ /dev/null @@ -1,8 +0,0 @@ -{ - "widgettype": "Iframe", - "options": { - "src": "https://example.com", - "width": "600px", - "height": "400px" - } -} \ No newline at end of file diff --git a/examples/Image.ui b/examples/Image.ui deleted file mode 100644 index 3dd5dc0..0000000 --- a/examples/Image.ui +++ /dev/null @@ -1,8 +0,0 @@ -{ - "widgettype": "Image", - "options": { - "src": "/static/sample-image.png", - "width": "200px", - "height": "150px" - } -} \ No newline at end of file diff --git a/examples/Input.ui b/examples/Input.ui deleted file mode 100644 index dfcf39d..0000000 --- a/examples/Input.ui +++ /dev/null @@ -1,8 +0,0 @@ -{ - "widgettype": "Input", - "options": { - "placeholder": "请输入文本...", - "width": "300px", - "height": "40px" - } -} \ No newline at end of file diff --git a/examples/MdWidget.ui b/examples/MdWidget.ui deleted file mode 100644 index 955a7a5..0000000 --- a/examples/MdWidget.ui +++ /dev/null @@ -1,8 +0,0 @@ -{ - "widgettype": "MdWidget", - "options": { - "markdown": "# 标题\n\n这是一个 **Markdown** 文档示例。\n\n- 列表项1\n- 列表项2", - "width": "400px", - "height": "300px" - } -} \ No newline at end of file diff --git a/examples/Menu.ui b/examples/Menu.ui deleted file mode 100644 index 4fed0a7..0000000 --- a/examples/Menu.ui +++ /dev/null @@ -1,22 +0,0 @@ -{ - "widgettype": "Menu", - "options": { - "items": [ - { - "text": "文件", - "submenu": [ - {"text": "新建", "action": "new"}, - {"text": "打开", "action": "open"}, - {"text": "保存", "action": "save"} - ] - }, - { - "text": "编辑", - "submenu": [ - {"text": "复制", "action": "copy"}, - {"text": "粘贴", "action": "paste"} - ] - } - ] - } -} \ No newline at end of file diff --git a/examples/Message.ui b/examples/Message.ui deleted file mode 100644 index 2d12a41..0000000 --- a/examples/Message.ui +++ /dev/null @@ -1,8 +0,0 @@ -{ - "widgettype": "Message", - "options": { - "text": "这是一条普通消息", - "type": "info", - "duration": 3000 - } -} \ No newline at end of file diff --git a/examples/Modal.ui b/examples/Modal.ui deleted file mode 100644 index 13728be..0000000 --- a/examples/Modal.ui +++ /dev/null @@ -1,53 +0,0 @@ -{ - "widgettype": "Modal", - "options": { - "title": "模态框示例", - "width": "400px", - "height": "300px", - "auto_open": true - }, - "subwidgets": [ - { - "widgettype": "Text", - "options": { - "text": "这是一个模态对话框", - "fontSize": "18px" - } - }, - { - "widgettype": "Form", - "options": { - "fields": [ - { - "name": "input", - "label": "输入内容", - "uitype": "str" - } - ] - } - }, - { - "widgettype": "HBox", - "subwidgets": [ - { - "widgettype": "Filler" - }, - { - "widgettype": "Button", - "options": { - "text": "确定" - }, - "binds": [ - { - "wid": "self", - "event": "click", - "actiontype": "method", - "target": "-@Modal", - "method": "dismiss" - } - ] - } - ] - } - ] -} \ No newline at end of file diff --git a/examples/MultipleStateImage.ui b/examples/MultipleStateImage.ui deleted file mode 100644 index 31fde78..0000000 --- a/examples/MultipleStateImage.ui +++ /dev/null @@ -1,12 +0,0 @@ -{ - "widgettype": "MultipleStateImage", - "options": { - "states": { - "normal": "/static/normal.png", - "hover": "/static/hover.png", - "active": "/static/active.png" - }, - "width": "100px", - "height": "100px" - } -} \ No newline at end of file diff --git a/examples/NewWindow.ui b/examples/NewWindow.ui deleted file mode 100644 index 3a76fb9..0000000 --- a/examples/NewWindow.ui +++ /dev/null @@ -1,9 +0,0 @@ -{ - "widgettype": "NewWindow", - "options": { - "url": "/static/external-page.html", - "width": "800px", - "height": "600px", - "title": "新窗口" - } -} \ No newline at end of file diff --git a/examples/PDFviewer.ui b/examples/PDFviewer.ui deleted file mode 100644 index 81d2326..0000000 --- a/examples/PDFviewer.ui +++ /dev/null @@ -1,8 +0,0 @@ -{ - "widgettype": "PDFviewer", - "options": { - "src": "/static/sample.pdf", - "width": "600px", - "height": "400px" - } -} \ No newline at end of file diff --git a/examples/Popup.ui b/examples/Popup.ui deleted file mode 100644 index 7ad2fef..0000000 --- a/examples/Popup.ui +++ /dev/null @@ -1,71 +0,0 @@ -{ - "widgettype": "Popup", - "options": { - "title": "弹出层示例", - "width": "400px", - "height": "300px", - "auto_open": true, - "modal": true, - "movable": true, - "resizable": false - }, - "subwidgets": [ - { - "widgettype": "Text", - "options": { - "text": "这是一个 Popup 弹出层", - "fontSize": "18px" - } - }, - { - "widgettype": "Form", - "options": { - "fields": [ - { - "name": "message", - "label": "消息内容", - "uitype": "text" - } - ] - } - }, - { - "widgettype": "HBox", - "subwidgets": [ - { - "widgettype": "Filler" - }, - { - "widgettype": "Button", - "options": { - "text": "确定" - }, - "binds": [ - { - "wid": "self", - "event": "click", - "actiontype": "method", - "target": "-@Popup", - "method": "dismiss" - } - ] - }, - { - "widgettype": "Button", - "options": { - "text": "取消" - }, - "binds": [ - { - "wid": "self", - "event": "click", - "actiontype": "method", - "target": "-@Popup", - "method": "dismiss" - } - ] - } - ] - } - ] -} \ No newline at end of file diff --git a/examples/PopupWindow.ui b/examples/PopupWindow.ui deleted file mode 100644 index 46bd4ea..0000000 --- a/examples/PopupWindow.ui +++ /dev/null @@ -1,64 +0,0 @@ -{ - "widgettype": "PopupWindow", - "options": { - "title": "应用窗口示例", - "width": "600px", - "height": "400px", - "auto_open": true, - "movable": true, - "resizable": true, - "modal": false - }, - "subwidgets": [ - { - "widgettype": "VBox", - "options": { - "width": "100%", - "height": "100%" - }, - "subwidgets": [ - { - "widgettype": "Text", - "options": { - "text": "这是一个可拖拽、可调整大小的应用窗口", - "fontSize": "20px" - } - }, - { - "widgettype": "TabPanel", - "options": { - "tab_pos": "top", - "items": [ - { - "name": "tab1", - "label": "内容1", - "content": { - "widgettype": "Text", - "options": { - "text": "第一个标签页的内容" - } - } - }, - { - "name": "tab2", - "label": "内容2", - "content": { - "widgettype": "Form", - "options": { - "fields": [ - { - "name": "input1", - "label": "输入框", - "uitype": "str" - } - ] - } - } - } - ] - } - } - ] - } - ] -} \ No newline at end of file diff --git a/examples/ProgressBar.ui b/examples/ProgressBar.ui deleted file mode 100644 index 0bf7292..0000000 --- a/examples/ProgressBar.ui +++ /dev/null @@ -1,8 +0,0 @@ -{ - "widgettype": "ProgressBar", - "options": { - "value": 75, - "max": 100, - "width": "300px" - } -} \ No newline at end of file diff --git a/examples/QRCodeScan.ui b/examples/QRCodeScan.ui deleted file mode 100644 index 3a7657d..0000000 --- a/examples/QRCodeScan.ui +++ /dev/null @@ -1,7 +0,0 @@ -{ - "widgettype": "QRCodeScan", - "options": { - "width": "300px", - "height": "300px" - } -} \ No newline at end of file diff --git a/examples/ResponsableBox.ui b/examples/ResponsableBox.ui deleted file mode 100644 index c8fca31..0000000 --- a/examples/ResponsableBox.ui +++ /dev/null @@ -1,29 +0,0 @@ -{ - "widgettype": "ResponsableBox", - "options": { - "width": "100%", - "height": "200px", - "title": "响应式布局示例" - }, - "subwidgets": [ - { - "widgettype": "Text", - "options": { - "text": "调整窗口大小查看布局变化", - "fontSize": "16px" - } - }, - { - "widgettype": "Button", - "options": { - "text": "按钮1" - } - }, - { - "widgettype": "Button", - "options": { - "text": "按钮2" - } - } - ] -} \ No newline at end of file diff --git a/examples/Running.ui b/examples/Running.ui deleted file mode 100644 index af2519d..0000000 --- a/examples/Running.ui +++ /dev/null @@ -1,7 +0,0 @@ -{ - "widgettype": "Running", - "options": { - "text": "正在处理...", - "width": "200px" - } -} \ No newline at end of file diff --git a/examples/Splitter.ui b/examples/Splitter.ui deleted file mode 100644 index 1b87f92..0000000 --- a/examples/Splitter.ui +++ /dev/null @@ -1,22 +0,0 @@ -{ - "widgettype": "Splitter", - "options": { - "orientation": "horizontal", - "width": "500px", - "height": "300px" - }, - "subwidgets": [ - { - "widgettype": "Text", - "options": { - "text": "左侧面板" - } - }, - { - "widgettype": "Text", - "options": { - "text": "右侧面板" - } - } - ] -} \ No newline at end of file diff --git a/examples/Svg.ui b/examples/Svg.ui deleted file mode 100644 index 89173ef..0000000 --- a/examples/Svg.ui +++ /dev/null @@ -1,8 +0,0 @@ -{ - "widgettype": "Svg", - "options": { - "svg_content": "", - "width": "200px", - "height": "200px" - } -} \ No newline at end of file diff --git a/examples/SysAudioRecorder.ui b/examples/SysAudioRecorder.ui deleted file mode 100644 index 8b1f30c..0000000 --- a/examples/SysAudioRecorder.ui +++ /dev/null @@ -1,7 +0,0 @@ -{ - "widgettype": "SysAudioRecorder", - "options": { - "width": "200px", - "height": "80px" - } -} \ No newline at end of file diff --git a/examples/SysCamera.ui b/examples/SysCamera.ui deleted file mode 100644 index 3ba690b..0000000 --- a/examples/SysCamera.ui +++ /dev/null @@ -1,7 +0,0 @@ -{ - "widgettype": "SysCamera", - "options": { - "width": "400px", - "height": "300px" - } -} \ No newline at end of file diff --git a/examples/SysVideoRecorder.ui b/examples/SysVideoRecorder.ui deleted file mode 100644 index a3f7b84..0000000 --- a/examples/SysVideoRecorder.ui +++ /dev/null @@ -1,7 +0,0 @@ -{ - "widgettype": "SysVideoRecorder", - "options": { - "width": "400px", - "height": "300px" - } -} \ No newline at end of file diff --git a/examples/TabPanel.ui b/examples/TabPanel.ui deleted file mode 100644 index 8b81e5b..0000000 --- a/examples/TabPanel.ui +++ /dev/null @@ -1,46 +0,0 @@ -{ - "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" - } - } - } - ] - } -} \ No newline at end of file diff --git a/examples/Tabular.ui b/examples/Tabular.ui deleted file mode 100644 index 3880661..0000000 --- a/examples/Tabular.ui +++ /dev/null @@ -1,12 +0,0 @@ -{ - "widgettype": "Tabular", - "options": { - "headers": ["姓名", "年龄", "城市"], - "rows": [ - ["张三", "25", "北京"], - ["李四", "30", "上海"], - ["王五", "28", "广州"] - ], - "width": "400px" - } -} \ No newline at end of file diff --git a/examples/Text.ui b/examples/Text.ui deleted file mode 100644 index 551ee3d..0000000 --- a/examples/Text.ui +++ /dev/null @@ -1,9 +0,0 @@ -{ - "widgettype": "Text", - "options": { - "text": "这是一个文本控件示例", - "fontSize": "20px", - "color": "#333333", - "fontWeight": "normal" - } -} \ No newline at end of file diff --git a/examples/TimePassed.ui b/examples/TimePassed.ui deleted file mode 100644 index 3d6db01..0000000 --- a/examples/TimePassed.ui +++ /dev/null @@ -1,7 +0,0 @@ -{ - "widgettype": "TimePassed", - "options": { - "start_time": "2026-04-21T12:00:00Z", - "format": "已运行 {days}天{hours}小时{minutes}分钟" - } -} \ No newline at end of file diff --git a/examples/Title1.ui b/examples/Title1.ui deleted file mode 100644 index 36f38a2..0000000 --- a/examples/Title1.ui +++ /dev/null @@ -1,6 +0,0 @@ -{ - "widgettype": "Title1", - "options": { - "text": "一级标题" - } -} \ No newline at end of file diff --git a/examples/Title15.ui b/examples/Title15.ui deleted file mode 100644 index 5f57237..0000000 --- a/examples/Title15.ui +++ /dev/null @@ -1,6 +0,0 @@ -{ - "widgettype": "Title15", - "options": { - "text": "十五级标题" - } -} \ No newline at end of file diff --git a/examples/Title2.ui b/examples/Title2.ui deleted file mode 100644 index 882e029..0000000 --- a/examples/Title2.ui +++ /dev/null @@ -1,6 +0,0 @@ -{ - "widgettype": "Title2", - "options": { - "text": "二级标题" - } -} \ No newline at end of file diff --git a/examples/Title3.ui b/examples/Title3.ui deleted file mode 100644 index 5127041..0000000 --- a/examples/Title3.ui +++ /dev/null @@ -1,6 +0,0 @@ -{ - "widgettype": "Title3", - "options": { - "text": "三级标题" - } -} \ No newline at end of file diff --git a/examples/Title4.ui b/examples/Title4.ui deleted file mode 100644 index 337a087..0000000 --- a/examples/Title4.ui +++ /dev/null @@ -1,6 +0,0 @@ -{ - "widgettype": "Title4", - "options": { - "text": "四级标题" - } -} \ No newline at end of file diff --git a/examples/Title6.ui b/examples/Title6.ui deleted file mode 100644 index 5f0195f..0000000 --- a/examples/Title6.ui +++ /dev/null @@ -1,6 +0,0 @@ -{ - "widgettype": "Title6", - "options": { - "text": "六级标题" - } -} \ No newline at end of file diff --git a/examples/Tree.ui b/examples/Tree.ui deleted file mode 100644 index 3814491..0000000 --- a/examples/Tree.ui +++ /dev/null @@ -1,29 +0,0 @@ -{ - "widgettype": "Tree", - "options": { - "idField": "id", - "textField": "name", - "data": [ - { - "id": "1", - "name": "根节点", - "children": [ - { - "id": "1-1", - "name": "子节点1" - }, - { - "id": "1-2", - "name": "子节点2", - "children": [ - { - "id": "1-2-1", - "name": "孙子节点" - } - ] - } - ] - } - ] - } -} \ No newline at end of file diff --git a/examples/VBox.ui b/examples/VBox.ui deleted file mode 100644 index 4d850ce..0000000 --- a/examples/VBox.ui +++ /dev/null @@ -1,36 +0,0 @@ -{ - "widgettype": "VBox", - "options": { - "width": "100%", - "height": "100%" - }, - "subwidgets": [ - { - "widgettype": "Text", - "options": { - "text": "这是一个 VBox 垂直布局示例", - "fontSize": "24px", - "fontWeight": "bold" - } - }, - { - "widgettype": "Text", - "options": { - "text": "子控件会垂直排列", - "fontSize": "16px" - } - }, - { - "widgettype": "Button", - "options": { - "text": "按钮1" - } - }, - { - "widgettype": "Button", - "options": { - "text": "按钮2" - } - } - ] -} \ No newline at end of file diff --git a/examples/VScrollPanel.ui b/examples/VScrollPanel.ui deleted file mode 100644 index 133d49c..0000000 --- a/examples/VScrollPanel.ui +++ /dev/null @@ -1,15 +0,0 @@ -{ - "widgettype": "VScrollPanel", - "options": { - "width": "300px", - "height": "200px" - }, - "subwidgets": [ - { - "widgettype": "Text", - "options": { - "text": "垂直滚动内容\n".repeat(20) - } - } - ] -} \ No newline at end of file diff --git a/examples/VideoPlayer.ui b/examples/VideoPlayer.ui deleted file mode 100644 index 5eb8a40..0000000 --- a/examples/VideoPlayer.ui +++ /dev/null @@ -1,9 +0,0 @@ -{ - "widgettype": "VideoPlayer", - "options": { - "src": "/static/sample-video.mp4", - "width": "400px", - "height": "300px", - "controls": true - } -} \ No newline at end of file diff --git a/examples/WidgetRecorder.ui b/examples/WidgetRecorder.ui deleted file mode 100644 index 124a69a..0000000 --- a/examples/WidgetRecorder.ui +++ /dev/null @@ -1,7 +0,0 @@ -{ - "widgettype": "WidgetRecorder", - "options": { - "width": "200px", - "height": "100px" - } -} \ No newline at end of file diff --git a/examples/Wterm.ui b/examples/Wterm.ui deleted file mode 100644 index 5211f95..0000000 --- a/examples/Wterm.ui +++ /dev/null @@ -1,7 +0,0 @@ -{ - "widgettype": "Wterm", - "options": { - "width": "600px", - "height": "400px" - } -} \ No newline at end of file