vue-drag-resize
Version:
Vue Component for resize and drag elements
18 lines (17 loc) • 681 B
HTML
<div class="vdr" :style="positionStyle"
:class="`${(active || isActive) ? 'active' : 'inactive'} ${contentClass ? contentClass: ''}`"
="bodyDown($event)"
="bodyDown($event)"
="up($event)">
<div :style="sizeStyle" class="content-container" ref="container">
<slot></slot>
</div>
<div
v-for="stick in sticks"
class="vdr-stick"
:class="['vdr-stick-' + stick, isResizable ? '' : 'not-resizable']"
.stop.prevent="stickDown(stick, $event)"
.stop.prevent="stickDown(stick, $event)"
:style="vdrStick(stick)">
</div>
</div>