问题描述
我看到我的网格工具栏图标有一个空框,使用字体真棒 5 类。 用法:
...
toolbar: {
items : [
{
type: 'button',id: 'toobar_download',icon: 'fas fa-download',text: 'Download',tooltip: 'Download Report',disabled:false,onClick: function (event) {
that.download();
}
}
]
},...
解决方法
这是允许字体真棒图标正确呈现的解决方法,添加了非常著名的 !important
.w2ui-tb-image .fa,.fas {
font-family: "Font Awesome 5 Free" !important;
font-weight: 900;
}