mirror of
https://github.com/DioxusLabs/dioxus
synced 2024-11-23 04:33:06 +00:00
fix formatting issue
This commit is contained in:
parent
e8b95993ac
commit
500051e2b2
1 changed files with 36 additions and 12 deletions
|
@ -134,9 +134,13 @@ fn mouse_up() {
|
|||
modifiers: KeyModifiers::NONE,
|
||||
}));
|
||||
cx.render(rsx! {
|
||||
div { width: "100%", height: "100%", onmouseup: move |_| {
|
||||
div {
|
||||
width: "100%",
|
||||
height: "100%",
|
||||
onmouseup: move |_| {
|
||||
tui_ctx.quit();
|
||||
} }
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
|
@ -169,9 +173,13 @@ fn mouse_enter() {
|
|||
modifiers: KeyModifiers::NONE,
|
||||
}));
|
||||
cx.render(rsx! {
|
||||
div { width: "50%", height: "50%", onmouseenter: move |_| {
|
||||
div {
|
||||
width: "50%",
|
||||
height: "50%",
|
||||
onmouseenter: move |_| {
|
||||
tui_ctx.quit();
|
||||
} }
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
|
@ -204,9 +212,13 @@ fn mouse_exit() {
|
|||
modifiers: KeyModifiers::NONE,
|
||||
}));
|
||||
cx.render(rsx! {
|
||||
div { width: "50%", height: "50%", onmouseenter: move |_| {
|
||||
div {
|
||||
width: "50%",
|
||||
height: "50%",
|
||||
onmouseenter: move |_| {
|
||||
tui_ctx.quit();
|
||||
} }
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
|
@ -239,9 +251,13 @@ fn mouse_move() {
|
|||
modifiers: KeyModifiers::NONE,
|
||||
}));
|
||||
cx.render(rsx! {
|
||||
div { width: "100%", height: "100%", onmousemove: move |_| {
|
||||
div {
|
||||
width: "100%",
|
||||
height: "100%",
|
||||
onmousemove: move |_| {
|
||||
tui_ctx.quit();
|
||||
} }
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
|
@ -314,9 +330,13 @@ fn click() {
|
|||
modifiers: KeyModifiers::NONE,
|
||||
}));
|
||||
cx.render(rsx! {
|
||||
div { width: "100%", height: "100%", onclick: move |_| {
|
||||
div {
|
||||
width: "100%",
|
||||
height: "100%",
|
||||
onclick: move |_| {
|
||||
tui_ctx.quit();
|
||||
} }
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
|
@ -349,9 +369,13 @@ fn context_menu() {
|
|||
modifiers: KeyModifiers::NONE,
|
||||
}));
|
||||
cx.render(rsx! {
|
||||
div { width: "100%", height: "100%", oncontextmenu: move |_| {
|
||||
div {
|
||||
width: "100%",
|
||||
height: "100%",
|
||||
oncontextmenu: move |_| {
|
||||
tui_ctx.quit();
|
||||
} }
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue