This commit is contained in:
yumoqing 2026-02-25 13:03:00 +08:00
parent 9d38f0f672
commit 4f015d46ae
2 changed files with 15 additions and 7 deletions

View File

@ -2,6 +2,7 @@
"widgettype": "QRCodeSCan", "widgettype": "QRCodeSCan",
"options": {}, "options": {},
"binds": [ "binds": [
{
"wid": "self", "wid": "self",
"event": "recognized", "event": "recognized",
"actiontype": "urlwidget", "actiontype": "urlwidget",
@ -9,5 +10,12 @@
"options": { "options": {
"url": "$text" "url": "$text"
} }
}, {
"wid": "self",
"event": "recognized",
"actiontype": "script",
"target": "#PopupWindow",
"script": "this.dismiss()"
}
] ]
} }

View File

@ -14,7 +14,7 @@
"icon": "{{entire_url('/bricks/imgs/qr-scan.svg')}}", "icon": "{{entire_url('/bricks/imgs/qr-scan.svg')}}",
"name":"qr-scan", "name":"qr-scan",
"label":"扫码", "label":"扫码",
"url":"{{entire_url('qr_scan.ui')}}" "url":"{{entire_url('qr_scan.ui')}}",
"popup_options":{ "popup_options":{
"height": "300px", "height": "300px",
"width": "300px" "width": "300px"