feat: flatten props attrs
This commit is contained in:
1 parent
f4132d1874
commit
d2372717bd
4 files changed
+79
-118
No files matched your search
@@ -22,13 +22,13 @@ pub struct LinkProps<'a> {
|
||||
/// Link { to: Route::Home, href: Route::as_url }
|
||||
///
|
||||
/// ```
|
||||
#[props(default, setter(strip_option))]
|
||||
#[props(default, strip_option)]
|
||||
href: Option<&'a str>,
|
||||
|
||||
#[props(default, setter(strip_option))]
|
||||
#[props(default, strip_option)]
|
||||
class: Option<&'a str>,
|
||||
|
||||
#[props(default, setter(strip_option))]
|
||||
#[props(default, strip_option)]
|
||||
id: Option<&'a str>,
|
||||
|
||||
children: Element<'a>,
|
||||
|
||||
@@ -11,7 +11,7 @@ use crate::RouterService;
|
||||
pub struct RouterProps<'a> {
|
||||
children: Element<'a>,
|
||||
|
||||
#[props(default, setter(strip_option))]
|
||||
#[props(default, strip_option)]
|
||||
onchange: Option<&'a Fn(&'a str)>,
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user