🧑💻 Simplify component class access functions
This commit is contained in:
parent
d69d4cda45
commit
9a5618ef4b
12 changed files with 82 additions and 94 deletions
|
|
@ -33,7 +33,8 @@ impl ComponentTrait for Item {
|
|||
}
|
||||
|
||||
fn setup_before_prepare(&mut self, _cx: &mut Context) {
|
||||
self.prepend_classes(
|
||||
self.alter_classes(
|
||||
ClassesOp::Prepend,
|
||||
[
|
||||
"flex-item__container".to_owned(),
|
||||
self.grow().to_string(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue