fix: 新增组件

This commit is contained in:
mtruning
2022-01-15 14:56:48 +08:00
parent b7a372e50f
commit d2fabeae5f
25 changed files with 112 additions and 47 deletions
@@ -1,7 +1,7 @@
<template>
<div class="go-chart-common">
<!-- v-show="packages.categorysNum > 1" -->
<n-menu
v-show="hidePackageOneCategory"
class="chart-menu-width"
v-model:value="selectValue"
:options="packages.menuOptions"
@@ -16,9 +16,10 @@
</template>
<script setup lang="ts">
import { ref, watch, markRaw,reactive } from 'vue'
import { ref, watch, markRaw, reactive, computed } from 'vue'
import { ItemBox } from '../ItemBox/index'
import { ConfigType } from '@/packages/index.d'
import { useSettingStore } from '@/store/modules/settingStore/settingStore'
const props = defineProps({
selectOptions: {
@@ -27,6 +28,14 @@ const props = defineProps({
}
})
// 隐藏设置
const settingStore = useSettingStore()
const hidePackageOneCategory = computed(() => {
if (packages.categorysNum > 1) return true
return !settingStore.getHidePackageOneCategory
})
// TODO 调试结束改成 markeRaw
let packages = reactive<{
[T: string]: any
@@ -91,13 +100,13 @@ const clickItemHandle = (key: string) => {
/* 此高度与 ContentBox 组件关联*/
$topHeight: 60px;
$menuWidth: 65px;
@include go('chart-common') {
@include go("chart-common") {
display: flex;
height: calc(100vh - #{$--header-height} - #{$topHeight});
.chart-menu-width {
width: $menuWidth;
flex-shrink: 0;
@include filter-bg-color('background-color2-shallow');
@include filter-bg-color("background-color2-shallow");
}
.chart-content-list {
flex: 1;
+3 -8
View File
@@ -1,5 +1,4 @@
<template>
<div class="go-bg-point"></div>
<div class="go-chart">
<n-layout>
<HeaderPro>
@@ -35,13 +34,9 @@ import { ContentDetails } from './components/ContentDetails/index'
</script>
<style lang="scss" scoped>
$height: 100vh;
@include go('bg-point') {
@include background-image('background-point');
@extend .go-point-bg;
}
@include go('chart') {
height: $height;
@include go("chart") {
height: 100vh;
width: 100vw;
overflow: hidden;
@include background-image('background-image');
}