fix:事件文档里json格式 (#8685)

This commit is contained in:
hsm-lv 2023-11-10 13:10:59 +08:00 committed by GitHub
parent 67cd3819a1
commit 5b09a1c96c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -75,42 +75,42 @@ order: 9
```schema ```schema
{ {
type: 'page', "type": "page",
body: [ "body": [
{ {
type: 'button', "type": "button",
label: '尝试点击、鼠标移入/移出', "label": "尝试点击、鼠标移入/移出",
level: 'primary', "level": "primary",
onEvent: { "onEvent": {
click: { "click": {
actions: [ "actions": [
{ {
actionType: 'toast', "actionType": "toast",
args: { "args": {
msgType: 'info', "msgType": "info",
msg: '派发点击事件' "msg": "派发点击事件"
} }
} }
] ]
}, },
mouseenter: { "mouseenter": {
actions: [ "actions": [
{ {
actionType: 'toast', "actionType": "toast",
args: { "args": {
msgType: 'info', "msgType": "info",
msg: '派发鼠标移入事件' "msg": "派发鼠标移入事件"
} }
} }
] ]
}, },
mouseleave: { "mouseleave": {
actions: [ "actions": [
{ {
actionType: 'toast', "actionType": "toast",
args: { "args": {
msgType: 'info', "msgType": "info",
msg: '派发鼠标移出事件' "msg": "派发鼠标移出事件"
} }
} }
] ]