mirror of
https://github.com/slint-ui/slint.git
synced 2025-08-04 02:39:28 +00:00
Implement LLR code lowering for ComponentContainer
This commit is contained in:
parent
d47d52bf52
commit
5db78b6dd2
7 changed files with 140 additions and 3 deletions
|
@ -1625,7 +1625,7 @@ impl Element {
|
|||
}
|
||||
|
||||
pub fn sub_component(&self) -> Option<&Rc<Component>> {
|
||||
if self.repeated.is_some() {
|
||||
if self.repeated.is_some() || self.is_component_placeholder {
|
||||
None
|
||||
} else if let ElementType::Component(sub_component) = &self.base_type {
|
||||
Some(sub_component)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue