Browse Source

fix: 喷涂区域只允许上下移动

master
guoapeng 3 weeks ago
parent
commit
2fac9556c9
  1. 6
      src/components/spray/trayGraph/index.vue

6
src/components/spray/trayGraph/index.vue

@ -62,6 +62,12 @@ const addSelect = () => {
height: (75 - 15 * 2) * zoom, height: (75 - 15 * 2) * zoom,
fill: 'rgba(238,10,36, 0.2)', fill: 'rgba(238,10,36, 0.2)',
draggable: true, draggable: true,
dragBoundFunc(pos) {
return {
x: 0, // X
y: pos.y, // Y
}
},
}) })
// onMountedrect // onMountedrect

Loading…
Cancel
Save