/// <summary> /// 处理物品放下 /// </summary> protected virtual void processItemPreview( DraggableItemDisplay <E> display) { if (display != null && display.isDraggable()) { setPreview(display.getItem()); } }
/// <summary> /// 处理物品放下 /// </summary> protected virtual void processItemDrop(DraggableItemDisplay <T> display) { if (display == null) { return; } var container = display.getContainer(); container.transferItem(this, display.getItem()); }
/// <summary> /// 处理物品放下 /// </summary> protected virtual void processItemDrop( DraggableItemDisplay <E> display, PointerEventData data) { if (display == null && !display.isDraggable()) { return; } var container = display.getContainer(); var item = display.getItem(); container.transferItem(this, item); display.OnEndDrag(data); }