From cc499362b6eba119792e113796e4da029a70fc6d Mon Sep 17 00:00:00 2001 From: queenwuli <942534046@qq.com> Date: Sun, 27 Dec 2020 14:59:26 +0800 Subject: [PATCH] 服务单接口联调 --- hive-app/components/noRecord/index.vue | 26 ++++++++++++++++++++++---- 1 files changed, 22 insertions(+), 4 deletions(-) diff --git a/hive-app/components/noRecord/index.vue b/hive-app/components/noRecord/index.vue index db3308b..00abe9b 100644 --- a/hive-app/components/noRecord/index.vue +++ b/hive-app/components/noRecord/index.vue @@ -1,11 +1,24 @@ <template> - <view class="no-record"> - <image src="../../static/images/no-data.png" mode="widthFix"></image> - <text>暂无数据</text> + <view class="no-record" v-if="isShow"> + <image src="../../static/images/no-data.png" :class="size==='mini'?'mini-img':'normal-img'" mode="widthFix"></image> + <text>{{txt}}</text> </view> </template> <script> + export default{ + props:{ + isShow: { + default: false + }, + size: { + default: 'normal' + }, + txt: { + default: '暂无数据' + } + } + } </script> <style> @@ -17,7 +30,12 @@ } .no-record image{ display: block; - width: 170px; margin: 0 auto 10px; } + .normal-img{ + width: 160px; + } + .mini-img{ + width: 100px; + } </style> -- Gitblit v1.9.1