Discover: fix sidebarState content
This commit is contained in:
@@ -1,18 +1,18 @@
|
||||
<template>
|
||||
<!-- Sidebar: Switch data type -->
|
||||
<div class="flex flex-col justify-between py-4 w-14 h-screen-main absolute bottom-0 left-0 z-10" :class="sidebarView === true? 'bg-neutral-100':''">
|
||||
<div class="flex flex-col justify-between py-4 w-14 h-screen-main absolute bottom-0 left-0 z-10" :class="sidebarLeftValue? 'bg-neutral-100':''">
|
||||
<ul class="space-y-4 flex flex-col justify-center items-center">
|
||||
<li class="inline-flex items-center justify-center border border-neutral-500 rounded-full w-9 h-9 cursor-pointer bg-neutral-100" @click="sidebarView = true">
|
||||
<li class="inline-flex items-center justify-center border border-neutral-500 rounded-full w-9 h-9 cursor-pointer bg-neutral-100 drop-shadow" @click="sidebarView = true">
|
||||
<span class="material-symbols-outlined text-2xl text-neutral-500">
|
||||
track_changes
|
||||
</span>
|
||||
</li>
|
||||
<li class="inline-flex items-center justify-center border border-neutral-500 rounded-full w-9 h-9 cursor-pointer bg-neutral-100">
|
||||
<li class="inline-flex items-center justify-center border border-neutral-500 rounded-full w-9 h-9 cursor-pointer bg-neutral-100 drop-shadow">
|
||||
<span class="material-symbols-outlined text-2xl text-neutral-500">
|
||||
tornado
|
||||
</span>
|
||||
</li>
|
||||
<li class="inline-flex items-center justify-center border border-neutral-500 rounded-full w-9 h-9 cursor-pointer bg-neutral-100">
|
||||
<li class="inline-flex items-center justify-center border border-neutral-500 rounded-full w-9 h-9 cursor-pointer bg-neutral-100 drop-shadow" @click="sidebarTraces = true">
|
||||
<span class="material-symbols-outlined text-2xl text-neutral-500">
|
||||
rebase
|
||||
</span>
|
||||
@@ -20,7 +20,7 @@
|
||||
</ul>
|
||||
|
||||
<ul class="flex flex-col justify-center items-center">
|
||||
<li class="inline-flex items-center justify-center border border-neutral-500 rounded-full w-9 h-9 cursor-pointer bg-neutral-100">
|
||||
<li class="inline-flex items-center justify-center border border-neutral-500 rounded-full w-9 h-9 cursor-pointer bg-neutral-100 drop-shadow">
|
||||
<span class="material-symbols-outlined text-2xl text-neutral-500">
|
||||
highlight
|
||||
</span>
|
||||
@@ -36,7 +36,7 @@
|
||||
<!-- Sidebar: State -->
|
||||
<div class="bg-transparent py-4 w-14 h-screen-main z-10 bottom-0 right-0 absolute">
|
||||
<ul class="flex flex-col justify-center items-center">
|
||||
<li class="inline-flex items-center justify-center border border-neutral-500 rounded-full w-9 h-9 cursor-pointer bg-neutral-100" @click="sidebarState = true">
|
||||
<li class="inline-flex items-center justify-center border border-neutral-500 rounded-full w-9 h-9 cursor-pointer bg-neutral-100 drop-shadow" @click="sidebarState = true">
|
||||
<span class="material-symbols-outlined text-2xl text-neutral-500">
|
||||
info
|
||||
</span>
|
||||
@@ -48,6 +48,22 @@
|
||||
<SidebarView v-model:visible="sidebarView" @switch-map-type="switchMapType" @switch-curve-styles="switchCurveStyles" @switch-rank="switchRank" @switch-data-layer-type="switchDataLayerType" ></SidebarView>
|
||||
<SidebarState v-model:visible="sidebarState" :insights="insights" :stats="stats"></SidebarState>
|
||||
|
||||
<Sidebar v-model:visible="sidebarTraces" :closeIcon="'pi pi-chevron-left'" :modal="false" position="left" :dismissable="true" class="!w-11/12">
|
||||
<template #header>
|
||||
<p class="h1">Traces</p>
|
||||
</template>
|
||||
<div class="p-4">
|
||||
<!-- Trace List -->
|
||||
<section>
|
||||
<p class="h2">Trace List (25)</p>
|
||||
<p class="text-primary"><span class="material-symbols-outlined">info</span>Click trace number to see more.</p>
|
||||
</section>
|
||||
<!-- Trace item Table -->
|
||||
<section></section>
|
||||
</div>
|
||||
</Sidebar>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -103,6 +119,13 @@ export default {
|
||||
rank: 'LR', // 直向 TB | 橫向 LR
|
||||
sidebarView: false, // SideBar: Visualization Setting
|
||||
sidebarState: false, // SideBar: Summary & Insight
|
||||
sidebarTraces: false, // SideBar: Traces
|
||||
}
|
||||
},
|
||||
computed:{
|
||||
sidebarLeftValue: function() {
|
||||
let result = this.sidebarView === true || this.sidebarTraces === true;
|
||||
return result;
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
|
||||
Reference in New Issue
Block a user