File tree 2 files changed +12
-1
lines changed
2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ " @vue-flow/minimap " : patch
3
+ ---
4
+
5
+ Bind attributes to minimap node elements.
Original file line number Diff line number Diff line change @@ -39,16 +39,22 @@ function onMouseLeave(event: MouseEvent) {
39
39
export default {
40
40
name: ' MiniMapNode' ,
41
41
compatConfig: { MODE: 3 },
42
+ inheritAttrs: false ,
42
43
}
43
44
</script >
44
45
45
46
<template >
46
47
<template v-if =" ! hidden && dimensions .width !== 0 && dimensions .height !== 0 " >
47
- <component :is =" miniMapSlots[`node-${props.type}`]" v-if =" miniMapSlots[`node-${props.type}`]" v-bind =" props" />
48
+ <component
49
+ :is =" miniMapSlots[`node-${props.type}`]"
50
+ v-if =" miniMapSlots[`node-${props.type}`]"
51
+ v-bind =" { ...props, ...$attrs }"
52
+ />
48
53
49
54
<rect
50
55
v-else
51
56
:id =" id"
57
+ v-bind =" $attrs"
52
58
class =" vue-flow__minimap-node"
53
59
:class =" { selected, dragging }"
54
60
:x =" position.x"
You can’t perform that action at this time.
0 commit comments