mirror of
https://gitee.com/wot-design-uni/wot-design-uni.git
synced 2025-12-06 17:18:40 +08:00
refactor: ♻️ 移除 Tag 组件的 deep watch 以提高性能 (#1173)
Co-authored-by: chouchouji <jibinbin@dcloud.io>
This commit is contained in:
parent
b4e86053b4
commit
2bb28f361c
@ -73,7 +73,7 @@ watch(
|
|||||||
if (type.indexOf(newValue) === -1) console.error(`type must be one of ${type.toString()}`)
|
if (type.indexOf(newValue) === -1) console.error(`type must be one of ${type.toString()}`)
|
||||||
computeTagClass()
|
computeTagClass()
|
||||||
},
|
},
|
||||||
{ deep: true, immediate: true }
|
{ immediate: true }
|
||||||
)
|
)
|
||||||
|
|
||||||
watch(
|
watch(
|
||||||
@ -81,7 +81,7 @@ watch(
|
|||||||
() => {
|
() => {
|
||||||
computeTagClass()
|
computeTagClass()
|
||||||
},
|
},
|
||||||
{ deep: true, immediate: true }
|
{ immediate: true }
|
||||||
)
|
)
|
||||||
|
|
||||||
const rootClass = computed(() => {
|
const rootClass = computed(() => {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user