refactor(core): remove unnecessary keys
This commit is contained in:
@@ -12,7 +12,6 @@ import { getMousePosition } from './utils'
|
|||||||
const { isSelecting } = defineProps<{ isSelecting: boolean }>()
|
const { isSelecting } = defineProps<{ isSelecting: boolean }>()
|
||||||
|
|
||||||
const {
|
const {
|
||||||
id,
|
|
||||||
vueFlowRef,
|
vueFlowRef,
|
||||||
getNodes,
|
getNodes,
|
||||||
getEdges,
|
getEdges,
|
||||||
@@ -252,7 +251,6 @@ export default {
|
|||||||
<template>
|
<template>
|
||||||
<div
|
<div
|
||||||
ref="container"
|
ref="container"
|
||||||
:key="`pane-${id}`"
|
|
||||||
class="vue-flow__pane vue-flow__container"
|
class="vue-flow__pane vue-flow__container"
|
||||||
:class="{ selection: isSelecting }"
|
:class="{ selection: isSelecting }"
|
||||||
@click="onClick"
|
@click="onClick"
|
||||||
|
|||||||
@@ -13,7 +13,6 @@ import { useResizeHandler } from '../../composables/useResizeHandler'
|
|||||||
import Transform from './Transform.vue'
|
import Transform from './Transform.vue'
|
||||||
|
|
||||||
const {
|
const {
|
||||||
id,
|
|
||||||
minZoom,
|
minZoom,
|
||||||
maxZoom,
|
maxZoom,
|
||||||
defaultViewport,
|
defaultViewport,
|
||||||
@@ -378,7 +377,7 @@ export default {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<div ref="viewportRef" :key="`viewport-${id}`" class="vue-flow__viewport vue-flow__container">
|
<div ref="viewportRef" class="vue-flow__viewport vue-flow__container">
|
||||||
<Pane
|
<Pane
|
||||||
:is-selecting="isSelecting"
|
:is-selecting="isSelecting"
|
||||||
:class="{ connecting: !!connectionStartHandle, dragging: paneDragging, draggable: shouldPanOnDrag }"
|
:class="{ connecting: !!connectionStartHandle, dragging: paneDragging, draggable: shouldPanOnDrag }"
|
||||||
|
|||||||
Reference in New Issue
Block a user