File tree Expand file tree Collapse file tree 2 files changed +14
-30
lines changed
template-blank-vue-ts/app/components
template-blank-vue/app/components Expand file tree Collapse file tree 2 files changed +14
-30
lines changed Original file line number Diff line number Diff line change 11<template >
2- <Page >
3- <ActionBar >
4- <Label text =" Home" class = " font-bold text-lg " />
5- </ActionBar >
2+ <Page >
3+ <ActionBar >
4+ <Label text =" Home" />
5+ </ActionBar >
66
7- <GridLayout >
8- <Label class =" text-xl align-middle text-center text-gray-500" :text =" message" @tap = " logMessage " />
9- </GridLayout >
10- </Page >
7+ <GridLayout >
8+ <Label class =" text-xl align-middle text-center text-gray-500" :text =" message" />
9+ </GridLayout >
10+ </Page >
1111</template >
1212
13- <script lang="ts">
14- export default {
15- computed: {
16- message() {
17- return " Blank {N}-Vue app" ;
18- }
19- },
13+ <script setup lang="ts">
14+ import { computed } from ' nativescript-vue'
2015
21- methods: {
22- logMessage() {
23- console .log (' You have tapped the message!' )
24- }
25- }
26- };
16+ const message = computed (() => " Blank {N}-Vue app" );
2717 </script >
Original file line number Diff line number Diff line change 1010 </Page >
1111</template >
1212
13- <script lang="ts">
14- import { defineComponent } from ' nativescript-vue'
13+ <script setup lang="ts">
14+ import { computed } from ' nativescript-vue'
1515
16- export default defineComponent ({
17- computed: {
18- message() {
19- return " Blank {N}-Vue app" ;
20- }
21- }
22- });
16+ const message = computed (() => " Blank {N}-Vue app" );
2317 </script >
You can’t perform that action at this time.
0 commit comments