release: WRNexusJS 0.6.0
This commit is contained in:
1 parent
3e565e8d03
commit
687d345882
502 files changed
+33038
-11358
No files matched your search
@@ -0,0 +1,23 @@
|
||||
component LegacyModal {
|
||||
props {
|
||||
title = "Confirm"
|
||||
@event confirm = function
|
||||
}
|
||||
|
||||
state open = false
|
||||
|
||||
functions {
|
||||
function show() {
|
||||
open = true
|
||||
}
|
||||
|
||||
function confirm() {
|
||||
$emit("confirm", { accepted: true })
|
||||
}
|
||||
}
|
||||
|
||||
view {
|
||||
<button @click='show()'>Open</button>
|
||||
<button @click='confirm()'>Confirm</button>
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user