Skip to content

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

Closed
@taujiong

Description

@taujiong

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

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 字段

其他信息

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

Activity

self-assigned this
on Nov 8, 2020
changed the title [-]options.preview.actions 添加的自定义 action 不能设置 tooltip[/-] [+]options.preview.actions 添加的自定义 tooltip[/+] on Nov 8, 2020
added this to the 3.6 milestone on Nov 8, 2020
added a commit that references this issue on Nov 8, 2020
6f824b9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Projects

No projects

Relationships

None yet

    Development

    No branches or pull requests

      Participants

      @Vanessa219@taujiong

      Issue actions

        options.preview.actions 添加的自定义 tooltip · Issue #808 · Vanessa219/vditor