From 5f74f5914eec07e972d96dcedb6a9d1f9b18cc30 Mon Sep 17 00:00:00 2001 From: luoxiao Date: Wed, 3 Jul 2024 23:01:57 +0800 Subject: [PATCH] feat(lepots-v0.7): thaw_components --- thaw/Cargo.toml | 2 +- thaw/src/accordion/accordion_item.rs | 8 ++++---- thaw/src/accordion/mod.rs | 2 +- thaw_components/src/binder/mod.rs | 15 +++++++++------ thaw_components/src/css_transition/mod.rs | 19 ++++++++++--------- thaw_components/src/focus_trap/mod.rs | 1 + thaw_components/src/teleport/mod.rs | 4 ++-- 7 files changed, 28 insertions(+), 23 deletions(-) diff --git a/thaw/Cargo.toml b/thaw/Cargo.toml index 6f96b64..03a522c 100644 --- a/thaw/Cargo.toml +++ b/thaw/Cargo.toml @@ -13,7 +13,7 @@ license = "MIT" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -leptos = { version = "0.6.10" } +leptos = { workspace = true } thaw_components = { workspace = true } thaw_macro = { workspace = true } thaw_utils = { workspace = true } diff --git a/thaw/src/accordion/accordion_item.rs b/thaw/src/accordion/accordion_item.rs index 58ac2ce..b490d2a 100644 --- a/thaw/src/accordion/accordion_item.rs +++ b/thaw/src/accordion/accordion_item.rs @@ -1,5 +1,5 @@ use crate::AccordionInjection; -use leptos::*; +use leptos::{prelude::*, html}; use thaw_components::CSSTransition; use thaw_utils::{mount_style, StoredMaybeSignal}; @@ -43,7 +43,7 @@ pub fn AccordionItem(