14 lines
423 B
JavaScript
14 lines
423 B
JavaScript
|
|
||
|
export default {
|
||
|
methods: {
|
||
|
mouseCancelState(selected) {
|
||
|
const device = this.$jlmap.getDeviceByCode(selected.code);
|
||
|
const instance = (device || {}).instance;
|
||
|
if (instance && instance.mouseEvent && instance.mouseEvent.mouseout) {
|
||
|
device['down'] = false;
|
||
|
instance.mouseEvent.mouseout(this.$jlmap.$zr.curEvent);
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
};
|