mirror of
https://github.com/slint-ui/slint.git
synced 2025-09-30 13:51:13 +00:00
Support for signal with arguments in the interpreter
This commit is contained in:
parent
2ffef9b31a
commit
42aa91e3eb
7 changed files with 137 additions and 55 deletions
|
@ -38,7 +38,7 @@ require.extensions['.60'] =
|
|||
});
|
||||
c.signals().forEach(x => {
|
||||
Object.defineProperty(ret, x, {
|
||||
get() { return function () { comp.emit_signal(x); } },
|
||||
get() { return function () { comp.emit_signal(x, [...arguments]); } },
|
||||
enumerable: true,
|
||||
})
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue