feat: add prettyplease vendored and get basic test working
This commit is contained in:
1 parent
794f43ffee
commit
2a1970b3a9
29 files changed
+4630
-10
No files matched your search
@@ -191,21 +191,38 @@ impl ToTokens for Element {
|
||||
|
||||
pub enum ElementAttr {
|
||||
/// attribute: "valuee {}"
|
||||
AttrText { name: Ident, value: LitStr },
|
||||
AttrText {
|
||||
name: Ident,
|
||||
value: LitStr,
|
||||
},
|
||||
|
||||
/// attribute: true,
|
||||
AttrExpression { name: Ident, value: Expr },
|
||||
AttrExpression {
|
||||
name: Ident,
|
||||
value: Expr,
|
||||
},
|
||||
|
||||
/// "attribute": "value {}"
|
||||
CustomAttrText { name: LitStr, value: LitStr },
|
||||
CustomAttrText {
|
||||
name: LitStr,
|
||||
value: LitStr,
|
||||
},
|
||||
|
||||
/// "attribute": true,
|
||||
CustomAttrExpression { name: LitStr, value: Expr },
|
||||
CustomAttrExpression {
|
||||
name: LitStr,
|
||||
value: Expr,
|
||||
},
|
||||
|
||||
// /// onclick: move |_| {}
|
||||
// EventClosure { name: Ident, closure: ExprClosure },
|
||||
/// onclick: {}
|
||||
EventTokens { name: Ident, tokens: Expr },
|
||||
EventTokens {
|
||||
name: Ident,
|
||||
tokens: Expr,
|
||||
},
|
||||
|
||||
Meta(String),
|
||||
}
|
||||
|
||||
pub struct ElementAttrNamed {
|
||||
@@ -248,6 +265,10 @@ impl ToTokens for ElementAttrNamed {
|
||||
dioxus_elements::on::#name(__cx, #tokens)
|
||||
}
|
||||
}
|
||||
|
||||
ElementAttr::Meta(_) => {
|
||||
todo!("meta attributes not supported yet");
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user