当我将按钮包装在自定义按钮组件中时,按钮之间的间距消失了。例子。
{{3}}
我如何“欺骗”浏览器,使我认为我的包装组件是普通按钮(通过saas继承机制之类的东西)?
<button type="button" mat-raised-button [disabled]="disabled">
{{ label }} <mat-icon>navigate_next</mat-icon>
</button>
答案 0 :(得分:0)
通常,您可以使用HostBinding
来设置组件本身(而不是子组件)的样式