| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172 |
- <!--
- * @FileDescription: index
- * @Author: kahu
- * @Date: 2022/11/11
- * @LastEditors: kahu
- * @LastEditTime: 2022/11/11
- -->
- <template>
- <view v-if="show" class="empty-content" :style="{
- paddingTop: this.paddingTop+'rpx',
- background: this.background
- }">
- <image :src="iconUrl" />
- <p class="tips">
- <slot>
- 暂无数据~
- </slot>
- </p>
- </view>
- </template>
- <script>
- export default {
- name: "empty",
- data() {
- return {}
- },
- props:{
- show:{
- type:Boolean,
- default:false
- },
- paddingTop:{
- type:Number,
- default:()=>500
- },
- background:{
- type:String,
- default:()=>'#f8f8f8'
- },
- iconUrl:{
- type:String,
- default:()=>'https://ceres.zkthink.com/static/images/searchEmpty.png'
- }
- },
- computed:{
- },
- methods: {}
- }
- </script>
- <style
- lang="scss"
- scoped
- >
- .empty-content{
- display: flex;
- justify-content: center;
- flex-direction: column;
- align-items: center;
- image{
- width:150rpx;
- height: 150rpx;
- }
- .tips{
- margin-top: 25rpx;
- font-weight: bolder;
- }
- }
- </style>
|