mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-10-24 02:04:04 +08:00
fix stdout select
This commit is contained in:
@@ -1,5 +1,9 @@
|
||||
<template>
|
||||
<tr @click="toggleExpanded">
|
||||
<tr
|
||||
@mousedown="mouseIsDown = true"
|
||||
@mousemove="mouseIsDown ? (isDragging = true) : (isDragging = false)"
|
||||
@mouseup="toggleExpanded()"
|
||||
>
|
||||
<td>
|
||||
{{ codeLabel }}
|
||||
</td>
|
||||
@@ -25,11 +29,18 @@ export default {
|
||||
codeItem: String,
|
||||
},
|
||||
data() {
|
||||
return { expanded: false };
|
||||
return {
|
||||
mouseIsDown: false,
|
||||
isDragging: false,
|
||||
expanded: false,
|
||||
};
|
||||
},
|
||||
methods: {
|
||||
toggleExpanded() {
|
||||
if (this.codeItem) {
|
||||
console.log(this.mouseIsDown)
|
||||
console.log(this.isDragging)
|
||||
this.mouseIsDown = false;
|
||||
if (this.codeItem && !this.isDragging) {
|
||||
this.expanded = !this.expanded;
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user