File tree 1 file changed +14
-3
lines changed
1 file changed +14
-3
lines changed Original file line number Diff line number Diff line change @@ -592,7 +592,7 @@ type: api
592
592
593
593
### watch
594
594
595
- - ** Type:** ` { [key: string]: string | Function | Object } `
595
+ - ** Type:** ` { [key: string]: string | Function | Object | Array } `
596
596
597
597
- ** Details:**
598
598
@@ -606,7 +606,12 @@ type: api
606
606
a: 1 ,
607
607
b: 2 ,
608
608
c: 3 ,
609
- d: 4
609
+ d: 4 ,
610
+ e: {
611
+ f: {
612
+ g: 5
613
+ }
614
+ }
610
615
},
611
616
watch: {
612
617
a : function (val , oldVal ) {
@@ -623,7 +628,13 @@ type: api
623
628
d: {
624
629
handler : function (val , oldVal ) { /* ... */ },
625
630
immediate: true
626
- }
631
+ },
632
+ e: [
633
+ function handle1 (val , oldVal ) { /* ... */ },
634
+ function handle2 (val , oldVal ) { /* ... */ }
635
+ ],
636
+ // watch vm.e.f's value: {g: 5}
637
+ ' e.f ' : function (val , oldVal ) { /* ... */ }
627
638
}
628
639
})
629
640
vm .a = 2 // => new: 2, old: 1
You can’t perform that action at this time.
0 commit comments