perf(import): perf components import

This commit is contained in:
vben
2020-12-23 22:27:46 +08:00
parent b6e5c3f625
commit 2ee01fa6ea
39 changed files with 367 additions and 456 deletions

View File

@@ -3,10 +3,9 @@
*/
import { withInstall } from '../util';
import { createAsyncComponent } from '/@/utils/factory/createAsyncComponent';
export const Scrollbar = createAsyncComponent(() => import('./src/index.vue'));
import Scrollbar from './src/index.vue';
withInstall(Scrollbar);
export { Scrollbar };
export type { ScrollbarType } from './src/types';