mirror of
https://github.com/adoyle0/thaw.git
synced 2025-01-22 14:09:21 -05:00
refactor: mobile component
This commit is contained in:
parent
137bb5263c
commit
7c431f66b5
17 changed files with 35 additions and 42 deletions
|
@ -43,9 +43,9 @@ fn TheRouter(is_routing: RwSignal<bool>) -> impl IntoView {
|
|||
<Route path="/development/components" view=DevelopmentComponentsMdPage/>
|
||||
</Route>
|
||||
<Route path="/components" view=ComponentsPage>
|
||||
<Route path="/tabbar" view=TabbarPage/>
|
||||
<Route path="/nav-bar" view=NavBarPage/>
|
||||
<Route path="/toast" view=ToastPage/>
|
||||
// <Route path="/tabbar" view=TabbarPage/>
|
||||
// <Route path="/nav-bar" view=NavBarPage/>
|
||||
// <Route path="/toast" view=ToastPage/>
|
||||
<Route path="/accordion" view=AccordionMdPage/>
|
||||
<Route path="/alert" view=AlertMdPage/>
|
||||
<Route path="/anchor" view=AnchorMdPage/>
|
||||
|
@ -90,9 +90,9 @@ fn TheRouter(is_routing: RwSignal<bool>) -> impl IntoView {
|
|||
<Route path="/time-picker" view=TimePickerMdPage/>
|
||||
<Route path="/upload" view=UploadMdPage/>
|
||||
</Route>
|
||||
<Route path="/mobile/tabbar" view=TabbarDemoPage/>
|
||||
<Route path="/mobile/nav-bar" view=NavBarDemoPage/>
|
||||
<Route path="/mobile/toast" view=ToastDemoPage/>
|
||||
// <Route path="/mobile/tabbar" view=TabbarDemoPage/>
|
||||
// <Route path="/mobile/nav-bar" view=NavBarDemoPage/>
|
||||
// <Route path="/mobile/toast" view=ToastDemoPage/>
|
||||
</Routes>
|
||||
}
|
||||
}
|
||||
|
|
|
@ -309,22 +309,22 @@ pub(crate) fn gen_menu_data() -> Vec<MenuGroupOption> {
|
|||
},
|
||||
],
|
||||
},
|
||||
MenuGroupOption {
|
||||
label: "Mobile Components".into(),
|
||||
children: vec![
|
||||
MenuItemOption {
|
||||
value: "/components/nav-bar".into(),
|
||||
label: "Nav Bar".into(),
|
||||
},
|
||||
MenuItemOption {
|
||||
value: "/components/tabbar".into(),
|
||||
label: "Tabbar".into(),
|
||||
},
|
||||
MenuItemOption {
|
||||
value: "/components/toast".into(),
|
||||
label: "Toast".into(),
|
||||
},
|
||||
],
|
||||
},
|
||||
// MenuGroupOption {
|
||||
// label: "Mobile Components".into(),
|
||||
// children: vec![
|
||||
// MenuItemOption {
|
||||
// value: "/components/nav-bar".into(),
|
||||
// label: "Nav Bar".into(),
|
||||
// },
|
||||
// MenuItemOption {
|
||||
// value: "/components/tabbar".into(),
|
||||
// label: "Tabbar".into(),
|
||||
// },
|
||||
// MenuItemOption {
|
||||
// value: "/components/toast".into(),
|
||||
// label: "Toast".into(),
|
||||
// },
|
||||
// ],
|
||||
// },
|
||||
]
|
||||
}
|
||||
|
|
|
@ -1,15 +1,15 @@
|
|||
mod components;
|
||||
mod home;
|
||||
mod markdown;
|
||||
mod mobile;
|
||||
mod nav_bar;
|
||||
mod tabbar;
|
||||
mod toast;
|
||||
// mod mobile;
|
||||
// mod nav_bar;
|
||||
// mod tabbar;
|
||||
// mod toast;
|
||||
|
||||
pub use components::*;
|
||||
pub use home::*;
|
||||
pub use markdown::*;
|
||||
pub use mobile::*;
|
||||
pub use nav_bar::*;
|
||||
pub use tabbar::*;
|
||||
pub use toast::*;
|
||||
// pub use mobile::*;
|
||||
// pub use nav_bar::*;
|
||||
// pub use tabbar::*;
|
||||
// pub use toast::*;
|
||||
|
|
|
@ -25,9 +25,9 @@ pub fn include_md(_token_stream: proc_macro::TokenStream) -> proc_macro::TokenSt
|
|||
"InstallationMdPage" => "../docs/_guide/installation.md",
|
||||
"ServerSiderRenderingMdPage" => "../docs/_guide/server_sider_rendering.md",
|
||||
"UsageMdPage" => "../docs/_guide/usage.md",
|
||||
"NavBarMdPage" => "../docs/_mobile/nav_bar/mod.md",
|
||||
"TabbarMdPage" => "../docs/_mobile/tabbar/mod.md",
|
||||
"ToastMdPage" => "../docs/_mobile/toast/mod.md",
|
||||
// "NavBarMdPage" => "../docs/_mobile/nav_bar/mod.md",
|
||||
// "TabbarMdPage" => "../docs/_mobile/tabbar/mod.md",
|
||||
// "ToastMdPage" => "../docs/_mobile/toast/mod.md",
|
||||
"AccordionMdPage" => "../docs/accordion/mod.md",
|
||||
"AlertMdPage" => "../docs/alert/mod.md",
|
||||
"AnchorMdPage" => "../docs/anchor/mod.md",
|
||||
|
|
|
@ -23,7 +23,6 @@ mod input;
|
|||
mod layout;
|
||||
mod loading_bar;
|
||||
mod message;
|
||||
pub mod mobile;
|
||||
mod modal;
|
||||
mod nav;
|
||||
mod popover;
|
||||
|
|
|
@ -3,7 +3,6 @@ mod common;
|
|||
|
||||
use self::common::CommonTheme;
|
||||
use crate::{
|
||||
mobile::{NavBarTheme, TabbarTheme},
|
||||
AlertTheme, AnchorTheme, BackTopTheme, CalendarTheme, MessageTheme, ProgressTheme,
|
||||
ScrollbarTheme, SelectTheme,
|
||||
};
|
||||
|
@ -23,8 +22,6 @@ pub struct Theme {
|
|||
pub alert: AlertTheme,
|
||||
pub message: MessageTheme,
|
||||
pub select: SelectTheme,
|
||||
pub nav_bar: NavBarTheme,
|
||||
pub tabbar: TabbarTheme,
|
||||
pub progress: ProgressTheme,
|
||||
pub calendar: CalendarTheme,
|
||||
pub scrollbar: ScrollbarTheme,
|
||||
|
@ -41,8 +38,7 @@ impl Theme {
|
|||
alert: AlertTheme::light(),
|
||||
message: MessageTheme::light(),
|
||||
select: SelectTheme::light(),
|
||||
nav_bar: NavBarTheme::light(),
|
||||
tabbar: TabbarTheme::light(),
|
||||
|
||||
progress: ProgressTheme::light(),
|
||||
calendar: CalendarTheme::light(),
|
||||
scrollbar: ScrollbarTheme::light(),
|
||||
|
@ -58,8 +54,6 @@ impl Theme {
|
|||
alert: AlertTheme::dark(),
|
||||
message: MessageTheme::dark(),
|
||||
select: SelectTheme::dark(),
|
||||
nav_bar: NavBarTheme::dark(),
|
||||
tabbar: TabbarTheme::dark(),
|
||||
progress: ProgressTheme::dark(),
|
||||
calendar: CalendarTheme::dark(),
|
||||
scrollbar: ScrollbarTheme::dark(),
|
||||
|
|
Loading…
Add table
Reference in a new issue