From ab456c7f6f4b2efd58bbda6f9f3a312d4a66e2a4 Mon Sep 17 00:00:00 2001 From: luoxiao Date: Thu, 22 Aug 2024 17:24:24 +0800 Subject: [PATCH] feat: Switch adds rules prop --- thaw/src/date_picker/mod.rs | 14 ++++++++-- thaw/src/field/docs/mod.md | 9 ++++--- thaw/src/switch/docs/mod.md | 13 ++++++---- thaw/src/switch/mod.rs | 52 ++++++++++++++++++++++++++++++++++--- thaw/src/time_picker/mod.rs | 14 ++++++++-- 5 files changed, 86 insertions(+), 16 deletions(-) diff --git a/thaw/src/date_picker/mod.rs b/thaw/src/date_picker/mod.rs index fd1e267..6b1d34e 100644 --- a/thaw/src/date_picker/mod.rs +++ b/thaw/src/date_picker/mod.rs @@ -91,8 +91,18 @@ pub fn DatePicker( view! { -
- +
+ diff --git a/thaw/src/field/docs/mod.md b/thaw/src/field/docs/mod.md index 3029bdd..8b07d03 100644 --- a/thaw/src/field/docs/mod.md +++ b/thaw/src/field/docs/mod.md @@ -41,19 +41,19 @@ view! {