Setup stable toolchain

This commit is contained in:
Spxg
2025-05-17 10:30:39 +08:00
parent abec4e6108
commit c235b0985f
3 changed files with 7 additions and 4 deletions

View File

@@ -14,7 +14,7 @@ members = [
[dependencies] [dependencies]
console_error_panic_hook = "0.1.7" console_error_panic_hook = "0.1.7"
leptos = { version = "0.8.1", features = ["csr", "nightly"] } leptos = { version = "0.8.1", features = ["csr"] }
sqlite-wasm-rs = { git = "https://github.com/Spxg/sqlite-wasm-rs.git", default-features = false, features = ["precompiled"] } sqlite-wasm-rs = { git = "https://github.com/Spxg/sqlite-wasm-rs.git", default-features = false, features = ["precompiled"] }
istyles = { path = "crates/istyles" } istyles = { path = "crates/istyles" }
aceditor = { path = "crates/aceditor" } aceditor = { path = "crates/aceditor" }

3
rust-toolchain.toml Normal file
View File

@@ -0,0 +1,3 @@
[toolchain]
channel = "1.87.0"
targets = ["wasm32-unknown-unknown"]

View File

@@ -40,7 +40,7 @@ where
} }
if event.key() == "Escape" { if event.key() == "Escape" {
set_open(false); set_open.set(false);
} }
}; };
@@ -75,7 +75,7 @@ where
.as_ref() .as_ref()
.is_some_and(|floating| floating.deref().contains(node.as_ref())) .is_some_and(|floating| floating.deref().contains(node.as_ref()))
}) { }) {
set_open(false); set_open.set(false);
} }
} }
}; };
@@ -183,7 +183,7 @@ where
let float = move || { let float = move || {
let menu_clone = Arc::clone(&menu); let menu_clone = Arc::clone(&menu);
view! { view! {
<Show when=is_open fallback=|| ()> <Show when=move || is_open.get() fallback=|| ()>
<div <div
class=styles::container class=styles::container
node_ref=floating_ref node_ref=floating_ref