release: WRNexusJS 0.6.0
This commit is contained in:
@@ -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>
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
layout PublicLayout {
|
||||
view {
|
||||
<main><slot /></main>
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
page Home {
|
||||
layout = "public"
|
||||
|
||||
functions {
|
||||
function handleConfirm(value) {
|
||||
console.log(value)
|
||||
}
|
||||
}
|
||||
|
||||
view {
|
||||
<LegacyModal @confirm='handleConfirm(event.detail)' />
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
interface LegacyGlobalContext {
|
||||
requestId: string;
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"name": "wrnexus-v05-legacy-fixture",
|
||||
"private": true,
|
||||
"version": "0.5.14",
|
||||
"dependencies": {
|
||||
"@wrnexus/core": "0.5.14",
|
||||
"@wrnexus/ui": "0.5.14"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user