{ "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" } ] } ] } ] }