广丰卷烟厂数采质量分析系统
zhuguifei
2026-03-02 80ff784bf60637cd348ae665fc907f7b1e527dd8
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
<script setup lang="ts">
import { useAppStore } from '@/store/modules/app';
import { useThemeStore } from '@/store/modules/theme';
import { $t } from '@/locales';
import LayoutModeCard from '../../../components/layout-mode-card.vue';
 
defineOptions({
  name: 'LayoutMode'
});
 
const appStore = useAppStore();
const themeStore = useThemeStore();
</script>
 
<template>
  <NDivider>{{ $t('theme.layout.layoutMode.title') }}</NDivider>
  <LayoutModeCard v-model:mode="themeStore.layout.mode" :disabled="appStore.isMobile">
    <template #vertical>
      <div class="layout-sider h-full w-18px !bg-primary"></div>
      <div class="vertical-wrapper">
        <div class="layout-header bg-primary-200"></div>
        <div class="layout-main"></div>
      </div>
    </template>
    <template #vertical-mix>
      <div class="layout-sider h-full w-8px !bg-primary"></div>
      <div class="layout-sider h-full w-16px !bg-primary-300"></div>
      <div class="vertical-wrapper">
        <div class="layout-header bg-primary-200"></div>
        <div class="layout-main"></div>
      </div>
    </template>
    <template #vertical-hybrid-header-first>
      <div class="layout-sider h-full w-8px !bg-primary"></div>
      <div class="layout-sider h-full w-16px !bg-primary-300"></div>
      <div class="vertical-wrapper">
        <div class="layout-header bg-primary"></div>
        <div class="layout-main"></div>
      </div>
    </template>
    <template #horizontal>
      <div class="layout-header !bg-primary"></div>
      <div class="horizontal-wrapper">
        <div class="layout-main"></div>
      </div>
    </template>
    <template #top-hybrid-sidebar-first>
      <div class="layout-header !bg-primary-300"></div>
      <div class="horizontal-wrapper">
        <div class="layout-sider w-18px !bg-primary"></div>
        <div class="layout-main"></div>
      </div>
    </template>
    <template #top-hybrid-header-first>
      <div class="layout-header bg-primary"></div>
      <div class="horizontal-wrapper">
        <div class="layout-sider w-18px"></div>
        <div class="layout-main"></div>
      </div>
    </template>
  </LayoutModeCard>
</template>
 
<style scoped>
.layout-header {
  --uno: h-16px rd-4px;
}
 
.layout-sider {
  --uno: bg-primary-300 rd-4px;
}
 
.layout-main {
  --uno: flex-1 bg-primary-200 rd-4px;
}
 
.vertical-wrapper {
  --uno: flex-1 flex-col gap-6px;
}
 
.horizontal-wrapper {
  --uno: flex-1 flex gap-6px;
}
</style>