mirror of
https://github.com/slint-ui/slint.git
synced 2025-08-04 10:50:00 +00:00
New syntax: allow to create component without base
This commit is contained in:
parent
d7e366864b
commit
f055afd2de
14 changed files with 187 additions and 77 deletions
|
@ -209,6 +209,8 @@ pub fn load_builtins(register: &mut TypeRegister) {
|
|||
register.property_animation_type =
|
||||
ElementType::Builtin(natives.remove("PropertyAnimation").unwrap());
|
||||
|
||||
register.empty_type = ElementType::Builtin(natives.remove("Empty").unwrap());
|
||||
|
||||
if !diag.is_empty() {
|
||||
let vec = diag.to_string_vec();
|
||||
#[cfg(feature = "display-diagnostics")]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue