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

fix: useClickAway文档描述修改 Target 属性支持函数 #2680

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

superBigPotato
Copy link

@superBigPotato superBigPotato commented Nov 26, 2024

[中文版模板 / Chinese template]

🤔 This is a ...

  • New feature
  • Bug fix
  • Site / documentation update
  • Demo update
  • TypeScript definition update
  • Bundle size optimization
  • Performance optimization
  • Enhancement feature
  • Internationalization
  • Refactoring
  • Code style optimization
  • Test Case
  • Branch merge
  • Other (about what?)

🔗 Related issue link

#2637

💡 Background and solution

📝 Changelog

Language Changelog
🇺🇸 English
🇨🇳 Chinese

☑️ Self Check before Merge

⚠️ Please check all items below before review. ⚠️

  • Doc is updated/provided or not needed
  • Demo is updated/provided or not needed
  • TypeScript definition is updated/provided or not needed
  • Changelog is provided or not needed

@CLAassistant
Copy link

CLAassistant commented Nov 26, 2024

CLA assistant check
All committers have signed the CLA.

@superBigPotato superBigPotato changed the title fixes: useClickAway文档描述修改 fixes: useClickAway文档描述修改 Target 属性支持函数 Nov 26, 2024
@superBigPotato superBigPotato changed the title fixes: useClickAway文档描述修改 Target 属性支持函数 fix: useClickAway文档描述修改 Target 属性支持函数 Nov 26, 2024
| Property | Description | Type | Default |
| ----------- | ------------------------------------------- | ------------------------------------------ | ------- |
| onClickAway | Trigger Function | `(event: T) => void` | - |
| target | DOM elements or Ref, support array | `Target` \| `Target[]` | - |
Copy link
Collaborator

Choose a reason for hiding this comment

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

不用加函数,只需要在类型里增加 () => (() => Element) ,参考一下这个 hook 的文档

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants