[improvement] optimize watch options (#4075)
This commit is contained in:
+2
-4
@@ -99,16 +99,14 @@ export default createComponent({
|
||||
},
|
||||
|
||||
watch: {
|
||||
color: 'setLine',
|
||||
|
||||
active(name) {
|
||||
if (name !== this.currentName) {
|
||||
this.setCurrentIndexByName(name);
|
||||
}
|
||||
},
|
||||
|
||||
color() {
|
||||
this.setLine();
|
||||
},
|
||||
|
||||
children() {
|
||||
this.setCurrentIndexByName(this.currentName || this.active);
|
||||
this.scrollIntoView();
|
||||
|
||||
Reference in New Issue
Block a user