-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.vue
82 lines (73 loc) · 1.66 KB
/
App.vue
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
78
79
80
81
82
<template>
<div id="app">
<div v-img-placeholder.bg="['http://api.dujin.org/bing/1920.php','https://www.baidu.com/favicon.ico']" class="wrapper"></div>
<div v-img-placeholder.bg="'http://api.dujin.org/bing/1920.php'" class="wrapper"> </div>
<div class="wrapper">
<img v-img-placeholder="['http://api.dujin.org/bing/1920.php','https://www.baidu.com/favicon.ico']" alt="">
</div>
<div class="wrapper">
<img v-img-placeholder="'http://api.dujin.org/bing/1920.php'" alt="">
</div>
<!-- f-follower -->
<div v-follower="options" class="wrapper">case: v-follower</div>
</div>
</template>
<script>
export default {
name: "App",
directives:{
},
data() {
return {
options:{
txt: "自定义样式",
style:{
"backgroundColor": "#38f",
"color": "#fff",
}
}
};
}
};
</script>
<style lang="scss" scoped>
#app{
display: flex;
}
.wrapper {
width: 300px;
height: 300px;
display: flex;
justify-content: center;
align-items: center;
border: 1px solid pink;
&>img{
width: 160px;
height: 160px;
display: block;
}
}
#app {
font-family: "Avenir", Helvetica, Arial, sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
text-align: center;
color: #2c3e50;
margin-top: 60px;
}
h1,
h2 {
font-weight: normal;
}
ul {
list-style-type: none;
padding: 0;
}
li {
display: inline-block;
margin: 0 10px;
}
a {
color: #42b983;
}
</style>