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
{
type: 'page',
body: [
"type": "page",
"body": [
{
type: 'button',
label: '尝试点击、鼠标移入/移出',
level: 'primary',
onEvent: {
click: {
actions: [
"type": "button",
"label": "尝试点击、鼠标移入/移出",
"level": "primary",
"onEvent": {
"click": {
"actions": [
{
actionType: 'toast',
args: {
msgType: 'info',
msg: '派发点击事件'
"actionType": "toast",
"args": {
"msgType": "info",
"msg": "派发点击事件"
}
}
]
},
mouseenter: {
actions: [
"mouseenter": {
"actions": [
{
actionType: 'toast',
args: {
msgType: 'info',
msg: '派发鼠标移入事件'
"actionType": "toast",
"args": {
"msgType": "info",
"msg": "派发鼠标移入事件"
}
}
]
},
mouseleave: {
actions: [
"mouseleave": {
"actions": [
{
actionType: 'toast',
args: {
msgType: 'info',
msg: '派发鼠标移出事件'
"actionType": "toast",
"args": {
"msgType": "info",
"msg": "派发鼠标移出事件"
}
}
]