Skip to content

Commit fbed77d

Browse files
committed
chore: update to latest deps
1 parent 47465c7 commit fbed77d

File tree

27 files changed

+2552
-6446
lines changed

27 files changed

+2552
-6446
lines changed

apps/demo/app/Comp.js renamed to apps/demo/app/_exploration/Comp.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import PageComp from '~/PageComp'
1+
import PageComp from '~/_exploration/PageComp'
22
import { ref } from 'nativescript-vue'
33
export default {
44
template: `<ScrollView><StackLayout>
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

apps/demo/app/app.js renamed to apps/demo/app/_exploration/app.js

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import ListViewComp from './ListViewComp'
2020
import Test from './Test'
2121

2222
// todo: figure out why isOn is undefined in Vue - causes a crash...
23-
global.isOn = (name) => name.startsWith('on')
23+
// global.isOn = (name) => name.startsWith('on')
2424

2525
const withVModel = (node, arg, mods) =>
2626
withDirectives(node, [[vModel, arg, '', mods]])
@@ -55,18 +55,6 @@ const testComp = defineComponent({
5555
Trace.setCategories('ListView')
5656
Trace.enable()
5757

58-
function dumpViewTree(root) {
59-
const mapNode = (node) => {
60-
return {
61-
id: node.nodeId,
62-
type: node.tagName ? node.tagName : node.nodeType,
63-
text: node.text,
64-
children: node.childNodes.map(mapNode),
65-
}
66-
}
67-
return root.childNodes.map(mapNode)
68-
}
69-
7058
function useInterval(cb, ms) {
7159
const interval = setInterval(cb, ms)
7260
onUnmounted(() => clearInterval(interval))

apps/demo/app/components/App.vue

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
<template>
2+
<Frame>
3+
<Page>
4+
<ActionBar title="My Vue3 App!" />
5+
6+
<StackLayout ref="stackLayout">
7+
<Label>Hello World</Label>
8+
<Button @tap="toggleThing">Tap Here</Button>
9+
<HelloWorld v-if="showThing" />
10+
</StackLayout>
11+
</Page>
12+
</Frame>
13+
</template>
14+
15+
<script>
16+
import { ref, defineComponent } from 'nativescript-vue'
17+
import HelloWorld from './HelloWorld.vue';
18+
19+
export default defineComponent({
20+
components: {
21+
HelloWorld
22+
},
23+
setup() {
24+
const stackLayout = ref(null)
25+
26+
const showThing = ref(false);
27+
const toggleThing = () => {
28+
showThing.value = !showThing.value
29+
}
30+
31+
return {
32+
stackLayout,
33+
showThing,
34+
toggleThing,
35+
};
36+
},
37+
});
38+
</script>
39+
40+
<style>
41+
label {
42+
font-size: 24;
43+
color: #65adf1;
44+
text-align: center;
45+
}
46+
</style>
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<template>
2+
<Label>Hi, welcome to Vue3!</Label>
3+
<Label textWrap>It supports multiple root elements, so you are no longer limited to wrapping every component</Label>
4+
</template>

0 commit comments

Comments
 (0)