|
|
@@ -20,7 +20,7 @@
|
|
|
:key="`${type}-${i}-${j}-${k}`"
|
|
|
class="drag-line"
|
|
|
:class="[type, ...lineClass]"
|
|
|
- :style="{ gridArea: type }"
|
|
|
+ :style="{ gridArea: type, cursor }"
|
|
|
:data-type="type"
|
|
|
@mousedown="dragStart($event, { cursor, type, i, j, k, id: grid.id })"
|
|
|
></span>
|
|
|
@@ -86,7 +86,7 @@ export default {
|
|
|
moveLineList: [
|
|
|
{
|
|
|
type: 'top',
|
|
|
- cursor: 'ns-resize',
|
|
|
+ cursor: 'default',
|
|
|
lineClass: ['drag-line'],
|
|
|
},
|
|
|
{
|
|
|
@@ -263,6 +263,7 @@ export default {
|
|
|
dragStart(event, { cursor, type, id, i, j, k }) {
|
|
|
const dragElement = this.findChildComponentByKey(`preview-${id}`);
|
|
|
if (!dragElement) return;
|
|
|
+ if (cursor === 'default') return; // 无需拖动
|
|
|
this.dragElement = dragElement;
|
|
|
|
|
|
const { clientX, clientY } = event;
|