File tree 3 files changed +22
-5
lines changed
platform/nativescript/util
3 files changed +22
-5
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,12 @@ declare module 'nativescript-vue' {
11
11
* @param resolver function to register the element
12
12
* @param meta meta associated with the element
13
13
*/
14
- static registerElement ( elementName : string , resolver : Function , meta ?: any ) ;
14
+ static registerElement ( elementName : string , resolver : Function , meta ?: any ) : void ;
15
+
16
+ /**
17
+ * starts the nativescript application
18
+ */
19
+ $run ( ) : void
15
20
}
16
21
17
22
export = NativeScriptVue ;
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ export function isUnknownElement(el) {
31
31
}
32
32
33
33
export function isPage ( el ) {
34
- return el && el . tagName === 'page '
34
+ return el && el . tagName === 'nativepage '
35
35
}
36
36
37
37
/** @deprecated */
Original file line number Diff line number Diff line change @@ -2,9 +2,16 @@ const Vue = require('./nativescript-vue')
2
2
3
3
const App = {
4
4
template : `
5
- <StackLayout>
6
- <Button text="Open page" @tap="openPage" />
7
- </StackLayout>
5
+ <Frame>
6
+ <Page>
7
+ <ActionBar class="action-bar" title="Home Page">
8
+ <ActionItem text="Action"></ActionItem>
9
+ </ActionBar>
10
+ <StackLayout>
11
+ <Button text="Open page" @tap="openPage" />
12
+ </StackLayout>
13
+ </Page>
14
+ </Frame>
8
15
` ,
9
16
10
17
methods : {
@@ -16,11 +23,16 @@ const App = {
16
23
17
24
const DetailsPage = {
18
25
template : `
26
+ <Page>
27
+ <ActionBar class="action-bar" title="Details Page">
28
+ <ActionItem text="Action"></ActionItem>
29
+ </ActionBar>
19
30
<StackLayout>
20
31
<Label :text="'Details ' + Math.random()" />
21
32
<Button text="another" @tap="openDetails" />
22
33
<Button text="back" @tap="goBack" />
23
34
</StackLayout>
35
+ </Page>
24
36
` ,
25
37
26
38
methods : {
You can’t perform that action at this time.
0 commit comments