-
Notifications
You must be signed in to change notification settings - Fork 496
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(auto-complete): support empty api #4908
base: develop
Are you sure you want to change the base?
Conversation
@@ -131,7 +131,7 @@ export default defineComponent({ | |||
/> | |||
); | |||
// 联想词列表 | |||
const listContent = ( | |||
const listContent = Array.isArray(props.options) && ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -143,18 +143,21 @@ export default defineComponent({ | |||
highlightKeyword={props.highlightKeyword} | |||
filterable={props.filterable} | |||
filter={props.filter} | |||
empty={renderTNodeJSX('empty')} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这里传入已经是renderTNodeJSX处理过的结果,和option-list的props的定义不符,而且内部又重新处理了一遍 这里应该改成props.empty即可 最好验证下两个情况的效果
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
已在外层处理好,再传给option-list
🤔 这个 PR 的性质是?
🔗 相关 Issue
💡 需求背景和解决方案
📝 更新日志
empty
API,用于配置空状态下的下拉内容展示☑️ 请求合并前的自查清单