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(n-auto-complete): add on-clear props #5793

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

Conversation

jahnli
Copy link
Collaborator

@jahnli jahnli commented Mar 19, 2024

close #5791

Copy link

vercel bot commented Mar 19, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
naive-ui ❌ Failed (Inspect) Mar 19, 2024 1:40am

@@ -240,6 +241,7 @@ export default defineComponent({
doSelect(option.value)
if (props.clearAfterSelect) {
doUpdateValue(null)
props.onClear?.()
Copy link
Collaborator

Choose a reason for hiding this comment

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

call

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.

【自动填充 Auto Complete】希望增加clear 时执行的回调on-clear,类似select组件
2 participants