From 9203a43facf5fd967aaafcfc41541a9f4565869a Mon Sep 17 00:00:00 2001 From: li-guang <153605324@qq.com> Date: Thu, 07 Jan 2021 11:29:28 +0800 Subject: [PATCH] Merge branch 'master' of https://gitee.com/jyyforjava/hive-app --- hive-app/components/noRecord/index.vue | 27 +++++++++++++++++++++++---- 1 files changed, 23 insertions(+), 4 deletions(-) diff --git a/hive-app/components/noRecord/index.vue b/hive-app/components/noRecord/index.vue index db3308b..4554110 100644 --- a/hive-app/components/noRecord/index.vue +++ b/hive-app/components/noRecord/index.vue @@ -1,11 +1,24 @@ <template> - <view class="no-record"> + <view class="no-record" :class="size==='mini'?'mini':''" v-if="isShow"> <image src="../../static/images/no-data.png" mode="widthFix"></image> - <text>暂无数据</text> + <text>{{txt}}</text> </view> </template> <script> + export default{ + props:{ + isShow: { + default: false + }, + size: { + default: 'normal' + }, + txt: { + default: '暂无数据' + } + } + } </script> <style> @@ -13,11 +26,17 @@ text-align: center; font-size: 14px; color: rgb(171, 177, 204); - margin-top: 30%; + padding-top: 30%; + } + .no-record.mini{ + padding-top: 0; } .no-record image{ display: block; - width: 170px; margin: 0 auto 10px; + width: 160px; + } + .no-record.mini image{ + width: 100px; } </style> -- Gitblit v1.9.1