2022-07-17 08:48:06 +00:00
|
|
|
<script setup lang="ts">
|
|
|
|
import TreePanel from './components/TreePanel.vue';
|
|
|
|
import { ref } from 'vue';
|
2022-08-03 10:00:31 +00:00
|
|
|
import ProfilerPanel from './components/ProfilerPanel.vue';
|
|
|
|
let showProfiler = ref(false);
|
|
|
|
window.addEventListener('showProfiler', (e: any) => {
|
|
|
|
showProfiler.value = !showProfiler.value;
|
|
|
|
});
|
2022-07-17 08:48:06 +00:00
|
|
|
</script>
|
|
|
|
|
|
|
|
<template>
|
2022-08-03 10:00:31 +00:00
|
|
|
<div>
|
|
|
|
<vue-final-modal v-model="showProfiler" classes="modal-container" content-class="modal-content" :hide-overlay="true"
|
2022-07-17 08:48:06 +00:00
|
|
|
:click-to-close="false" :prevent-click="true" :drag="true" :fit-parent="true" drag-selector=".modal-drag">
|
2022-08-03 10:00:31 +00:00
|
|
|
<ProfilerPanel :show="showProfiler"></ProfilerPanel>
|
2022-07-17 08:48:06 +00:00
|
|
|
</vue-final-modal>
|
2022-08-03 10:00:31 +00:00
|
|
|
</div>
|
2022-07-26 12:05:42 +00:00
|
|
|
<el-card :body-style="{ padding: 0 }" style="margin: 10px;">
|
|
|
|
<TreePanel :show="true"></TreePanel>
|
|
|
|
</el-card>
|
2022-08-04 08:24:52 +00:00
|
|
|
<el-link type="primary" href="https://github.com/potato47/ccc-devtools" target="_blank" style="position:absolute;left: 5px;bottom: 5px;">ccc-devtools</el-link>
|
2022-07-17 08:48:06 +00:00
|
|
|
</template>
|
|
|
|
|
|
|
|
<style scoped>
|
|
|
|
:deep(.modal-container) {
|
|
|
|
display: flex;
|
2022-08-03 10:00:31 +00:00
|
|
|
justify-content: end;
|
|
|
|
align-items: start;
|
2022-07-17 08:48:06 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
:deep(.modal-content) {
|
|
|
|
position: relative;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
2022-07-17 10:06:04 +00:00
|
|
|
border: 1px solid cadetblue;
|
2022-07-17 08:48:06 +00:00
|
|
|
background: #171920;
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
|