vue自定义指令directive,在项目中无法调用,即使用Vue.directive自定义指令时,会提示vue中没有这个属性,不知道是什么问题,目前我无法解决,采用另一种方式
const box ={
mounted:(el,)=>
},
}
export default{
directives:{
box
},
也成功定义了指令,
vue自定义指令directive,在项目中无法调用,即使用Vue.directive自定义指令时,会提示vue中没有这个属性,不知道是什么问题,目前我无法解决,采用另一种方式
const box ={
mounted:(el,)=>
},
}
export default{
directives:{
box
},
也成功定义了指令,