Skip to content

Commit

Permalink
perf(icon): remove Icon component global registration
Browse files Browse the repository at this point in the history
  • Loading branch information
anncwb committed Jun 27, 2021
1 parent c73694a commit 59d3e8c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.zh_CN.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## Wip

- **Icon** 移除 Icon 组件全局注册,防止特定情况下热更新问题

## 2.5.1(2021-06-26)

### ⚡ Performance Improvements
Expand Down
4 changes: 2 additions & 2 deletions src/components/registerGlobComp.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import type { App } from 'vue';
import { Icon } from './Icon';
// import { Icon } from './Icon';
import { Button } from './Button';
import {
// Need
Button as AntButton,
Input,
} from 'ant-design-vue';

const compList = [Icon, AntButton.Group];
const compList = [AntButton.Group];

export function registerGlobComp(app: App) {
compList.forEach((comp) => {
Expand Down

0 comments on commit 59d3e8c

Please sign in to comment.