| | |
| | | <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> |
| | |
| | | } |
| | | .no-record image{ |
| | | display: block; |
| | | width: 170px; |
| | | margin: 0 auto 10px; |
| | | } |
| | | .normal-img{ |
| | | width: 160px; |
| | | } |
| | | .mini-img{ |
| | | width: 100px; |
| | | } |
| | | </style> |