7 changed files with 238 additions and 21 deletions
@ -0,0 +1,68 @@ |
|||||
|
<script lang="ts" setup> |
||||
|
import { onMounted, ref } from 'vue' |
||||
|
import WorkbenchHeader from './components/WorkbenchHeader.vue' |
||||
|
import ProjectCard from './components/ProjectCard.vue' |
||||
|
import DynamicInfo from './components/DynamicInfo.vue' |
||||
|
import StaticImg from './components/staticImg.vue' |
||||
|
import ParameterInfo from './components/ParameterInfo.vue' |
||||
|
import Operation from './components/Operation.vue' |
||||
|
import data from './components/demo.json' |
||||
|
import { PageWrapper } from '@/components/Page' |
||||
|
|
||||
|
const loading = ref(true) |
||||
|
|
||||
|
onMounted(() => { |
||||
|
const htmlRoot = document.getElementsByClassName('workbench') |
||||
|
// let theme = window.localStorage.getItem('__APP__DARK__MODE__') |
||||
|
const theme = 'dark' |
||||
|
|
||||
|
if (htmlRoot && theme) { |
||||
|
for (let i = 0; i < htmlRoot.length; i++) |
||||
|
htmlRoot[i].setAttribute('data-theme', theme) |
||||
|
} |
||||
|
// theme = htmlRoot = null |
||||
|
}) |
||||
|
|
||||
|
setTimeout(() => { |
||||
|
loading.value = false |
||||
|
}, 500) |
||||
|
</script> |
||||
|
|
||||
|
<template> |
||||
|
<div class="workbench m-1" data-theme="light"> |
||||
|
<WorkbenchHeader class="workbench m-1" data-theme="light" :data="data" /> |
||||
|
<div class="enter-y workbench h-92 md:flex" data-theme="light"> |
||||
|
<StaticImg data-theme="light" class="workbench m-1 w-full md:w-1/4" :loading="loading" :data="data.LeftUp" /> |
||||
|
<ProjectCard data-theme="light" class="enter-y workbench m-1 w-full md:w-1/2" :loading="loading" :data="data.LeftMidUp" /> |
||||
|
<div class="enter-y w-full !mr-4 md:w-1/4"> |
||||
|
<DynamicInfo :loading="loading" data-theme="light" class="workbench enter-y m-1 h-35 w-full" :data="data.RightMidUp" /> |
||||
|
<Operation data-theme="light" class="workbench enter-y m-1 h-54 w-full" :loading="loading" :data="data.RightUp" /> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="enter-y workbench h-95 md:flex" data-theme="light"> |
||||
|
<StaticImg data-theme="light" class="workbench m-1 w-full md:w-1/2" :loading="loading" :data="data.LeftDown" /> |
||||
|
<ParameterInfo data-theme="light" class="workbench m-1 w-full md:w-1/2" :loading="loading" :data="data.RightDown" /> |
||||
|
</div> |
||||
|
<!-- <div class="enter-y w-full !mr-4 lg:w-7/10"> |
||||
|
<StaticImg :loading="loading" :data="data.LeftUp" class="enter-y" /> |
||||
|
</div> --> |
||||
|
|
||||
|
<!-- <div class="enter-y w-full !mr-4 lg:w-7/10"> |
||||
|
<ProjectCard :loading="loading" class="enter-y" /> |
||||
|
<DynamicInfo :loading="loading" class="enter-y !my-4" /> |
||||
|
</div> |
||||
|
<div class="enter-y w-full lg:w-3/10"> |
||||
|
<QuickNav :loading="loading" class="enter-y" /> |
||||
|
|
||||
|
<Card class="enter-y !my-4" :loading="loading"> |
||||
|
<img class="mx-auto h-30 xl:h-50" src="@/assets/svg/illustration.svg"> |
||||
|
</Card> |
||||
|
|
||||
|
<SaleRadar :loading="loading" class="enter-y" /> |
||||
|
</div> --> |
||||
|
</div> |
||||
|
</template> |
||||
|
|
||||
|
<style lang="less"> |
||||
|
|
||||
|
</style> |
Loading…
Reference in new issue