VUE 中的$refs 貌似不能用于计算属性中 是不是这样的?
按钮提交细节:节流与翻斗
**conpoments
if(this.lock){
this.$emit('submit',{obj},()=>{
this.lock = false
})
}
**view
@sumbmit='submit'
submit(obj,callback){
doing thing
callback()
}
vue组件实例:
VUE 中的$refs 貌似不能用于计算属性中 是不是这样的?
按钮提交细节:节流与翻斗
**conpoments
if(this.lock){
this.$emit('submit',{obj},()=>{
this.lock = false
})
}
**view
@sumbmit='submit'
submit(obj,callback){
doing thing
callback()
}
vue组件实例: