Compare commits
No commits in common. "e63e38222e47b4bb19f53e89824fa1516e36e052" and "298619717a45893b7eb89efb1fcd33f73e675777" have entirely different histories.
e63e38222e
...
298619717a
|
|
@ -92,10 +92,7 @@
|
||||||
@click.stop
|
@click.stop
|
||||||
@contextmenu.prevent
|
@contextmenu.prevent
|
||||||
>
|
>
|
||||||
<div class="annotation-context-menu__item" @click.stop="copyCircleAnnotation()">
|
<div class="annotation-context-menu__item" @click.stop="copyCircleAnnotation()">复制</div>
|
||||||
<!-- 复制 -->
|
|
||||||
{{ $t('trials:reading:menu:copy') }}
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
@ -265,25 +262,25 @@ export default {
|
||||||
e.preventDefault()
|
e.preventDefault()
|
||||||
e.stopPropagation()
|
e.stopPropagation()
|
||||||
|
|
||||||
const annotation = this.getCircleAnnotationFromContextMenuEvent(e)
|
// const annotation = this.getCircleAnnotationFromContextMenuEvent(e)
|
||||||
if (!annotation) {
|
// if (!annotation) {
|
||||||
this.hideAnnotationContextMenu()
|
// this.hideAnnotationContextMenu()
|
||||||
return false
|
// return false
|
||||||
}
|
// }
|
||||||
|
|
||||||
if (cornerstoneTools.annotation.locking.isAnnotationLocked(annotation.annotationUID)) {
|
// if (cornerstoneTools.annotation.locking.isAnnotationLocked(annotation.annotationUID)) {
|
||||||
this.hideAnnotationContextMenu()
|
// this.hideAnnotationContextMenu()
|
||||||
return false
|
// return false
|
||||||
}
|
// }
|
||||||
|
|
||||||
this.$emit('activeViewport', this.viewportIndex)
|
// this.$emit('activeViewport', this.viewportIndex)
|
||||||
|
|
||||||
const { x, y } = this.getContextMenuPosition(e)
|
// const { x, y } = this.getContextMenuPosition(e)
|
||||||
this.annotationContextMenu.visible = true
|
// this.annotationContextMenu.visible = true
|
||||||
this.annotationContextMenu.x = x
|
// this.annotationContextMenu.x = x
|
||||||
this.annotationContextMenu.y = y
|
// this.annotationContextMenu.y = y
|
||||||
this.annotationContextMenu.annotation = annotation
|
// this.annotationContextMenu.annotation = annotation
|
||||||
return false
|
// return false
|
||||||
},
|
},
|
||||||
getContextMenuPosition(e) {
|
getContextMenuPosition(e) {
|
||||||
const rect = this.element?.getBoundingClientRect?.()
|
const rect = this.element?.getBoundingClientRect?.()
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue