Inherit another UI library selector properties in a component attribute selector(在组件属性选择器中继承另一个UI库选择器属性)
转载作者:bug小助手更新时间:2023-10-22 15:58:56264
I have a buildable/publishable Angular library which I want to wrap ng-zorro button (and other components as well one-by-one) within to add my attribute selector instead of the ng-zorro selector and add more properties to the original component.
What I am trying to achieve is that the button tag I place in the consumer components has all the ng-zorro attributes and mine too so I can implement new attributes to the native tag and override the ant styles in some cases.
I ended up extending ng-zorro component to inherit its Inputs on my custom component it was not exactly what I wanted because now I have to use ng-zorro inputs by their name but not my desired name. For example, I have to use it like [nzSize] but not [size].
我是一名优秀的程序员,十分优秀!