empty.stories.jsx 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. import React from 'react';
  2. import Empty from '../index';
  3. import Button from '../../button';
  4. import { IllustrationSuccess } from '@douyinfe/semi-illustrations';
  5. export default {
  6. title: 'Empty',
  7. }
  8. export const EmptySimple = () => (
  9. <div>
  10. <Empty image={<IllustrationSuccess />} description={'功能建设中'} />
  11. <br />
  12. <Empty image={<IllustrationSuccess />} description={'功能建设中'}>
  13. 该模块功能建设中,敬请期待。该模块功能建设中,敬请期待。
  14. </Empty>
  15. <br />
  16. <Empty image={<IllustrationSuccess />}>
  17. 该模块功能建设中,敬请期待。该模块功能建设中,敬请期待。
  18. </Empty>
  19. <br />
  20. <Empty description={'功能建设中'}>
  21. 该模块功能建设中,敬请期待。该模块功能建设中,敬请期待。
  22. </Empty>
  23. </div>
  24. );
  25. export const EmptyCta = () => (
  26. <div>
  27. <Empty description={'功能建设中'} image={<IllustrationSuccess />}>
  28. <div style={{ textAlign: 'center' }}>
  29. <p>该模块功能建设中,敬请期待。该模块功能建设中,敬请期待。</p>
  30. <Button type="primary" style={{ marginTop: 24 }}>
  31. 建设中
  32. </Button>
  33. </div>
  34. </Empty>
  35. </div>
  36. );
  37. export const EmptyLayout = () => (
  38. <div>
  39. <Empty description={'功能建设中'} image={<IllustrationSuccess />} layout="horizontal">
  40. <div>
  41. <p>该模块功能建设中,敬请期待。该模块功能建设中,敬请期待。</p>
  42. <Button type="primary" style={{ marginTop: 24 }}>
  43. 建设中
  44. </Button>
  45. </div>
  46. </Empty>
  47. </div>
  48. );