no-recode.vue
801 字节
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
<template>
<view class="h-no-recode">
<view class="lz-cc lz-mg-all--xl" v-if="if_show">
<view class="no-recode-content">
<img :src="static_media.noRecord"/>
<view style="font-size:15px;">暂无内容</view>
</view>
</view>
</view>
</template>
<script>
export default {
name: "no-recode",
props: {
show: {
type: Boolean,
default: false
}
},
data() {
return {
if_show:this.show,
}
},
computed:{
static_media () {
return {
noRecord: this.$lib.$config.web + '/static/img/kong.png'
}
},
},
watch: {
show(newValue, oldValue) {
this.if_show = newValue;
}
},
}
</script>
<style>
.no-recode-content{
width: 100%;
text-align: center;
color: #9f9f9f;
}
.lz-cc{top: 28%;}
</style>