Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: auto import icon components #2

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

liweijie0812
Copy link
Member

No description provided.

@liweijie0812 liweijie0812 changed the title feat: icon components feat: auto import icon components Mar 8, 2024
/**
* self-defined import icon component from tdesign-icons-vue-next
*/
iconComponents?: TDesignIconComponent[];
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

感觉这里不用新增吧 有点容易误解 iconInclude和iconExclude 就可以满足了 resolveIcons 应该就是要不要resolve icon这个包的

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

我理解是原来三个参数只处理图标导入,不处理其他

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

resolveIcons 本应就包括这两个组件了 是实现缺了 可以再改下描述 而且通过原来的API完全可以满足不导入这两个或者需要这两个的需求 再新增API又是继续增加维护成本

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

同意UY的观点,确实API太多太容易混乱了,除非有什么必须区分的理由

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants