Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

options.preview.actions 添加的自定义 tooltip #808

Closed
taujiong opened this issue Nov 8, 2020 · 0 comments
Closed

options.preview.actions 添加的自定义 tooltip #808

taujiong opened this issue Nov 8, 2020 · 0 comments
Assignees
Milestone

Comments

@taujiong
Copy link

taujiong commented Nov 8, 2020

你在什么场景下需要该功能?

image

目前自带的 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 字段

其他信息

请提供关于该功能建议的其他附加信息。

@Vanessa219 Vanessa219 self-assigned this Nov 8, 2020
@Vanessa219 Vanessa219 changed the title options.preview.actions 添加的自定义 action 不能设置 tooltip options.preview.actions 添加的自定义 tooltip Nov 8, 2020
@Vanessa219 Vanessa219 added this to the 3.6 milestone Nov 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants