You've already forked guangan-mp
1.0.0
This commit is contained in:
54
components/i-nodata/i-nodata.vue
Normal file
54
components/i-nodata/i-nodata.vue
Normal file
@ -0,0 +1,54 @@
|
||||
<template>
|
||||
<view>
|
||||
<view class="flex align-center justify-center">
|
||||
<view class="text-center">
|
||||
<image :src="src" style="width: 300rpx;height: 248rpx;"></image>
|
||||
<view class="font32 text-center">{{title}}</view>
|
||||
<view class="mt-2 font28 text-muted text-center" v-if="subtitle">{{subtitle}}</view>
|
||||
|
||||
</view>
|
||||
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name:"i-nodata",
|
||||
props:{
|
||||
src:{
|
||||
type:String,
|
||||
default(){
|
||||
return '/static/zanwu.png'
|
||||
}
|
||||
},
|
||||
title:{
|
||||
type:String,
|
||||
default(){
|
||||
return '空空如也'
|
||||
}
|
||||
},
|
||||
subtitle:{
|
||||
type:String,
|
||||
default(){
|
||||
return null
|
||||
}
|
||||
},
|
||||
isBtn:{
|
||||
type:Boolean,
|
||||
default(){
|
||||
return true
|
||||
}
|
||||
}
|
||||
},
|
||||
methods:{
|
||||
toShow(){
|
||||
this.$emit('click')
|
||||
},
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style>
|
||||
|
||||
</style>
|
Reference in New Issue
Block a user