Parent transform

This commit is contained in:
2025-11-01 11:56:55 +01:00
parent 29432a939b
commit fd8e466830
7 changed files with 126 additions and 46 deletions
+32 -3
View File
@@ -20,13 +20,42 @@ pub fn app() -> Rsx {
}
rsx! {
// @transform! {
// height: 3
// };
// FlexRow {
// for item in items {
// static "{item}"
// }
// }
@transform! {
height: 3
};
FlexRow {
for item in items {
static "{item}"
}
@transform! {
height: 1
};
@Style { foreground: None, background: Background::Solid(0xff0000) };
Div { "yo" }
@transform! {
height: 1
};
@Style { foreground: None, background: Background::Solid(0x00ff00) };
Div { "gurt" }
@transform! {
height: 1
};
@Style { foreground: None, background: Background::Solid(0x0000ff) };
Div { "67" }
@transform! {
height: 1
};
@Style { foreground: None, background: Background::Solid(0x0000ff) };
Div { "41" }
}
}
}