fix(comp): fix the memory overflow problem of component containing keywords

This commit is contained in:
vben
2020-12-12 00:15:36 +08:00
parent 0434030f27
commit 6b3195b4ca
33 changed files with 155 additions and 90 deletions

View File

@@ -2,10 +2,11 @@
* copy from element-ui
*/
import Scrollbar from './src/Scrollbar';
import { withInstall } from '../util';
import { createAsyncComponent } from '/@/utils/factory/createAsyncComponent';
export const Scrollbar = createAsyncComponent(() => import('./src/Scrollbar'));
withInstall(Scrollbar);
export { Scrollbar };
export type { ScrollbarType } from './src/types';