Loadable.tsx 490 B

123456789101112131415
  1. import React from 'react'
  2. import loadable from 'utils/loadable'
  3. import { Skeleton } from 'antd'
  4. export const Widget = loadable(() => import('./'), {
  5. fallback: <Skeleton active={true} paragraph={{ rows: 15 }} />
  6. })
  7. export const WidgetList = loadable(() => import('./List'), {
  8. fallback: <Skeleton active={true} paragraph={{ rows: 15 }} />
  9. })
  10. export const Workbench = loadable(() => import('./components/Workbench'), {
  11. fallback: <Skeleton active={true} paragraph={{ rows: 15 }} />
  12. })