Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
najiu-admin-template
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
najiu-frontend
najiu-admin-template
Commits
59d3e8c8
Commit
59d3e8c8
authored
Jun 27, 2021
by
vben
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
perf(icon): remove Icon component global registration
parent
c73694ab
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
CHANGELOG.zh_CN.md
CHANGELOG.zh_CN.md
+4
-0
registerGlobComp.ts
src/components/registerGlobComp.ts
+2
-2
No files found.
CHANGELOG.zh_CN.md
View file @
59d3e8c8
## Wip
-
**Icon**
移除 Icon 组件全局注册,防止特定情况下热更新问题
## 2.5.1(2021-06-26)
### ⚡ Performance Improvements
...
...
src/components/registerGlobComp.ts
View file @
59d3e8c8
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
)
=>
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment