Basic.tsx 760 Bytes
Newer Older
涂茜's avatar
涂茜 committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
import React from 'react';
import { Button } from 'antd';
import PandaEmpty from '../index';

class Demo extends React.Component {
  render() {
    return (
      <div style={{ width: '100%' }}>
        <PandaEmpty size={'small'} />
        <br />
        <PandaEmpty />
        <br />
        <PandaEmpty size={'large'} />
        <br />
        <PandaEmpty size={'small'} statusCode={'-2'} />
        <br />
        <PandaEmpty statusCode={'-1'}>
          <Button type="primary">刷新试试</Button>
        </PandaEmpty>
        <br />
        <div style={{ width: '100%', padding: '32px 0', backgroundColor: '#282D3B' }}>
          <PandaEmpty theme={'dark'} statusCode={'-1'}></PandaEmpty>
        </div>
      </div>
    );
  }
}

export default Demo;