Compare commits
No commits in common. "2dc27459957a34ae85197252a438bf17c3d5a5fc" and "6dad5a9dd9192ae8e76ace722c17ca594236d5f5" have entirely different histories.
2dc2745995
...
6dad5a9dd9
@ -1,9 +1,9 @@
|
|||||||
<template>
|
<template>
|
||||||
<div id="main-menu">
|
<div id="main-menu">
|
||||||
<MenuGeneralOptions :active="active" @update-active="updateActive" />
|
<MenuGeneralOptions />
|
||||||
<MenuCellProperties :active="active" @update-active="updateActive" />
|
<MenuCellProperties />
|
||||||
<MenuElementaryCA :active="active" @update-active="updateActive" />
|
<MenuElementaryCA />
|
||||||
<Menu2dCA :active="active" @update-active="updateActive" />
|
<Menu2dCA />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@ -20,21 +20,6 @@
|
|||||||
MenuElementaryCA,
|
MenuElementaryCA,
|
||||||
Menu2dCA,
|
Menu2dCA,
|
||||||
},
|
},
|
||||||
data() {
|
|
||||||
return {
|
|
||||||
active: "",
|
|
||||||
};
|
|
||||||
},
|
|
||||||
methods: {
|
|
||||||
// set the opened submenu. If already active, reset it so it can close
|
|
||||||
updateActive(menu) {
|
|
||||||
if (menu === this.active) {
|
|
||||||
this.active = "";
|
|
||||||
} else {
|
|
||||||
this.active = menu;
|
|
||||||
}
|
|
||||||
},
|
|
||||||
},
|
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
@ -13,11 +13,6 @@
|
|||||||
<label>Start from last result</label>
|
<label>Start from last result</label>
|
||||||
<input type="button" value="start" @click="toggleDraw2dLast()" />
|
<input type="button" value="start" @click="toggleDraw2dLast()" />
|
||||||
</div>
|
</div>
|
||||||
<div class="form-field">
|
|
||||||
<label>Start from picture</label><br />
|
|
||||||
<input type="file" @change="previewFile" />
|
|
||||||
<input type="button" value="start" @click="toggleDraw2dLast()" />
|
|
||||||
</div>
|
|
||||||
</MenuRow>
|
</MenuRow>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@ -33,9 +28,6 @@
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
...mapActions(globalStore, ["toggleDraw2dLast", "toggleDraw2d"]),
|
...mapActions(globalStore, ["toggleDraw2dLast", "toggleDraw2d"]),
|
||||||
previewFile(event) {
|
|
||||||
console.log(event.target.files);
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="menu-row">
|
<div class="menu-row">
|
||||||
<h2 :id="rowTitle" @click="$emit('update-active', rowTitle)">
|
<h2 :id="rowTitle" @click="updateActiveMenu">
|
||||||
{{ rowTitle }}
|
{{ rowTitle }}
|
||||||
</h2>
|
</h2>
|
||||||
<div v-if="isActive" class="menu-row-content">
|
<div class="menu-row-content">
|
||||||
<slot />
|
<slot />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -17,17 +17,6 @@
|
|||||||
type: String,
|
type: String,
|
||||||
default: "",
|
default: "",
|
||||||
},
|
},
|
||||||
active: {
|
|
||||||
type: String,
|
|
||||||
default: "",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
emits: ["update-active"],
|
|
||||||
computed: {
|
|
||||||
isActive() {
|
|
||||||
console.log(this.rowTitle, "vs", this.active);
|
|
||||||
return this.rowTitle == this.active;
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
@ -65,10 +54,15 @@
|
|||||||
position: relative;
|
position: relative;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.menu-row:hover .menu-row-content {
|
||||||
|
display: block;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
.menu-row-content {
|
.menu-row-content {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
background: var(--dark1);
|
background: var(--dark1);
|
||||||
width: 100%;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
label,
|
label,
|
||||||
@ -97,11 +91,11 @@
|
|||||||
padding: 10px;
|
padding: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* .menu-row:active .menu-row-content {
|
.menu-row:active .menu-row-content {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
} */
|
}
|
||||||
|
|
||||||
.menu-row-content {
|
.menu-row-content {
|
||||||
position: relative;
|
position: relative;
|
||||||
|
Loading…
Reference in New Issue
Block a user