This repository has been archived on 2023-08-30. You can view files and clone it, but cannot push or open issues/pull-requests.
bytedo
/
wcui
Archived
1
0
Fork 0

优化drag插件,增加是否可拖拽判断

old
宇天 2017-09-13 17:55:48 +08:00
parent f1f365e6e4
commit e4d41cd058
1 changed files with 4 additions and 1 deletions

View File

@ -118,7 +118,10 @@ define(['yua'], function(){
//拖拽前回调
if(_this.beforedrag){
_this.beforedrag.call(_this.vmodels, target, ox, oy)
var result = _this.beforedrag.call(_this.vmodels, target, ox, oy)
if(result === false){
return
}
}
//限制区域, 4个值依次是: 上, 下, 左, 右