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

feat(Form): FormItem add tooltip attributes #7014

Merged
merged 4 commits into from
Oct 16, 2023

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

@@ -19,6 +36,8 @@ export interface FormItemLabelProps {
required?: boolean;
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
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
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants