vue/cli3 + typescript 中watch prop component computed 的用法
第一步:引入:import{Component,Prop,Watch,Vue}from'vue-property-decorator';//注意点:首字母都是大写第二步:用法1.component@Component({components:{//组件的名字}})exportdefaultclassformallextendsVue{2.prop@Prop()privatevisible:boolean=