Open leekbillow opened 2 years ago
@leekbillow It seems you are not using English, I've helped translate the content automatically. To make your issue understood by more people and get helped, we'd like to suggest using English next time. 🤗
tooltip
does suppot richText
I have the same problem
@leekbillow, instead of rich one could use HTML styles directly, like:
tooltip: {
renderMode: 'html',
formatter({ name, value }) {
return "<span style='color:red;'>"+name+" </span><span style='color:blue;'>"+value+"</span>";
},
What problem does this feature solve?
目前
tooltip
不支持rich
,renderMode:'richText'
似乎是一个没用的选项,在没有dom的微信小程序里,没办法自定义不同的样式。 Currently,rich
is not supported bytooltip
, andrenderMode:'richText'
seems to be a useless option. In wechat applets without DOM, there is no way to customize different styles.What does the proposed API look like?
tooltip.rich
ortooltip.textStyle.rich