dragResize.html 612 B

1234567891011121314
  1. <div class="vdr" :style="style" :class="active ? 'active' : 'inactive'" @mousedown="bodyDown($event)" @touchstart="bodyDown($event)">
  2. <slot></slot>
  3. <div class="move-stick" v-if="pos == 'absolute'"><i class="iconfont iconyidong"></i></div>
  4. <div
  5. v-for="stick in sticks"
  6. class="vdr-stick"
  7. :class="['vdr-stick-' + stick]"
  8. :style="vdrStick(stick)"
  9. @mousedown.stop.prevent="stickDown(stick, $event)"
  10. @touchstart.stop.prevent="stickDown(stick, $event)"
  11. >
  12. <i class="iconfont" :class="stick=='bl'?'iconfangdar':'iconfangdal'"></i>
  13. </div>
  14. </div>