Loadable.tsx 763 B

1234567891011121314151617181920212223
  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 paragraph={{ rows: 15 }} />
  6. })
  7. export const DataManagerWidget = loadable(() => import('./DataManaferWidget'), {
  8. fallback: <Skeleton active paragraph={{ rows: 15 }} />
  9. })
  10. export const DataShareServiceWidget = loadable(() => import('./DataShareServiceWidget'), {
  11. fallback: <Skeleton active paragraph={{ rows: 15 }} />
  12. })
  13. export const WidgetList = loadable(() => import('./List'), {
  14. fallback: <Skeleton active paragraph={{ rows: 15 }} />
  15. })
  16. export const Workbench = loadable(() => import('./components/Workbench'), {
  17. fallback: <Skeleton active paragraph={{ rows: 15 }} />
  18. })