🐳 chore: update leptos_icons dependency

This commit is contained in:
luoxiao 2023-05-15 12:22:45 +08:00
parent d14c2aab7e
commit a79ea5b4dc
5 changed files with 6 additions and 6 deletions

View file

@ -17,7 +17,7 @@ leptos = { version = "0.3.0", features = ["stable"] }
stylers = "0.3.1"
web-sys = { version = "0.3.62", features = ["DomRect"] }
leptos_dom = { version = "0.3.0" }
leptos-icons = { git = "https://github.com/Carlosted/leptos-icons.git", features = ["AiCloseOutlined", "AiCheckOutlined"] }
leptos_icons = { version = "0.0.10", features = ["AiCloseOutlined", "AiCheckOutlined"] }
wasm-bindgen = "0.2.85"
[workspace]

View file

@ -8,4 +8,4 @@ edition = "2021"
[dependencies]
leptos = { version = "0.3.0", features = ["stable"] }
melt-ui = { path = "../../" }
leptos-icons = { git = "https://github.com/Carlosted/leptos-icons.git", features = ["AiCloseOutlined", "AiCheckOutlined"] }
leptos_icons = { version = "0.0.10", features = ["AiCloseOutlined", "AiCheckOutlined"] }

View file

@ -40,7 +40,7 @@ pub fn Button(
#[prop(optional, into)] type_: MaybeSignal<ButtonType>,
#[prop(optional, into)] color: MaybeSignal<ButtonColor>,
#[prop(optional, into)] round: MaybeSignal<bool>,
#[prop(optional, into)] icon: Option<leptos_icons::Icon>,
#[prop(optional, into)] icon: Option<IconData>,
#[prop(optional)] children: Option<Children>,
) -> impl IntoView {
let theme = use_theme(cx, Theme::light);
@ -80,7 +80,7 @@ pub fn Button(
{
if let Some(icon) = icon {
view!{cx,
<LeptosIcon icon=icon style=icon_style/>
<Icon icon=icon style=icon_style/>
}.into()
} else {
None

View file

@ -35,7 +35,7 @@ pub fn Checkbox(
move || {
if checked.get() {
view! {cx,
<LeptosIcon icon=AiIcon::AiCheckOutlined style="color: white"/>
<Icon icon=AiIcon::AiCheckOutlined style="color: white"/>
}.into()
} else {
None

View file

@ -31,7 +31,7 @@ pub fn Modal(
cx,
<>
<span style="cursor: pointer;" on:click=move |_| if let Some(on_cancel) = &on_cancel { on_cancel.set(())}>
<LeptosIcon icon=AiIcon::AiCloseOutlined/>
<Icon icon=AiIcon::AiCloseOutlined/>
</span>
</>
}