|
@@ -1,7 +1,8 @@
|
|
|
<template>
|
|
|
- <Vue3DraggableResizable :classNameDraggable="dargData.config.lineNum ? 'forceAutoHeight' : ''" :snap="true"
|
|
|
- classNameActive="active" :key="dargData.soleId" :initW="initW" :initH="initH" v-model:x="left" v-model:y="top"
|
|
|
- v-model:w="w" v-model:h="h" v-model:active="active" :handles="sticks" :draggable="draggable" :resizable="resizable"
|
|
|
+ <Vue3DraggableResizable :style="{ zIndex: zIndex, }"
|
|
|
+ :classNameDraggable="dargData.config.lineNum ? 'forceAutoHeight' : ''" :snap="true" classNameActive="active"
|
|
|
+ :key="dargData.soleId" :initW="initW" :initH="initH" v-model:x="left" v-model:y="top" v-model:w="w" v-model:h="h"
|
|
|
+ v-model:active="active" :handles="sticks" :draggable="draggable" :resizable="resizable"
|
|
|
@drag-start="print('drag-start')" @resize-start="print('resize-start')" @resizing="print('resizing')"
|
|
|
@dragging="print('dragging')" @drag-end="print('drag-end')" @resize-end="print('resize-end')" @activated="activated"
|
|
|
@deactivated="deactivated" @click.native="clickHandler">
|
|
@@ -24,6 +25,7 @@ const w: any = ref(0)
|
|
|
const h: any = ref(null)
|
|
|
const top = ref(0)
|
|
|
const left = ref(0)
|
|
|
+const zIndex = ref(0)
|
|
|
const isResizable = ref(false) //禁止缩放
|
|
|
const draggable1 = ref(true) //默认true允许
|
|
|
const resizable1 = ref(true) //默认true允许
|
|
@@ -72,6 +74,7 @@ watch(() => props.dargData, (newValue) => {
|
|
|
h.value = newValue.css.height
|
|
|
top.value = newValue.css.top
|
|
|
left.value = newValue.css.left
|
|
|
+ zIndex.value = newValue.css.zIndex
|
|
|
if ('draggable' in newValue.config) {
|
|
|
draggable1.value = newValue.config.draggable
|
|
|
}
|