同步代码
This commit is contained in:
32
components/my-components/my-img-empty.vue
Normal file
32
components/my-components/my-img-empty.vue
Normal file
@@ -0,0 +1,32 @@
|
||||
<template>
|
||||
<view class="u-flex u-flex-col u-row-center u-col-center w-full">
|
||||
<slot>
|
||||
<image :src="img" mode="" class="img"></image>
|
||||
<view class="tips">{{tips}}</view>
|
||||
</slot>
|
||||
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
const props= defineProps({
|
||||
tips:{
|
||||
type:String,
|
||||
default:'暂无数据'
|
||||
},
|
||||
img:{
|
||||
type:String,
|
||||
default:'/static/icon-empty.svg'
|
||||
}
|
||||
})
|
||||
</script>
|
||||
|
||||
<style lang="scss">
|
||||
.img{
|
||||
width: 326rpx;
|
||||
height: 336rpx;
|
||||
}
|
||||
.tips{
|
||||
margin-top: 74rpx;
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user