Skip to content

Commit a5fb612

Browse files
committed
rename components
1 parent d6c7f25 commit a5fb612

28 files changed

+36
-37
lines changed

app/components/example/animate.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<template>
22
<Page loaded="pageLoaded" ref="page">
3-
<action-bar-second :title="'动画效果'"></action-bar-second>
3+
<ActionBarSecond :title="'动画效果'"></ActionBarSecond>
4+
45
<GridLayout colums="*" rows="*" id="dd">
56
<Label class="animateicon" :text="msg" col="0" row="0" />
67
<Image class="animateicon" src="~/assets/images/NativeScript-Vue.png" />

app/components/example/camera.vue

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
<template>
22
<Page class="page">
3-
<action-bar-second :title="'相机'"></action-bar-second>
4-
3+
<ActionBarSecond :title="'相机'"></ActionBarSecond>
4+
55
<StackLayout class="hello-world camera-container">
66
<Button class="btn btn-primary" @tap="test" text="相机" />
7-
<Image class="camera-img" :src="imgsrc" stretch="none" ref="img" />
7+
<Image class="camera-img" :src="img" stretch="none" ref="img" />
88
</StackLayout>
99
</Page>
1010
</template>
@@ -19,7 +19,8 @@ export default {
1919
},
2020
data() {
2121
return {
22-
imgsrc: 'res://icon'
22+
imgsrc: 'res://icon',
23+
img: '~/assets/icons/johndoe.jpg'
2324
};
2425
},
2526
mounted() {},
@@ -49,10 +50,8 @@ export default {
4950
<style scoped>
5051
.camera-container {
5152
background-color: blue;
52-
text-align: center;
5353
}
5454
.camera-img {
55-
margin: 0 auto;
5655
horizontal-align: center;
5756
}
5857
</style>

app/components/example/change-btn.vue

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
<template>
22
<Page class="page">
3-
<action-bar-second :title="'改变按钮'"></action-bar-second>
4-
3+
<ActionBarSecond :title="'改变按钮'"></ActionBarSecond>
54
<StackLayout class="hello-world">
65
<Button class="btn btn-primary btn-green" @tap="changebtn" ref="btn" text="改变按钮" />
76
</StackLayout>

app/components/example/counter.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<template>
22
<Page class="page">
3-
<action-bar-second :title="'计数器'"></action-bar-second>
4-
3+
<ActionBarSecond :title="'计数器'"></ActionBarSecond>
4+
55
<StackLayout>
66
<FlexboxLayout flexDirection="row" justifyContent="center">
77
<Button @tap="decrement" text="-" class="btn btn-outline" />

app/components/example/dialog-new.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<template>
22
<Page class="page">
3-
<action-bar-second :title="'对话框'"></action-bar-second>
4-
3+
<ActionBarSecond :title="'对话框'"></ActionBarSecond>
4+
55
<StackLayout class="hello-world">
66
<Button class="btn btn-primary" @tap="dialog" text="对话框" />
77
</StackLayout>

app/components/example/display.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<template>
22
<Page class="page">
3-
<action-bar-second :title="'显示隐藏'"></action-bar-second>
3+
<ActionBarSecond :title="'显示隐藏'"></ActionBarSecond>
4+
45
<StackLayout class="hello-world">
56
<Label class="body" textWrap="true" text="这是一个hello world组件,如果你挑战,请点击这个按钮" />
67
<Label
@@ -9,7 +10,6 @@
910
text="This is a hello world component, tap the button if you dare"
1011
/>
1112
<Button class="btn btn-primary" text="显示隐藏" @tap="surprise = !surprise" />
12-
1313
<Image v-if="surprise" src="~/assets/images/NativeScript-Vue.png" />
1414
</StackLayout>
1515
</Page>

app/components/example/drawer.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<!-- <RadSideDrawer [drawerTransition]="sideDrawerTransition"> -->
44

55
<GridLayout tkDrawerContent rows="auto, *" class="sidedrawer sidedrawer-left">
6-
<action-bar-second :title="'侧滑菜单'"></action-bar-second>
6+
<ActionBarSecond :title="'侧滑菜单'"></ActionBarSecond>
77
<StackLayout row="0" class="sidedrawer-header">
88
<Label class="sidedrawer-header-image fa" text="&#xf2bd;"></Label>
99
<Label class="sidedrawer-header-brand" text="User Name"></Label>

app/components/example/fab/fab.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<template>
22
<Page class="page" @loaded="appLoaded">
3-
<action-bar-second :title="'记事薄'"></action-bar-second>
3+
<ActionBarSecond :title="'记事薄'"></ActionBarSecond>
44
<AbsoluteLayout ref="rootLayout">
55
<ListView
66
for="item in items"

app/components/example/fancy-alert.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<template>
22
<Page class="page">
3-
<action-bar-second :title="'精美提示框'"></action-bar-second>
3+
<ActionBarSecond :title="'精美提示框'"></ActionBarSecond>
44

55
<StackLayout class="hello-world">
66
<Button class="btn btn-primary" @tap="btnfancyalert" text="精美提示框" />

app/components/example/geolocation.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<template>
22
<Page class="page">
3-
<action-bar-second :title="'获取位置信息'"></action-bar-second>
3+
<ActionBarSecond :title="'获取位置信息'"></ActionBarSecond>
44
<StackLayout class="hello-world">
55
<Button class="btn btn-primary" @tap="geolocation" text="获取位置信息" />
66
</StackLayout>

0 commit comments

Comments
 (0)