1.2.11 • Published 1 month ago
@ourschool/design-mobile v1.2.11
@ourschool/design-mobile
为了使入口 main.js
更小,在引入 antd-mobile
中的组件的时候,请使用下述方法,从 antd-mobile/es/components/**
中引入。
const Popup = lazy(() => import('antd-mobile/es/components/popup'))
另外给组件包裹在 <Suspense fallback={null}>你的组件</Suspense>
里面,避免 lazy load 过程中造成整个页面白屏。