fix(components): [tree-select] dynamic bind class invalid (#19803)

This commit is contained in:
btea 2025-02-13 16:16:33 +08:00 committed by GitHub
parent a3ca41aa1a
commit 616bb40981
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -39,6 +39,8 @@ export const useSelect = (
const result = {
...pick(toRefs(props), Object.keys(ElSelect.props)),
...attrs,
class: computed(() => attrs.class),
style: computed(() => attrs.style),
// attrs is not reactive, when v-model binding source changes,
// this listener is still old, see the bug(or test 'v-model source change'):
// https://github.com/element-plus/element-plus/issues/14204