a7650 / vue3-draggable-resizable

[Vue3 组件] 用于拖拽调整位置和大小的的组件,同时支持元素吸附对齐,实时参考线。
MIT License
631 stars 126 forks source link

active状态问题 #101

Open vedbobo opened 11 months ago

vedbobo commented 11 months ago

只有用了draggable,在外部点击后再点击组件可以激活active。如果不用draggable只用resizable,不能再次激活active状态,不能再进行缩放操作了!

djin-lucas commented 9 months ago

@vedbobo Hi, I found something that might help. With draggable false, you can define a ref for your component and call setEnable with the true parameter, it is possible to have draggable false but resizable true.

<Vue3DraggableResizable ref="someRef" :draggable="false">

someRef.value?.setEnable(true);