vue-draggable-resizable可拖拽放大缩小,删除的解决方法
发布时间:2023-02-12 11:04:41 228
相关标签:
<vue-draggable-resizable
v-for="(item,index) in pictureList"
:parent="true"
:w="item.width"
:h="item.height"
:key="index"
:y="item.y"
@activated="onActivated(index)">
onActivated(index){
let that = this
document.onkeydown = function(event){
if(event.code=="Delete"){
that.pictureList.splice(index,1)
}
}
}
文章来源: https://blog.51cto.com/u_15948179/6026469
特别声明:以上内容(图片及文字)均为互联网收集或者用户上传发布,本站仅提供信息存储服务!如有侵权或有涉及法律问题请联系我们。
举报