-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp.vue
More file actions
47 lines (46 loc) · 939 Bytes
/
app.vue
File metadata and controls
47 lines (46 loc) · 939 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<template>
<PageRootContainer>
<NavBar :title="ctx.$store.state.title||title" :left-arrow="back" @click-left="onClickLeft"/>
<transition name="fade" mode="out-in">
<router-view></router-view>
</transition>
</PageRootContainer>
</template>
<script>
export default {
nane: "StartPage",
props: {
title: { type: String, default: "所有组件" }, //,
back: { type: Boolean, default: true } // false
},
methods: {
onClickLeft() {
// this.$bitor.store.root.setItem("title", "所有组件");
this.ctx.app.redirect("/");
}
},
watch: {
"ctx.$store.state.title"(oldTitle, newTitle) {
// document.title = newTitle;
}
}
};
</script>
<style lang="less">
* {
outline: none;
-webkit-tap-highlight-color: transparent;
}
html,
body {
display: inline-block;
width: 100%;
// height: 100%;
overflow-x: hidden;
}
div,
p,
center {
box-sizing: border-box;
}
</style>