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

refactor: refactor autocomplete to support namespace #5550

Merged
merged 3 commits into from
Jan 23, 2022

Conversation

iamkun
Copy link
Contributor

@iamkun iamkun commented Jan 22, 2022

Please make sure these boxes are checked before submitting your PR, thank you!
ref: #5374

  • Make sure you follow contributing guide English | (中文 | Español | Français).
  • Make sure you are merging your commits to dev branch.
  • Add some descriptions and refer to relative issues for your PR.

@github-actions
Copy link

github-actions bot commented Jan 22, 2022

'el-autocomplete-suggestion',
suggestionLoading && 'is-loading',
]"
:class="[ns.b('suggestion'), suggestionLoading && 'is-loading']"
Copy link
Collaborator

Choose a reason for hiding this comment

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

ns.is

@@ -206,7 +204,7 @@ export default defineComponent({
const popper = ref(null)

const id = computed(() => {
return `el-autocomplete-${generateId()}`
return `${ns.b()}-${generateId()}`
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
return `${ns.b()}-${generateId()}`
return ns.b(generateId())

@iamkun
Copy link
Contributor Author

iamkun commented Jan 23, 2022

fixed

@sxzz sxzz merged commit 9d317c8 into dev Jan 23, 2022
@sxzz sxzz deleted the refactor/autocomplete-ns branch January 23, 2022 09:55
@element-bot element-bot mentioned this pull request Jan 24, 2022
3 tasks
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.

None yet

2 participants