Skip to content

Commit

Permalink
perf: 移除部分组件注册
Browse files Browse the repository at this point in the history
  • Loading branch information
oljc committed Jan 24, 2024
1 parent dff44cb commit ee4aacd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 11 deletions.
9 changes: 1 addition & 8 deletions src/components/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,6 @@ import {
DataZoomComponent,
GraphicComponent
} from 'echarts/components';
import Chart from './chart/index.vue';
import Breadcrumb from './breadcrumb/index.vue';

// Manually introduce ECharts modules to reduce packing size

use([
CanvasRenderer,
Expand All @@ -28,8 +24,5 @@ use([
]);

export default {
install(Vue: App) {
Vue.component('Chart', Chart);
Vue.component('Breadcrumb', Breadcrumb);
}
install(_Vue: App) {}
};
6 changes: 3 additions & 3 deletions src/types/components.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -131,10 +131,10 @@ declare module 'vue' {
List: typeof import('./../components/message-box/list.vue')['default']
Menu: typeof import('./../components/menu/index.vue')['default']
MessageBox: typeof import('./../components/message-box/index.vue')['default']
Navbar: typeof import('./../components/navbar/index.vue')['default']
Navbar: typeof import('./../components/Navbar/index.vue')['default']
RouterLink: typeof import('vue-router')['RouterLink']
RouterView: typeof import('vue-router')['RouterView']
TabBar: typeof import('./../components/tab-bar/index.vue')['default']
TabItem: typeof import('./../components/tab-bar/tab-item.vue')['default']
TabBar: typeof import('./../components/TabBar/index.vue')['default']
TabItem: typeof import('./../components/TabBar/tab-item.vue')['default']
}
}

0 comments on commit ee4aacd

Please sign in to comment.