Loadable.tsx 472 B

12345678910111213141516
  1. import React from 'react'
  2. import loadable from 'utils/loadable'
  3. import { Skeleton } from 'antd'
  4. export const DataManager = loadable(() => import('./'), {
  5. fallback: <Skeleton active paragraph={{ rows: 15 }} />
  6. })
  7. export const Sidebar = loadable(() => import('./Sidebar'), {
  8. fallback: <Skeleton active paragraph={{ rows: 15 }} />
  9. })
  10. //
  11. // export const Grid = loadable(() => import('./Grid'), {
  12. // fallback: <Skeleton active={true} paragraph={{ rows: 15 }} />
  13. // })