import {Component, Watch} from 'vue-property-decorator';
@Component
export default class Types extends Vue {
value1 = '';
@Watch('value1')
onValueChanged(value_new: string,value_old:string) {
this.$emit('update:value',value_new)
}
}
import {Component, Watch} from 'vue-property-decorator';
@Component
export default class Types extends Vue {
value1 = '';
@Watch('value1')
onValueChanged(value_new: string,value_old:string) {
this.$emit('update:value',value_new)
}
}
本文标题:Vue Typescript watch 使用
本文链接:https://www.haomeiwen.com/subject/nbrblltx.html
网友评论