Commit 59d3e8c80f72f029f2b90432b31901ad54ed1ee4

Authored by vben
1 parent c73694ab

perf(icon): remove Icon component global registration

CHANGELOG.zh_CN.md
  1 +## Wip
  2 +
  3 +- **Icon** 移除 Icon 组件全局注册,防止特定情况下热更新问题
  4 +
1 ## 2.5.1(2021-06-26) 5 ## 2.5.1(2021-06-26)
2 6
3 ### ⚡ Performance Improvements 7 ### ⚡ Performance Improvements
src/components/registerGlobComp.ts
1 import type { App } from 'vue'; 1 import type { App } from 'vue';
2 -import { Icon } from './Icon'; 2 +// import { Icon } from './Icon';
3 import { Button } from './Button'; 3 import { Button } from './Button';
4 import { 4 import {
5 // Need 5 // Need
@@ -7,7 +7,7 @@ import { @@ -7,7 +7,7 @@ import {
7 Input, 7 Input,
8 } from 'ant-design-vue'; 8 } from 'ant-design-vue';
9 9
10 -const compList = [Icon, AntButton.Group]; 10 +const compList = [AntButton.Group];
11 11
12 export function registerGlobComp(app: App) { 12 export function registerGlobComp(app: App) {
13 compList.forEach((comp) => { 13 compList.forEach((comp) => {