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

[TableAction:ActionItem]增加tooltip #848

Closed
snowchenlei opened this issue Jul 2, 2021 · 5 comments
Closed

[TableAction:ActionItem]增加tooltip #848

snowchenlei opened this issue Jul 2, 2021 · 5 comments

Comments

@snowchenlei
Copy link

ActionItem增加tooltip属性,当显示icon时可以通过配置tooltip进行提示。避免有人看不懂图标的意图。
image

@mynetfan
Copy link
Collaborator

mynetfan commented Jul 2, 2021

现在就有提示,不过用的是原生的title,不是tooltip

@snowchenlei
Copy link
Author

好的,希望后期可以增加tooltip。

@snowchenlei
Copy link
Author

当前这种方法有个问题。
是通过popConfirm进行提示的。当按钮需要弹出确认框时(如删除按钮),鼠标移入就会弹出确认框的提示,而无法为按钮定义提示

{
              icon: 'ant-design:delete-outlined',
              color: 'error',
              title: '删除',
              popConfirm: {
                title: '你确定吗?',
                confirm: handleDelete.bind(null, record),
              },
            },

image

@mynetfan
Copy link
Collaborator

mynetfan commented Jul 2, 2021

已添加,文档也已更新,参考:
image

@mynetfan
Copy link
Collaborator

mynetfan commented Jul 2, 2021

要使用这个tooltip,除了上述commit,请另外再合并此commit:https://github.com/anncwb/vue-vben-admin/commit/73654b7862c59d623d6d5dc7dcf6ff2704564d9a

@github-actions github-actions bot locked and limited conversation to collaborators Sep 20, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants