idux icon indicating copy to clipboard operation
idux copied to clipboard

[comp:icon] 组件内部使用的图标,应该由当前组件内部去负责静态引入,而不是去交给用户调用 addIconDefinitions

Open danranVm opened this issue 3 years ago • 1 comments

  • [x] I have searched the issues of this repository and believe that this is not a duplicate.

What problem does this feature solve?

  • 现在定义的 IDUX_ICON_DEPENDENCIES 难以维护,经常会忘了去维护

What does the proposed API look like?

每个组件的入口处,调用一下 addIconDefinitions, 自己维护自身的所用到的图标。

danranVm avatar Jul 26 '22 02:07 danranVm

Translation of this issue:

[Comp: ICON] The icon used inside the component should be introduced by the current component, instead of handing it to the user to call adDicondefinitions

  • [X] I have searched the [issues] (https://github.com/iduxfe/idux/isSues) of this repository that this is not a duplicate.

What PROBLEM DOES This Feature Solve?

-Dux_icon_dependencies defined now is difficult to maintain, and often forget to maintain maintenance

What does the proposed api look like?

At the entrance of each component, call AdDicondEfinitions to maintain the icon you use.

idux-bot[bot] avatar Jul 26 '22 02:07 idux-bot[bot]