123456789101112131415161718192021222324252627282930313233343536373839 |
- <template>
- <view class="nodata" :style="'padding-top:'+padtop+'rpx'">
- <image :src="noiconpimg"></image>
- <view>{{notxt}}</view>
- </view>
- </template>
- <script>
- export default{
- props:{
- notxt:{
- type: String,
- default () {
- return '暂无数据'
- }
- },
- padtop:{
- type: Number,
- default () {
- return 100
- }
- }
- },
- data(){
- return{
- noiconpimg:require("@/static/images/noiconp.png"),
- }
- }
- }
- </script>
- <style lang="scss" scoped>
- // 无数据
- .nodata{
- display: flex;flex-direction: column;align-items: center;box-sizing: border-box;padding-bottom: 100rpx;
- image{width: 198rpx;height: 194rpx;margin-bottom: 44rpx;}
- view{font-size: 26rpx;color: #AAAAAA;font-weight: bold;}
- }
- </style>
|