|
@@ -59,10 +59,10 @@ class Cond(MemoizationLeaf):
|
|
)
|
|
)
|
|
|
|
|
|
def _get_props_imports(self):
|
|
def _get_props_imports(self):
|
|
- """Get the imports needed for components props.
|
|
|
|
|
|
+ """Get the imports needed for component's props.
|
|
|
|
|
|
Returns:
|
|
Returns:
|
|
- The imports for the components props of the component.
|
|
|
|
|
|
+ The imports for the component's props of the component.
|
|
"""
|
|
"""
|
|
return []
|
|
return []
|
|
|
|
|
|
@@ -100,6 +100,15 @@ class Cond(MemoizationLeaf):
|
|
_IS_TRUE_IMPORT,
|
|
_IS_TRUE_IMPORT,
|
|
)
|
|
)
|
|
|
|
|
|
|
|
+ def _apply_theme(self, theme: Component):
|
|
|
|
+ """Apply the theme to this component.
|
|
|
|
+
|
|
|
|
+ Args:
|
|
|
|
+ theme: The theme to apply.
|
|
|
|
+ """
|
|
|
|
+ self.comp1.apply_theme(theme) # type: ignore
|
|
|
|
+ self.comp2.apply_theme(theme) # type: ignore
|
|
|
|
+
|
|
|
|
|
|
@overload
|
|
@overload
|
|
def cond(condition: Any, c1: Component, c2: Any) -> Component:
|
|
def cond(condition: Any, c1: Component, c2: Any) -> Component:
|