@nativescript/template-tab-navigation-vue 9.0.2 → 9.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/app/components/App.vue +4 -3
- package/app/components/Browse.vue +5 -3
- package/app/components/ItemDetails.vue +5 -3
- package/app/components/Items.vue +5 -5
- package/app/components/Search.vue +5 -3
- package/package.json +8 -4
- package/tsconfig.json +26 -0
- package/types/references.d.ts +1 -0
- package/types/shims.vue.d.ts +5 -0
- package/jsconfig.json +0 -10
- /package/app/{app.js → app.ts} +0 -0
package/app/components/App.vue
CHANGED
|
@@ -20,16 +20,17 @@
|
|
|
20
20
|
</TabView>
|
|
21
21
|
</template>
|
|
22
22
|
|
|
23
|
-
<script>
|
|
23
|
+
<script lang="ts">
|
|
24
|
+
import { defineComponent } from 'nativescript-vue'
|
|
24
25
|
import Items from './Items.vue'
|
|
25
26
|
import Browse from './Browse.vue'
|
|
26
27
|
import Search from './Search.vue'
|
|
27
28
|
|
|
28
|
-
export default {
|
|
29
|
+
export default defineComponent({
|
|
29
30
|
components: {
|
|
30
31
|
Items,
|
|
31
32
|
Browse,
|
|
32
33
|
Search
|
|
33
34
|
}
|
|
34
|
-
}
|
|
35
|
+
})
|
|
35
36
|
</script>
|
|
@@ -5,12 +5,14 @@
|
|
|
5
5
|
</ActionBar>
|
|
6
6
|
|
|
7
7
|
<GridLayout>
|
|
8
|
-
<Label class="far text-7xl text-gray-400 text-center" style="vertical-align: top; margin-top: 20%" text
|
|
8
|
+
<Label class="far text-7xl text-gray-400 text-center" style="vertical-align: top; margin-top: 20%" :text="'\uf1ea'"/>
|
|
9
9
|
<Label class="text-xl text-gray-400 text-center align-middle" text="Browse page content goes here"/>
|
|
10
10
|
</GridLayout>
|
|
11
11
|
</Page>
|
|
12
12
|
</template>
|
|
13
13
|
|
|
14
|
-
<script>
|
|
15
|
-
|
|
14
|
+
<script lang="ts">
|
|
15
|
+
import { defineComponent } from 'nativescript-vue'
|
|
16
|
+
|
|
17
|
+
export default defineComponent({})
|
|
16
18
|
</script>
|
package/app/components/Items.vue
CHANGED
|
@@ -14,11 +14,11 @@
|
|
|
14
14
|
</Page>
|
|
15
15
|
</template>
|
|
16
16
|
|
|
17
|
-
<script>
|
|
18
|
-
import { $navigateTo } from 'nativescript-vue'
|
|
17
|
+
<script lang="ts">
|
|
18
|
+
import { defineComponent, $navigateTo } from 'nativescript-vue'
|
|
19
19
|
import ItemDetails from './ItemDetails.vue'
|
|
20
20
|
|
|
21
|
-
export default {
|
|
21
|
+
export default defineComponent({
|
|
22
22
|
data() {
|
|
23
23
|
return {
|
|
24
24
|
items: [
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
}
|
|
43
43
|
},
|
|
44
44
|
methods: {
|
|
45
|
-
onItemTap(args) {
|
|
45
|
+
onItemTap(args: any) {
|
|
46
46
|
$navigateTo(ItemDetails, {
|
|
47
47
|
frame: 'items',
|
|
48
48
|
props: { item: args.item },
|
|
@@ -55,5 +55,5 @@
|
|
|
55
55
|
})
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
|
-
}
|
|
58
|
+
})
|
|
59
59
|
</script>
|
|
@@ -5,12 +5,14 @@
|
|
|
5
5
|
</ActionBar>
|
|
6
6
|
|
|
7
7
|
<GridLayout>
|
|
8
|
-
<Label class="fas text-7xl text-gray-400 text-center" style="vertical-align: top; margin-top: 20%" text
|
|
8
|
+
<Label class="fas text-7xl text-gray-400 text-center" style="vertical-align: top; margin-top: 20%" :text="'\uf002'"/>
|
|
9
9
|
<Label class="text-xl text-gray-400 text-center align-middle" text="Search page content goes here"/>
|
|
10
10
|
</GridLayout>
|
|
11
11
|
</Page>
|
|
12
12
|
</template>
|
|
13
13
|
|
|
14
|
-
<script>
|
|
15
|
-
|
|
14
|
+
<script lang="ts">
|
|
15
|
+
import { defineComponent } from 'nativescript-vue'
|
|
16
|
+
|
|
17
|
+
export default defineComponent({})
|
|
16
18
|
</script>
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nativescript/template-tab-navigation-vue",
|
|
3
|
-
"main": "app/app.
|
|
3
|
+
"main": "app/app.ts",
|
|
4
4
|
"displayName": "Tabs",
|
|
5
|
-
"version": "9.0.
|
|
5
|
+
"version": "9.0.4",
|
|
6
6
|
"description": "Tabbed interface template using Vue",
|
|
7
7
|
"author": "NativeScript Team <oss@nativescript.org>",
|
|
8
8
|
"license": "Apache-2.0",
|
|
@@ -24,7 +24,8 @@
|
|
|
24
24
|
"tools",
|
|
25
25
|
"!tools/assets",
|
|
26
26
|
".editorconfig",
|
|
27
|
-
"
|
|
27
|
+
"types",
|
|
28
|
+
"tsconfig.json"
|
|
28
29
|
],
|
|
29
30
|
"keywords": [
|
|
30
31
|
"nstudio",
|
|
@@ -45,7 +46,10 @@
|
|
|
45
46
|
},
|
|
46
47
|
"devDependencies": {
|
|
47
48
|
"@nativescript/tailwind": "^4.0.0",
|
|
49
|
+
"@nativescript/types": "~9.0.0",
|
|
48
50
|
"@nativescript/webpack": "~5.0.31",
|
|
49
|
-
"
|
|
51
|
+
"@types/node": "^20.0.0",
|
|
52
|
+
"tailwindcss": "^4.0.0",
|
|
53
|
+
"typescript": "~5.8.0"
|
|
50
54
|
}
|
|
51
55
|
}
|
package/tsconfig.json
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"strict": true,
|
|
4
|
+
"target": "ES2020",
|
|
5
|
+
"module": "esnext",
|
|
6
|
+
"moduleResolution": "bundler",
|
|
7
|
+
"lib": ["dom", "ESNext"],
|
|
8
|
+
"sourceMap": true,
|
|
9
|
+
"noEmitHelpers": true,
|
|
10
|
+
"importHelpers": true,
|
|
11
|
+
"baseUrl": ".",
|
|
12
|
+
"paths": {
|
|
13
|
+
"~/*": ["app/*"],
|
|
14
|
+
"@/*": ["app/*"]
|
|
15
|
+
},
|
|
16
|
+
"typeRoots": ["types"],
|
|
17
|
+
"types": ["node"],
|
|
18
|
+
"allowSyntheticDefaultImports": true,
|
|
19
|
+
"esModuleInterop": true,
|
|
20
|
+
"experimentalDecorators": true,
|
|
21
|
+
"emitDecoratorMetadata": true,
|
|
22
|
+
"skipLibCheck": true
|
|
23
|
+
},
|
|
24
|
+
"include": ["app", "types"],
|
|
25
|
+
"exclude": ["node_modules", "platforms"]
|
|
26
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
/// <reference path="../node_modules/@nativescript/types/index.d.ts" />
|
package/jsconfig.json
DELETED
/package/app/{app.js → app.ts}
RENAMED
|
File without changes
|