Browse Source

perf(icon): remove Icon component global registration

pull/826/head
vben 5 years ago
parent
commit
59d3e8c80f
  1. 4
      CHANGELOG.zh_CN.md
  2. 4
      src/components/registerGlobComp.ts

4
CHANGELOG.zh_CN.md

@ -1,3 +1,7 @@
## Wip
- **Icon** 移除 Icon 组件全局注册,防止特定情况下热更新问题
## 2.5.1(2021-06-26)
### ⚡ Performance Improvements

4
src/components/registerGlobComp.ts

@ -1,5 +1,5 @@
import type { App } from 'vue';
import { Icon } from './Icon';
// import { Icon } from './Icon';
import { Button } from './Button';
import {
// Need
@ -7,7 +7,7 @@ import {
Input,
} from 'ant-design-vue';
const compList = [Icon, AntButton.Group];
const compList = [AntButton.Group];
export function registerGlobComp(app: App) {
compList.forEach((comp) => {

Loading…
Cancel
Save