Skip to content

Conversation

@selicens
Copy link
Member

@selicens selicens commented Oct 11, 2023

Basic usage

<a-form-item label="Password" tooltip="hello ant-design-vue" > ... </a-form-item>

image
Custom tooltip You can use the style passed by the slot or customize the style

<a-form-item label="Username" /> <template #tooltip="{ className }"> <a-tooltip title="hihihi"> <UpCircleOutlined :class="className" /> </a-tooltip> </template> ... </a-form-item>

image

prefixCls: string;
onClick: Function;
tooltip: string;
tooltip: string | TooltipProps;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这里是不是重复了

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1

@tangjinzhou
Copy link
Member

别搞那么复杂了,就指提供string类型的 tooltip,和 tooltip 插槽好了

@selicens
Copy link
Member Author

别搞那么复杂了,就指提供string类型的 tooltip,和 tooltip 插槽好了

1

@tangjinzhou tangjinzhou merged commit 398710c into vueComponent:main Oct 16, 2023
@github-actions
Copy link

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 18, 2024
@selicens selicens deleted the feat-formItem-tooltip branch November 10, 2025 02:54
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

3 participants