refactor: ♻️ 移除 Tag 组件的 deep watch 以提高性能 (#1173)

Co-authored-by: chouchouji <jibinbin@dcloud.io>
This commit is contained in:
chouchouji 2025-07-31 16:23:58 +08:00 committed by GitHub
parent b4e86053b4
commit 2bb28f361c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -73,7 +73,7 @@ watch(
if (type.indexOf(newValue) === -1) console.error(`type must be one of ${type.toString()}`)
computeTagClass()
},
{ deep: true, immediate: true }
{ immediate: true }
)
watch(
@ -81,7 +81,7 @@ watch(
() => {
computeTagClass()
},
{ deep: true, immediate: true }
{ immediate: true }
)
const rootClass = computed(() => {