Closed
Description
你在什么场景下需要该功能?
目前自带的 action 可以显示 tooltip, 而用户自定义的 action (如图片中最右边的图标) 默认不能设置 tooltip
描述可能的解决方案
目前暂时可以通过在 text 中设置
<i aria-hidden="true" role="presentation" class="material-icons q-icon notranslate" aria-label="发布">cloud_upload</i>
实现效果,但是与自带的
<button type="button" data-type="zhihu" class="vditor-tooltipped vditor-tooltipped__w" aria-label="复制到知乎">
<svg>
<use xlink:href="#vditor-icon-zhihu">
</use>
</svg>
</button>
不一致
描述你认为的候选方案
在 IPreviewActionCustom 接口中额外添加一个 tooltip 字段
其他信息
请提供关于该功能建议的其他附加信息。
Metadata
Metadata
Assignees
Projects
Relationships
Development
No branches or pull requests
Activity
[-]options.preview.actions 添加的自定义 action 不能设置 tooltip[/-][+]options.preview.actions 添加的自定义 tooltip[/+]🎨 fix #808