fix: 按钮使用id属性替代name,确保binds能正确绑定事件
This commit is contained in:
parent
2efb1268b7
commit
71ccf230e9
@ -17,23 +17,16 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"widgettype": "VScrollPanel",
|
"widgettype": "VScrollPanel",
|
||||||
|
"id": "check_scroll",
|
||||||
"options": {
|
"options": {
|
||||||
"css": "filler",
|
"css": "filler",
|
||||||
"width": "100%"
|
"width": "100%"
|
||||||
},
|
},
|
||||||
"subwidgets": [
|
"subwidgets": [
|
||||||
{
|
|
||||||
"widgettype": "Text",
|
|
||||||
"options": {
|
|
||||||
"name": "check_status",
|
|
||||||
"text": "检查中...",
|
|
||||||
"i18n": false
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"widgettype": "VBox",
|
"widgettype": "VBox",
|
||||||
|
"id": "checks_list",
|
||||||
"options": {
|
"options": {
|
||||||
"name": "checks_list",
|
|
||||||
"spacing": 5
|
"spacing": 5
|
||||||
},
|
},
|
||||||
"subwidgets": [
|
"subwidgets": [
|
||||||
@ -89,16 +82,16 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"widgettype": "Text",
|
"widgettype": "Text",
|
||||||
|
"id": "test_result",
|
||||||
"options": {
|
"options": {
|
||||||
"name": "test_result",
|
|
||||||
"text": "",
|
"text": "",
|
||||||
"i18n": false
|
"i18n": false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"widgettype": "Text",
|
"widgettype": "Text",
|
||||||
|
"id": "charge_result",
|
||||||
"options": {
|
"options": {
|
||||||
"name": "charge_result",
|
|
||||||
"text": "",
|
"text": "",
|
||||||
"i18n": false
|
"i18n": false
|
||||||
}
|
}
|
||||||
@ -114,16 +107,16 @@
|
|||||||
"subwidgets": [
|
"subwidgets": [
|
||||||
{
|
{
|
||||||
"widgettype": "Button",
|
"widgettype": "Button",
|
||||||
|
"id": "test_btn",
|
||||||
"options": {
|
"options": {
|
||||||
"name": "test_btn",
|
|
||||||
"label": "体验一次",
|
"label": "体验一次",
|
||||||
"i18n": false
|
"i18n": false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"widgettype": "Button",
|
"widgettype": "Button",
|
||||||
|
"id": "charge_btn",
|
||||||
"options": {
|
"options": {
|
||||||
"name": "charge_btn",
|
|
||||||
"label": "检查计费",
|
"label": "检查计费",
|
||||||
"i18n": false
|
"i18n": false
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user