import React, { Component } from 'react';
import { View,Image } from '@tarojs/components';
import './noData.scss';
import img from '../../static/img/no-data.png';


class NoData extends Component {
  constructor(props) {
    super(props);
    this.state = { 
      
    };
  }

  externalClasses= ['out-class']
  render() {
    const {top} = this.props;
    return (
      <View className='out-class' style={`margin-top: ${top}`}>
        <View className='no-data-box'>
          <Image className='img' src={img}></Image>
          <View className='text'>暂无数据</View>
        </View>
      </View>
    );
  }
}

export default NoData;