vmware-clarity - 更改 clr-dg-placeholder 图标或背景图片
解决方案
您将不得不关闭其中包含数据网格并且还需要覆盖的组件的视图封装。
从'@angular/core'导入{组件,ViewEncapsulation};
@Component({
selector: 'my-app',
templateUrl: './app.component.html',
styleUrls: [ './app.component.css' ],
encapsulation: ViewEncapsulation.None,
})
export class AppComponent {}
然后你可以.datagrid-placeholder-image
直接定位元素并覆盖background-image
属性
.datagrid-host .datagrid .datagrid-table .datagrid-placeholder-container .datagrid-placeholder-image{
background-image: url('data:image/svg+xml;utf8,<svg height="100px" width="100px">YOUR SVG CODE HERE</svg>');
}
这是一个正在运行的带有覆盖的堆栈闪电战。
推荐阅读
- virtuoso - Virtuoso 通过 ISQL Missing 选项创建 SPARQL 端点
- reactjs - 如果放置在连接文本旁边,Font Awesome 正在呈现“[object object]”
- javascript - 使用 $mergedObject 查询加入 $lookup 上的另一个集合
- javafx - 使用 JDialog 启动时无法使用 javafx htmleditor keyevent
- angular - 如何使用茉莉花间谍
- python - TensorFlow(GPU) 使用 GPU 但似乎没有使用 CUDA 加速,这是怎么回事?
- mysql - Rails + mySQL + Passenger - 请求超时后与 ActiveRecord 的连接没有关闭
- perl - 匹配哈希之间的某些单词行
- tensorflow - 物体检测模型能适应旋转吗?
- r - 删除字母数字字符串的数字部分,但保留纯数字