Commit 41723c7b authored by aoobao's avatar aoobao

修改擦除bug,修改选中后线条颜色

parent e38fa798
...@@ -69,13 +69,13 @@ export default { ...@@ -69,13 +69,13 @@ export default {
mapMouseDown (e) { mapMouseDown (e) {
// console.log(e) // console.log(e)
this.down = true this.down = true
if (this.manager) { if (this.manager && this.isClear) {
this.manager.clearLine(e.pixel, this.clearWidth) this.manager.clearLine(e.pixel, this.clearWidth)
} }
}, },
mapMouseMove (e) { mapMouseMove (e) {
// console.log(e) // console.log(e)
if (this.down && this.manager) { if (this.down && this.manager && this.isClear) {
this.manager.clearLine(e.pixel, this.clearWidth) this.manager.clearLine(e.pixel, this.clearWidth)
} }
}, },
......
...@@ -210,7 +210,7 @@ export default { ...@@ -210,7 +210,7 @@ export default {
lineMouseOver (data, index) { lineMouseOver (data, index) {
this.lineList.splice(index, 1, { this.lineList.splice(index, 1, {
...data, ...data,
color: 'yellow' color: 'orange'
}) })
//data.color = 'yellow' //data.color = 'yellow'
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment