|
|
@@ -23,10 +23,18 @@ function unCollaspe() {
|
|
|
isCollaspe.value = false
|
|
|
}
|
|
|
</script>
|
|
|
-
|
|
|
+<style lang="scss" scoped>
|
|
|
+.main-container {
|
|
|
+ height: 100%;
|
|
|
+ padding: 24px;
|
|
|
+}
|
|
|
+.page-main{
|
|
|
+ border-radius: 6px ;
|
|
|
+}
|
|
|
+</style>
|
|
|
<template>
|
|
|
<div
|
|
|
- class="page-main relative m-4 flex flex-col bg-[var(--g-container-bg)] transition-background-color-300" :class="{
|
|
|
+ class="page-main relative m-[24px] flex flex-col bg-[var(--g-container-bg)] transition-background-color-300" :class="{
|
|
|
'of-hidden': isCollaspe,
|
|
|
}" :style="{
|
|
|
height: isCollaspe ? height : '',
|
|
|
@@ -37,7 +45,7 @@ function unCollaspe() {
|
|
|
{{ title }}
|
|
|
</slot>
|
|
|
</div>
|
|
|
- <div class="main-container p-5" style="height: 100%;">
|
|
|
+ <div class="main-container p-5" style="">
|
|
|
<slot />
|
|
|
</div>
|
|
|
<div v-if="isCollaspe" class="collaspe absolute bottom-0 w-full cursor-pointer from-transparent to-[var(--g-container-bg)] bg-gradient-to-b pb-2 pt-10 text-center" @click="unCollaspe">
|