miniapp.vue
997 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
47
48
49
50
51
52
53
54
55
<template>
<div class="app-frame">
<div class="title">{{title}}</div>
<div class="app-title">
<img :src="bg" alt="" srcset="" width="100%">
</div>
<div><slot></slot></div>
</div>
</template>
<script>
export default {
name: 'miniapp',
props: {
title: {
type: String,
default () {
return '';
}
},
bg: {
type: String,
default () {
return require('assets/apptitle.png')
}
}
},
};
</script>
<style>
.app-frame {
width: 400px;
min-height: 1000px;
display: inline-block;
background-color: #F2F2F2;
border: 1px solid #CCCCCC;
border-radius: 10px;
padding-left: 10px;
padding-right: 10px;
}
.app-title {
/* background-image: url('~assets/apptitle.png'); */
/* background-size: cover; */
margin-bottom: 10px;
}
.title {
font-size: 25px;
text-align: center;
margin-top: 10px;
margin-bottom: 10px;
}
</style>