reactjs - rc-滑块图标或 html 标签
问题描述
我在我的反应应用程序中使用重新滑块,有人知道是否可以使用 icon/html 设置标签?
我试图定义选项如下:
const sliderOptions = {
1: {
style: {
color: '#00365f',
},
label: '<i class="fas fa-check"></i>',
},1: {
style: {
color: '#00365f',
},
label: '<i class="fas fa-times"></i>',
}
};
但是html标签已经转换为实体
<i class="fas fa-check"></i>
解决方案
推荐阅读
- java - 通过 Postman 在 Springboot 中插入 parent 和 Child
- c++ - 如何创建一个迭代器类来迭代二维数组指针?
- firebase - 自动化文档检查
- c++ - 如何打印 n 维 c++ STL 容器?容器是数组的数组或向量的向量
- batch-file - 如何在第一个仍在运行的 bat 文件中启动 bat 文件
- python - 在测试期间抑制 INFO 消息,来自 python 退避
- react-native - React Native 应用程序仅在保存文件两次后才有效
- rust - 什么时候应该使用 tokio::join!() 而不是 tokio::spawn()?
- swift - 删除空文件夹的结构
- c# - C# 中记录类型的常量或静态属性