Skip to content

Commit fa226b3

Browse files
committed
format files
1 parent 575197d commit fa226b3

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+3121
-3148
lines changed

.vscode/settings.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"xml.fileAssociations": [
3+
{
4+
"systemId": "/Users/superman/Documents/code/nativescript-vue-examples/schema/tns.xsd",
5+
"pattern": "**/**/*.xml"
6+
},
7+
{
8+
"systemId": "http://www.w3.org/2001/XMLSchema.xsd",
9+
"pattern": "/Users/superman/Documents/code/nativescript-vue-examples/schema/tns.xsd"
10+
}
11+
],
12+
"files.exclude": {
13+
"schema": true
14+
},
15+
"xml.completion.autoCloseTags": true,
16+
"xml.format.enabled": true,
17+
"xml.validation.enabled": true
18+
}

app/components/example/Dialog/dialog.vue

Lines changed: 37 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,56 +1,56 @@
11
<template>
2-
<Page>
3-
<ActionBar class="action-bar" title="Hello">
4-
<NavigationButton text="Go Back" android.systemIcon="ic_menu_back" @tap="$navigateBack" />
5-
<StackLayout orientation="horizontal">
6-
<Image src="res://icon" width="40" height="40" verticalAlignment="center" @tap="open"/>
7-
<Label text="NativeScript" fontSize="24" verticalAlignment="center" />
8-
</StackLayout>
9-
</ActionBar>
10-
<GridLayout colums="*" rows="*">
11-
<Dialog ref="drawer" v-model="drawerState">
12-
<Label text="main mian mian" />
13-
<StackLayout slot="bottom">
14-
<Label text="Im in the bottom drawer" />
15-
<Label text="Im in the bottom drawer" />
16-
<Label text="Im in the bottom drawer" />
17-
<Label text="Im in the bottom drawer" />
18-
</StackLayout>
19-
<Frame />
20-
</Dialog>
21-
</GridLayout>
22-
</Page>
2+
<Page>
3+
<ActionBar class="action-bar" title="Hello">
4+
<NavigationButton text="Go Back" android.systemIcon="ic_menu_back" @tap="$navigateBack" />
5+
<StackLayout orientation="horizontal">
6+
<Image src="res://icon" width="40" height="40" verticalAlignment="center" @tap="open" />
7+
<Label text="NativeScript" fontSize="24" verticalAlignment="center" />
8+
</StackLayout>
9+
</ActionBar>
10+
<GridLayout colums="*" rows="*">
11+
<Dialog ref="drawer" v-model="drawerState">
12+
<Label text="main mian mian" />
13+
<StackLayout slot="bottom">
14+
<Label text="Im in the bottom drawer" />
15+
<Label text="Im in the bottom drawer" />
16+
<Label text="Im in the bottom drawer" />
17+
<Label text="Im in the bottom drawer" />
18+
</StackLayout>
19+
<Frame />
20+
</Dialog>
21+
</GridLayout>
22+
</Page>
2323
</template>
2424

2525
<script>
2626
export default {
2727
data() {
2828
return {
29-
msg: "Hello World! ",
30-
listOfItems:[{text:'111'},{text:'2222'},{text:'3333'}],
31-
drawerState: false,
29+
msg: 'Hello World! ',
30+
listOfItems: [{ text: '111' }, { text: '2222' }, { text: '3333' }],
31+
drawerState: false
3232
};
3333
},
3434
methods: {
35-
open:function(){
36-
console.log('打开了');
37-
if(this.drawerState == 'bottom'){
38-
this.drawerState = false;
39-
}else{
40-
this.drawerState = 'bottom'
41-
console.log('xxxx',this.drawerState);
42-
}
43-
//this.$refs.drawer.open('bottom')
35+
open: function() {
36+
console.log('打开了');
37+
if (this.drawerState == 'bottom') {
38+
this.drawerState = false;
39+
} else {
40+
this.drawerState = 'bottom';
41+
console.log('xxxx', this.drawerState);
4442
}
43+
//this.$refs.drawer.open('bottom')
44+
}
4545
}
4646
};
4747
</script>
4848

4949
<style scoped>
50-
.wrap{
51-
border-width:1;
52-
border-color: red;
53-
background-color: green;
50+
.wrap {
51+
border-width: 1;
52+
border-color: red;
53+
background-color: green;
5454
}
5555
ActionBar {
5656
background-color: #53ba82;

0 commit comments

Comments
 (0)