fuint-uniapp-master/components/empty/index.vue
(开头部分) 1KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
<template>
<view v-if="!isLoading" class="empty-content" :style="customStyle">
<view class="empty-icon">
<image class="image" src="/static/empty.png" mode="widthFix"></image>
</view>
<view class="tips">{{ tips }}</view>
<slot name="slot"></slot>
</view>
</template>
<script>
export default {
/**
* 组件的属性列表
* 用于组件自定义设置
*/
props: {
// 正在加载
isLoading: {
type: Boolean,
default: true
},
// 自定义样式
customStyle: {
type: Object,
default () {
return {}
}
},
// 提示的问题
tips: {
type: String,
default: '亲,暂无相关数据'
}
},
data() {
return {}
},
methods: {
}
}
</script>
<style lang="scss" scoped>
.empty-content {
box-sizing: border-box;
width: 100%;
padding: 140rpx 50rpx;
text-align: center;
.tips {
font-size: 26rpx;
color: gray;
margin: 10rpx 0rpx 40rpx 0rpx;
}
后面还有 6 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。