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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
| <template>
| <div id="app" class="app app1">
| <!-- vue router
| axios
| less
| vuex
| vuels -->
| <!-- <demo/> -->
| <!-- <div id="nav">
| <router-link to="/">Home</router-link>
| <router-link to="/about">About</router-link>
| </div>
| <router-view/> -->
|
| <!-- 将上传组件全局注册 -->
| <!-- <global-uploader></global-uploader> -->
| <pp></pp>
| </div>
| </template>
|
| <script>
| import globalUploader from '@/components/globalUploader.vue'
| import HelloWorld from '@/components/HelloWorld.vue'
| import demo from '@/components/demo.vue'
| // import pp from '@/components/test1/parent1.vue'
| import pp from '@/components/layouts/test.vue'
|
| export default {
| name: 'app',
| data() {
| return {}
| },
| components: {
| globalUploader,
| HelloWorld,
| demo,
| pp
|
| },
| computed: {},
| created() {},
| watch: {},
| }
| </script>
| <style>
| .app {
| overflow: auto;
| border: none;
| }
|
| #app,body,html {
| height: 100%;
| }
|
| .scrollbar {
| margin: 0 auto;
| }
|
| .app1::-webkit-scrollbar {
| /*滚动条整体样式*/
| /*高宽分别对应横竖滚动条的尺寸*/
| width: 8px;
| height: 5px;
| }
|
| .app1::-webkit-scrollbar-thumb {
| /*滚动条里面小方块*/
| border-radius: 6px;
| background: #aaa;
| }
|
| .app1::-webkit-scrollbar-track {
| /*滚动条里面轨道*/
| border-radius: 8px;
| background: #FFFFFF;
| }
| </style>
|
|