watch: {
value(newValue) {
this.currentValue = newValue
}
}
----- or ------
watch: {
defaultTheme: {
handler: function(val, oldVal) {
this.theme = val
},
immediate: true
}
}
vue代码块
最新推荐文章于 2024-08-03 23:34:43 发布