Version
5.5.0
Link to Minimal Reproduction
Steps to Reproduce
Specify renderMode: 'richText' in the tooltip and use richText formatting in the formatter.
Then specify the richText styling in tooltip.rich or in tooltip.textStyle.rich
Current Behavior
Currently, rich is not supported by tooltip, and renderMode:'richText' seems to be a useless option. In wechat applets without DOM, there is no way to customize different styles.
Expected Behavior
rich styling should be applied to the formatter.
Environment
- OS: Windows 10
- Browser: Chrome
Any additional comments?
What does the proposed API look like?
tooltip.rich
ortooltip.textStyle.rich
3条答案
按热度按时间pgky5nke1#
Agree, renderMode 'richText' is misleading since there is no rich in tooltip API.
Technically we cannot call it a bug since rich is missing, but I think rich was meant to be used, just some source code was not hooked up...?
Proof: tooltip recognizes 'rred' as rich format and does not display it as string, but does not apply it as format either.
So this issue could be updated to a valid and very useful New Feature Request.
EDIT: found a duplicate #12232 and a pending PR #14994 .
kokeuurv2#
@helgasoft Thanks for the information! I will review the PR tomorrow.
nr9pn0ug3#
@Ovilia any update on this?