feat: 将导出的组件加上前缀,无需手动按需导入时重命名 #8106
Open
+365
−348
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
现在的组件使用的时候有两种方式,自动导入与手动导入; 但手动导入需要在导入的时候重新命名,如:
不如此使用的话,小写使用就会与关键字冲突,所以我在库的内部改变了每个组件导出的名字,自动导入或全局注册会造成组件无法读取到声明,开发过程中这样很难通过组件直接转入到组件声明文件