revert(minimap): inherit attrs
This commit is contained in:
@@ -206,7 +206,6 @@ function onNodeMouseLeave(event: MouseEvent, node: GraphNode) {
|
|||||||
export default {
|
export default {
|
||||||
name: 'MiniMap',
|
name: 'MiniMap',
|
||||||
compatConfig: { MODE: 3 },
|
compatConfig: { MODE: 3 },
|
||||||
inheritAttrs: false,
|
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
@@ -214,7 +213,6 @@ export default {
|
|||||||
<Panel :position="position" class="vue-flow__minimap" :class="{ pannable, zoomable }">
|
<Panel :position="position" class="vue-flow__minimap" :class="{ pannable, zoomable }">
|
||||||
<svg
|
<svg
|
||||||
ref="el"
|
ref="el"
|
||||||
v-bind="attrs"
|
|
||||||
:width="elementWidth"
|
:width="elementWidth"
|
||||||
:height="elementHeight"
|
:height="elementHeight"
|
||||||
:viewBox="[viewBox.x, viewBox.y, viewBox.width, viewBox.height].join(' ')"
|
:viewBox="[viewBox.x, viewBox.y, viewBox.width, viewBox.height].join(' ')"
|
||||||
|
|||||||
Reference in New Issue
Block a user