[improvement] optimize watch options (#4075)

This commit is contained in:
neverland
2019-08-09 11:54:42 +08:00
committed by GitHub
parent 854a91c384
commit 19cd2ed38e
12 changed files with 19 additions and 57 deletions

View File

@@ -44,13 +44,8 @@ export default createComponent({
},
watch: {
value() {
this.toggleClickable();
},
forbidClick() {
this.toggleClickable();
}
value: 'toggleClickable',
forbidClick: 'toggleClickable'
},
methods: {