From 625feffe518e5d419f7e5da2e5572e69739c5686 Mon Sep 17 00:00:00 2001 From: luoxiao Date: Mon, 2 Oct 2023 17:04:03 +0800 Subject: [PATCH] feat: upgrade leptos --- Cargo.toml | 4 ++-- gh-pages/Cargo.toml | 4 ++-- src/button/mod.rs | 4 ++-- src/card/mod.rs | 6 +++--- src/menu/menu_item.rs | 5 ++++- src/mobile/tabbar/tabbar_item.rs | 2 +- src/modal/mod.rs | 2 +- src/select/mod.rs | 2 +- src/tabs/mod.rs | 2 +- 9 files changed, 17 insertions(+), 14 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index f3bfe51..8b27b9f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -13,10 +13,10 @@ license = "MIT" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -leptos = { version = "0.5.0-rc2", features = ["csr"] } +leptos = { version = "0.5.0", features = ["csr"] } stylers = "0.3.2" web-sys = { version = "0.3.62", features = ["DomRect"] } -leptos_dom = { version = "0.5.0-rc2" } +leptos_dom = { version = "0.5.0" } wasm-bindgen = "0.2.85" icondata = { version = "0.0.7", features = [ "AiCloseOutlined", diff --git a/gh-pages/Cargo.toml b/gh-pages/Cargo.toml index 0018052..8c08097 100644 --- a/gh-pages/Cargo.toml +++ b/gh-pages/Cargo.toml @@ -6,13 +6,13 @@ edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -leptos = { version = "0.5.0-rc2", features = ["csr"] } +leptos = { version = "0.5.0", features = ["csr"] } melt-ui = { path = "../" } icondata = { version = "0.0.7", features = [ "AiCloseOutlined", "AiCheckOutlined", ] } -leptos_router = { version = "0.5.0-rc2", features = ["csr"] } +leptos_router = { version = "0.5.0", features = ["csr"] } indoc = "2.0.1" regex = "1.8.2" leptos_devtools = "0.0.1" diff --git a/src/button/mod.rs b/src/button/mod.rs index 0ad4853..de4dceb 100644 --- a/src/button/mod.rs +++ b/src/button/mod.rs @@ -86,10 +86,10 @@ pub fn Button( class=("melt-button--round", move || round.get()) style=move || format!("{}{}", css_vars.get(), style.get()) > - + - + { children() } diff --git a/src/card/mod.rs b/src/card/mod.rs index 948e665..5f538fd 100644 --- a/src/card/mod.rs +++ b/src/card/mod.rs @@ -43,14 +43,14 @@ pub fn Card(
- + { title.get() } { (header.children)() }
- +
{ (header_extra.children)() }
@@ -61,7 +61,7 @@ pub fn Card(
{ children() }
- +