feat(site): show nested setup object in demo page
This commit is contained in:
parent
6b0e0a46f0
commit
cb85e3eafc
1 changed files with 8 additions and 5 deletions
|
@ -10,6 +10,7 @@
|
||||||
message: "hello"
|
message: "hello"
|
||||||
};
|
};
|
||||||
|
|
||||||
|
greeting.message = "nope";
|
||||||
var count = sum(1, 247);
|
var count = sum(1, 247);
|
||||||
|
|
||||||
function sum(x, y) {
|
function sum(x, y) {
|
||||||
|
@ -58,7 +59,7 @@
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<code-block language="js">const name = "Nitro"</code-block>
|
<code-block language="js">const name = "Nitro"</code-block>
|
||||||
<a href="{{greeting.url}}">some text: {{greeting.message}}</a>
|
<p><a href="{{greeting.url}}">some text: {{greeting.message}}</a></p>
|
||||||
<clickable-text></clickable-text>
|
<clickable-text></clickable-text>
|
||||||
</section>
|
</section>
|
||||||
<section id="breakdown">
|
<section id="breakdown">
|
||||||
|
@ -70,9 +71,12 @@
|
||||||
<my-head>
|
<my-head>
|
||||||
<script server:setup>
|
<script server:setup>
|
||||||
const name = "Nitro";
|
const name = "Nitro";
|
||||||
let greeting = "hello";
|
let greeting = {
|
||||||
|
url: 'https://www.google.com',
|
||||||
|
message: "hello"
|
||||||
|
};
|
||||||
var count = sum(1, 247);
|
var count = sum(1, 247);
|
||||||
greeting = "nope";
|
greeting.message = "nope";
|
||||||
function sum(x, y) {
|
function sum(x, y) {
|
||||||
return x + y;
|
return x + y;
|
||||||
}
|
}
|
||||||
|
@ -88,8 +92,7 @@
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<code-block language="js">const name = "Nitro"</code-block>
|
<code-block language="js">const name = "Nitro"</code-block>
|
||||||
<p>some text: {{greeting}}</p>
|
<p><a href="{{greeting.url}}">some text: {{greeting.message}}</a></p>
|
||||||
{{greeting}} hey<br />
|
|
||||||
<clickable-text></clickable-text>
|
<clickable-text></clickable-text>
|
||||||
</body>
|
</body>
|
||||||
</html></pre
|
</html></pre
|
||||||
|
|
Loading…
Reference in a new issue