vue-hxs / vue-split-layout

Draggable split panes for vuejs
MIT License
113 stars 34 forks source link

Whether the handle of the drag can be distributed according to the slot #4

Closed zhump closed 6 years ago

zhump commented 6 years ago

hi Whether the handle of the drag can be distributed according to the vue slot ? I need to customize the style of draggable objects...

stdiopt commented 6 years ago

Not sure if I understood the question, in the demo there is a raw pane which can be dragged by starting anywhere in the pane, would that be your goal?

zhump commented 6 years ago

Thank you for your reply, for example this case https://jqueryui.com/draggable/#handle

stdiopt commented 6 years ago

I made some changes, any element containing pane-drag as attribute will be able to drag the view, updated demo as well, I'm not sure if this will be the final solution, but let me know if works well for you

<!-- as a view on a Layout -->
 <div class="custom-drag">
     <div class="container">
            testing a drag handle
            <div class="drag-handle" pane-drag>DRAG HERE</div>
            test
     </div>
</div>
...
zhump commented 6 years ago

Thank you for your support. It really helped me. Thank you very much.