feat: collapse rsx
This commit is contained in:
1 parent
9438cc14bc
commit
5d56326f74
1 file changed
-19
@@ -88,24 +88,6 @@ impl Parse for Element {
|
|||||||
tokens: content.parse()?,
|
tokens: content.parse()?,
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
// if content.fork().parse::<ExprClosure>().is_ok() {
|
|
||||||
// //
|
|
||||||
// attributes.push(ElementAttrNamed {
|
|
||||||
// el_name: el_name.clone(),
|
|
||||||
// attr: ElementAttr::EventClosure {
|
|
||||||
// name,
|
|
||||||
// closure: content.parse()?,
|
|
||||||
// },
|
|
||||||
// });
|
|
||||||
// } else {
|
|
||||||
// attributes.push(ElementAttrNamed {
|
|
||||||
// el_name: el_name.clone(),
|
|
||||||
// attr: ElementAttr::EventTokens {
|
|
||||||
// name,
|
|
||||||
// tokens: content.parse()?,
|
|
||||||
// },
|
|
||||||
// });
|
|
||||||
// }
|
|
||||||
} else {
|
} else {
|
||||||
match name_str.as_str() {
|
match name_str.as_str() {
|
||||||
"key" => {
|
"key" => {
|
||||||
@@ -199,7 +181,6 @@ impl Parse for Element {
|
|||||||
name: el_name,
|
name: el_name,
|
||||||
attributes,
|
attributes,
|
||||||
children,
|
children,
|
||||||
// listeners,
|
|
||||||
_is_static: false,
|
_is_static: false,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user