From e9778b6008c3e5bfa15e14d14322398cbe7e9d3c Mon Sep 17 00:00:00 2001
From: luoxiaozero <48741584+luoxiaozero@users.noreply.github.com>
Date: Mon, 11 Dec 2023 15:44:22 +0800
Subject: [PATCH] Fix/ci nightly (#45)
* demo: Modify button click
* fix: ci run nightly
* pref: fmt and clippy
---
demo/src/components/site_header.rs | 2 +-
demo/src/pages/button/mod.rs | 40 ++++++++----------------------
demo/src/pages/home.rs | 2 +-
demo/src/pages/loading_bar/mod.rs | 12 ++++-----
demo/src/pages/message/mod.rs | 12 ++++-----
demo/src/pages/modal/mod.rs | 4 +--
demo/src/pages/time_picker/mod.rs | 6 +++--
demo/src/pages/toast/mod.rs | 2 +-
src/auto_complete/mod.rs | 7 +++---
src/calendar/mod.rs | 7 +++---
src/color_picker/mod.rs | 5 ++--
src/message/message_provider.rs | 3 +--
src/slider/mod.rs | 5 ++--
src/time_picker/mod.rs | 27 ++++++++++++--------
src/typography/text.rs | 4 +--
15 files changed, 61 insertions(+), 77 deletions(-)
diff --git a/demo/src/components/site_header.rs b/demo/src/components/site_header.rs
index b5b17f9..6039c4f 100644
--- a/demo/src/components/site_header.rs
+++ b/demo/src/components/site_header.rs
@@ -117,7 +117,7 @@ pub fn SiteHeader() -> impl IntoView {
icon=icondata::AiIcon::AiGithubOutlined
round=true
style="font-size: 22px; padding: 0px 6px;"
- on:click=move |_| {
+ on_click=move |_| {
_ = window().open_with_url("http://github.com/thaw-ui/thaw");
}
/>
diff --git a/demo/src/pages/button/mod.rs b/demo/src/pages/button/mod.rs
index dc4543a..25cddb6 100644
--- a/demo/src/pages/button/mod.rs
+++ b/demo/src/pages/button/mod.rs
@@ -136,18 +136,10 @@ pub fn ButtonPage() -> impl IntoView {
"Size"
-
-
-
-
+
+
+
+
@@ -177,26 +169,14 @@ pub fn ButtonPage() -> impl IntoView {
-
-
-
+
+
+
-
-
-
+
+
+
diff --git a/demo/src/pages/home.rs b/demo/src/pages/home.rs
index 5bc7575..02f98e7 100644
--- a/demo/src/pages/home.rs
+++ b/demo/src/pages/home.rs
@@ -24,7 +24,7 @@ pub fn Home() -> impl IntoView {
}>"Read the docs"