refactor: remove project settings panel

This commit is contained in:
gin
2026-05-26 21:08:58 +08:00
parent 2a702fa6a9
commit ebccb7283f
27 changed files with 79 additions and 989 deletions
+2 -16
View File
@@ -8,7 +8,7 @@ const props = defineProps({
fixedHeader: Boolean
});
const { $storage, $config } = useGlobal<GlobalPropertiesApi>();
const { $config } = useGlobal<GlobalPropertiesApi>();
const keepAlive = computed(() => {
return $config?.KeepAlive;
@@ -20,22 +20,8 @@ const transitions = computed(() => {
};
});
const hideTabs = computed(() => {
return $storage?.configure.hideTabs;
});
const layout = computed(() => {
return $storage?.layout.layout === "vertical";
});
const getSectionStyle = computed(() => {
return [
hideTabs.value && layout ? "padding-top: 48px;" : "",
!hideTabs.value && layout ? "padding-top: 85px;" : "",
hideTabs.value && !layout.value ? "padding-top: 48px" : "",
!hideTabs.value && !layout.value ? "padding-top: 85px;" : "",
props.fixedHeader ? "" : "padding-top: 0;"
];
return ["padding-top: 85px;", props.fixedHeader ? "" : "padding-top: 0;"];
});
const transitionMain = defineComponent({