mirror of
https://github.com/fugary/simple-element-plus-template.git
synced 2026-02-23 06:37:01 +00:00
Compare commits
5 Commits
fb95c8e934
...
496bcf75ba
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
496bcf75ba | ||
|
|
5fc146aa4f | ||
|
|
4e052c28ae | ||
|
|
d7c4a47a11 | ||
|
|
e5a3463aae |
@@ -599,4 +599,45 @@ body,
|
|||||||
|
|
||||||
.dark .monaco-editor.vs-dark .monaco-editor-background {
|
.dark .monaco-editor.vs-dark .monaco-editor-background {
|
||||||
background-color: #1e1e1e !important;
|
background-color: #1e1e1e !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.home-main.is-maximized {
|
||||||
|
position: fixed;
|
||||||
|
top: 0;
|
||||||
|
left: 0;
|
||||||
|
width: 100vw;
|
||||||
|
height: 100vh;
|
||||||
|
z-index: 2000;
|
||||||
|
background-color: var(--el-bg-color);
|
||||||
|
}
|
||||||
|
|
||||||
|
.fullscreen-btn {
|
||||||
|
position: fixed;
|
||||||
|
top: auto;
|
||||||
|
right: 40px;
|
||||||
|
bottom: 90px;
|
||||||
|
z-index: 999;
|
||||||
|
width: 40px;
|
||||||
|
height: 40px;
|
||||||
|
border-radius: 50%;
|
||||||
|
background-color: var(--el-bg-color-overlay);
|
||||||
|
color: var(--el-color-primary);
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
|
cursor: pointer;
|
||||||
|
box-shadow: var(--el-box-shadow-lighter);
|
||||||
|
opacity: 1;
|
||||||
|
transition: opacity 0.3s;
|
||||||
|
font-size: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.fullscreen-btn:hover {
|
||||||
|
opacity: 1;
|
||||||
|
box-shadow: var(--el-box-shadow);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Layout Improvements */
|
||||||
|
.height100 {
|
||||||
|
height: 100%;
|
||||||
|
}
|
||||||
|
|||||||
@@ -115,6 +115,9 @@ onMounted(() => {
|
|||||||
}
|
}
|
||||||
if (props.submitByEnter) {
|
if (props.submitByEnter) {
|
||||||
removeEnterFn.value = onKeyStroke('Enter', (event) => {
|
removeEnterFn.value = onKeyStroke('Enter', (event) => {
|
||||||
|
if (event?.target?.tagName === 'TEXTAREA' || event?.target?.isContentEditable) {
|
||||||
|
return
|
||||||
|
}
|
||||||
event?.stopImmediatePropagation()
|
event?.stopImmediatePropagation()
|
||||||
if (form.value) {
|
if (form.value) {
|
||||||
console.info('=========================submitByEnter', formDiv.value)
|
console.info('=========================submitByEnter', formDiv.value)
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<script setup>
|
<script setup>
|
||||||
import { onMounted, ref, useAttrs } from 'vue'
|
import { onMounted, onUnmounted, ref, useAttrs, watch } from 'vue'
|
||||||
import Split from 'split.js'
|
import Split from 'split.js'
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -32,31 +32,93 @@ const props = defineProps({
|
|||||||
validator (value) {
|
validator (value) {
|
||||||
return ['start', 'center', 'end'].includes(value)
|
return ['start', 'center', 'end'].includes(value)
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
disabled: {
|
||||||
|
type: Boolean,
|
||||||
|
default: false
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
const itemRefs = ref([])
|
const itemRefs = ref([])
|
||||||
|
const isDragging = ref(false)
|
||||||
|
|
||||||
const attrs = useAttrs()
|
const attrs = useAttrs()
|
||||||
|
let splitInstance = null
|
||||||
|
|
||||||
onMounted(() => {
|
const initSplit = () => {
|
||||||
Split(itemRefs.value.map(itemRef => itemRef), {
|
if (splitInstance) {
|
||||||
|
splitInstance.destroy()
|
||||||
|
splitInstance = null
|
||||||
|
}
|
||||||
|
if (props.disabled) return
|
||||||
|
|
||||||
|
splitInstance = Split(itemRefs.value.map(itemRef => itemRef), {
|
||||||
sizes: props.sizes,
|
sizes: props.sizes,
|
||||||
minSize: props.minSize,
|
minSize: props.minSize,
|
||||||
maxSize: props.maxSize,
|
maxSize: props.maxSize,
|
||||||
gutterAlign: props.gutterAlign,
|
gutterAlign: props.gutterAlign,
|
||||||
|
gutterSize: 5,
|
||||||
direction: props.direction,
|
direction: props.direction,
|
||||||
...attrs
|
...attrs,
|
||||||
|
onDragStart: (sizes) => {
|
||||||
|
isDragging.value = true
|
||||||
|
if (attrs.onDragStart) {
|
||||||
|
attrs.onDragStart(sizes)
|
||||||
|
}
|
||||||
|
if (props.onDragStart) {
|
||||||
|
props.onDragStart(sizes)
|
||||||
|
}
|
||||||
|
},
|
||||||
|
onDragEnd: (sizes) => {
|
||||||
|
isDragging.value = false
|
||||||
|
if (attrs.onDragEnd) {
|
||||||
|
attrs.onDragEnd(sizes)
|
||||||
|
}
|
||||||
|
if (props.onDragEnd) {
|
||||||
|
props.onDragEnd(sizes)
|
||||||
|
}
|
||||||
|
}
|
||||||
})
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
onMounted(() => {
|
||||||
|
initSplit()
|
||||||
|
})
|
||||||
|
|
||||||
|
onUnmounted(() => {
|
||||||
|
if (splitInstance) {
|
||||||
|
splitInstance.destroy()
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
|
watch(() => props.disabled, () => {
|
||||||
|
initSplit()
|
||||||
|
})
|
||||||
|
|
||||||
|
watch(() => props.sizes, (newSizes) => {
|
||||||
|
if (splitInstance) {
|
||||||
|
splitInstance.setSizes(newSizes)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
|
defineExpose({
|
||||||
|
splitInstance,
|
||||||
|
getSizes: () => {
|
||||||
|
return splitInstance ? splitInstance.getSizes() : props.sizes
|
||||||
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<div class="common-split">
|
<div
|
||||||
|
class="common-split"
|
||||||
|
:class="{ 'is-disabled': disabled, 'is-dragging': isDragging }"
|
||||||
|
>
|
||||||
<div
|
<div
|
||||||
v-for="(_, index) in sizes"
|
v-for="(_, index) in sizes"
|
||||||
ref="itemRefs"
|
ref="itemRefs"
|
||||||
:key="index"
|
:key="index"
|
||||||
|
class="split-pane"
|
||||||
>
|
>
|
||||||
<slot :name="`split-${index}`" />
|
<slot :name="`split-${index}`" />
|
||||||
</div>
|
</div>
|
||||||
@@ -64,5 +126,33 @@ onMounted(() => {
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<style scoped>
|
<style scoped>
|
||||||
|
.common-split {
|
||||||
|
height: 100%;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
.split-pane {
|
||||||
|
overflow: hidden;
|
||||||
|
height: 100%;
|
||||||
|
}
|
||||||
|
.common-split.is-disabled {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
|
}
|
||||||
|
.common-split.is-disabled > .split-pane:first-child {
|
||||||
|
width: auto !important;
|
||||||
|
flex: none;
|
||||||
|
}
|
||||||
|
.common-split.is-disabled > .split-pane:last-child {
|
||||||
|
flex: 1;
|
||||||
|
width: auto !important;
|
||||||
|
}
|
||||||
|
:deep(.gutter) {
|
||||||
|
background-color: #eee;
|
||||||
|
background-repeat: no-repeat;
|
||||||
|
background-position: 50%;
|
||||||
|
}
|
||||||
|
/* Highlight when dragging (controlled by JS state) */
|
||||||
|
.is-dragging > :deep(.gutter) {
|
||||||
|
background-color: #409eff !important;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -8,7 +8,10 @@ const businessMenus = computed(() => menuConfigStore.calcBusinessMenus())
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<el-scrollbar>
|
<el-scrollbar
|
||||||
|
view-class="height100"
|
||||||
|
class="height100"
|
||||||
|
>
|
||||||
<common-menu
|
<common-menu
|
||||||
class="el-menu-left"
|
class="el-menu-left"
|
||||||
:collapse="globalConfigStore.isCollapseLeft"
|
:collapse="globalConfigStore.isCollapseLeft"
|
||||||
@@ -19,4 +22,17 @@ const businessMenus = computed(() => menuConfigStore.calcBusinessMenus())
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<style scoped>
|
<style scoped>
|
||||||
|
:deep(.el-menu-left) {
|
||||||
|
height: 100%;
|
||||||
|
width: 100%;
|
||||||
|
border-right: none;
|
||||||
|
background-color: var(--el-bg-color-overlay); /* Or specific menu background color */
|
||||||
|
}
|
||||||
|
:deep(.el-scrollbar__view) {
|
||||||
|
height: 100%;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
.el-scrollbar {
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
113
src/layout/MainContent.vue
Normal file
113
src/layout/MainContent.vue
Normal file
@@ -0,0 +1,113 @@
|
|||||||
|
<script setup>
|
||||||
|
import TopNav from '@/layout/TopNav.vue'
|
||||||
|
import { useGlobalConfigStore } from '@/stores/GlobalConfigStore'
|
||||||
|
import { useTabsViewStore } from '@/stores/TabsViewStore'
|
||||||
|
import { GlobalLayoutMode } from '@/consts/GlobalConstants'
|
||||||
|
import { useBreadcrumbConfigStore } from '@/stores/BreadcrumbConfigStore'
|
||||||
|
import { APP_VERSION } from '@/config'
|
||||||
|
import { getParentRootKey } from '@/route/RouteUtils'
|
||||||
|
import { onKeyStroke } from '@vueuse/core'
|
||||||
|
|
||||||
|
const globalConfigStore = useGlobalConfigStore()
|
||||||
|
const tabsViewStore = useTabsViewStore()
|
||||||
|
const breadcrumbConfigStore = useBreadcrumbConfigStore()
|
||||||
|
|
||||||
|
const toggleMainFullscreen = () => {
|
||||||
|
tabsViewStore.toggleMainFullscreen()
|
||||||
|
}
|
||||||
|
|
||||||
|
onKeyStroke('Escape', (e) => {
|
||||||
|
if (tabsViewStore.isMainMaximized) {
|
||||||
|
e.preventDefault()
|
||||||
|
tabsViewStore.isMainMaximized = false
|
||||||
|
}
|
||||||
|
})
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<template>
|
||||||
|
<el-container class="height100">
|
||||||
|
<el-header>
|
||||||
|
<top-nav />
|
||||||
|
</el-header>
|
||||||
|
<el-header
|
||||||
|
v-if="globalConfigStore.layoutMode === GlobalLayoutMode.TOP && globalConfigStore.isShowBreadcrumb"
|
||||||
|
class="breadcrumb-header"
|
||||||
|
style="height: 40px"
|
||||||
|
>
|
||||||
|
<common-breadcrumb
|
||||||
|
style="padding-top:15px"
|
||||||
|
:show-icon="tabsViewStore.isShowTabIcon"
|
||||||
|
:label-config="breadcrumbConfigStore.breadcrumbConfig"
|
||||||
|
/>
|
||||||
|
</el-header>
|
||||||
|
<el-header
|
||||||
|
v-if="tabsViewStore.isTabMode"
|
||||||
|
class="tabs-header tabMode"
|
||||||
|
>
|
||||||
|
<common-tabs-view />
|
||||||
|
</el-header>
|
||||||
|
<el-main
|
||||||
|
class="home-main"
|
||||||
|
:class="{ 'is-maximized': tabsViewStore.isMainMaximized }"
|
||||||
|
>
|
||||||
|
<div
|
||||||
|
class="fullscreen-btn"
|
||||||
|
@click="toggleMainFullscreen"
|
||||||
|
>
|
||||||
|
<common-icon
|
||||||
|
:icon="tabsViewStore.isMainMaximized ? 'FullscreenExitFilled' : 'FullscreenFilled'"
|
||||||
|
:size="20"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
<router-view v-slot="{ Component, route }">
|
||||||
|
<transition
|
||||||
|
:name="route.meta?.transition!==false?'slide-fade':''"
|
||||||
|
mode="out-in"
|
||||||
|
>
|
||||||
|
<KeepAlive
|
||||||
|
v-if="tabsViewStore.isTabMode&&tabsViewStore.isCachedTabMode"
|
||||||
|
:include="tabsViewStore.cachedTabs"
|
||||||
|
:max="tabsViewStore.maxCacheCount"
|
||||||
|
>
|
||||||
|
<component
|
||||||
|
:is="Component"
|
||||||
|
:key="getParentRootKey(route)"
|
||||||
|
/>
|
||||||
|
</KeepAlive>
|
||||||
|
<component
|
||||||
|
:is="Component"
|
||||||
|
v-else
|
||||||
|
:key="route.fullPath"
|
||||||
|
/>
|
||||||
|
</transition>
|
||||||
|
</router-view>
|
||||||
|
<el-container class="text-center padding-10 flex-center">
|
||||||
|
<span>
|
||||||
|
<el-text>Copyright © 2024 Version: {{ APP_VERSION }}</el-text>
|
||||||
|
<el-link
|
||||||
|
href="https://github.com/fugary/simple-element-plus-template"
|
||||||
|
type="primary"
|
||||||
|
target="_blank"
|
||||||
|
>
|
||||||
|
https://github.com/fugary/simple-element-plus-template
|
||||||
|
</el-link>
|
||||||
|
</span>
|
||||||
|
</el-container>
|
||||||
|
<el-backtop
|
||||||
|
v-common-tooltip="$t('common.label.backtop')"
|
||||||
|
target=".home-main"
|
||||||
|
:right="50"
|
||||||
|
:bottom="50"
|
||||||
|
/>
|
||||||
|
</el-main>
|
||||||
|
</el-container>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<style scoped>
|
||||||
|
.tabs-header {
|
||||||
|
padding-top: 6px !important;
|
||||||
|
height: auto !important;
|
||||||
|
border-bottom: none !important;
|
||||||
|
box-shadow: none !important;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
@@ -39,6 +39,7 @@ const serializer = {
|
|||||||
*/
|
*/
|
||||||
export const useTabsViewStore = defineStore('tabsView', () => {
|
export const useTabsViewStore = defineStore('tabsView', () => {
|
||||||
const isTabMode = ref(false)
|
const isTabMode = ref(false)
|
||||||
|
const isMainMaximized = ref(false)
|
||||||
const isCachedTabMode = ref(true)
|
const isCachedTabMode = ref(true)
|
||||||
const isShowTabIcon = ref(true)
|
const isShowTabIcon = ref(true)
|
||||||
const currentTab = ref('')
|
const currentTab = ref('')
|
||||||
@@ -204,6 +205,10 @@ export const useTabsViewStore = defineStore('tabsView', () => {
|
|||||||
})
|
})
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
isMainMaximized,
|
||||||
|
toggleMainFullscreen () {
|
||||||
|
isMainMaximized.value = !isMainMaximized.value
|
||||||
|
},
|
||||||
isTabMode,
|
isTabMode,
|
||||||
isCachedTabMode,
|
isCachedTabMode,
|
||||||
isShowTabIcon,
|
isShowTabIcon,
|
||||||
|
|||||||
@@ -1,105 +1,78 @@
|
|||||||
<script setup>
|
<script setup>
|
||||||
import LeftMenu from '@/layout/LeftMenu.vue'
|
import LeftMenu from '@/layout/LeftMenu.vue'
|
||||||
import TopNav from '@/layout/TopNav.vue'
|
import MainContent from '@/layout/MainContent.vue'
|
||||||
import { useGlobalConfigStore } from '@/stores/GlobalConfigStore'
|
|
||||||
import { useTabsViewStore } from '@/stores/TabsViewStore'
|
|
||||||
import { GlobalLayoutMode } from '@/consts/GlobalConstants'
|
|
||||||
import { computed } from 'vue'
|
|
||||||
import GlobalSettings from '@/views/components/global/GlobalSettings.vue'
|
import GlobalSettings from '@/views/components/global/GlobalSettings.vue'
|
||||||
|
import { useGlobalConfigStore } from '@/stores/GlobalConfigStore'
|
||||||
|
import { GlobalLayoutMode } from '@/consts/GlobalConstants'
|
||||||
|
import { computed, ref } from 'vue'
|
||||||
import { useMenuConfigStore } from '@/stores/MenuConfigStore'
|
import { useMenuConfigStore } from '@/stores/MenuConfigStore'
|
||||||
import { useBreadcrumbConfigStore } from '@/stores/BreadcrumbConfigStore'
|
import { useTabModeScrollSaver } from '@/route/RouteUtils'
|
||||||
import { APP_VERSION } from '@/config'
|
|
||||||
import { useTabModeScrollSaver, getParentRootKey } from '@/route/RouteUtils'
|
|
||||||
|
|
||||||
const globalConfigStore = useGlobalConfigStore()
|
const globalConfigStore = useGlobalConfigStore()
|
||||||
const tabsViewStore = useTabsViewStore()
|
|
||||||
const breadcrumbConfigStore = useBreadcrumbConfigStore()
|
|
||||||
const showLeftMenu = computed(() => {
|
const showLeftMenu = computed(() => {
|
||||||
return globalConfigStore.layoutMode === GlobalLayoutMode.LEFT
|
return globalConfigStore.layoutMode === GlobalLayoutMode.LEFT
|
||||||
})
|
})
|
||||||
|
const leftMenuAsideRef = ref(null)
|
||||||
|
|
||||||
|
const handleDragEnd = () => {
|
||||||
|
if (leftMenuAsideRef.value) {
|
||||||
|
const width = leftMenuAsideRef.value.$el.offsetWidth
|
||||||
|
if (width < 100) {
|
||||||
|
globalConfigStore.isCollapseLeft = true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
useTabModeScrollSaver()
|
useTabModeScrollSaver()
|
||||||
useMenuConfigStore().loadBusinessMenus()
|
useMenuConfigStore().loadBusinessMenus()
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<el-container class="index-container">
|
<el-container class="index-container">
|
||||||
<el-aside
|
<common-split
|
||||||
v-if="showLeftMenu"
|
v-if="showLeftMenu"
|
||||||
class="index-aside menu"
|
:disabled="globalConfigStore.isCollapseLeft"
|
||||||
width="auto"
|
:class="{ 'collapsed-split': globalConfigStore.isCollapseLeft }"
|
||||||
|
:sizes="[20, 80]"
|
||||||
|
:min-size="[60, 500]"
|
||||||
|
:max-size="[500, Infinity]"
|
||||||
|
class="flex-grow"
|
||||||
|
@drag-end="handleDragEnd"
|
||||||
>
|
>
|
||||||
<left-menu />
|
<template #split-0>
|
||||||
</el-aside>
|
<el-aside
|
||||||
<el-container>
|
ref="leftMenuAsideRef"
|
||||||
<el-header>
|
class="index-aside menu"
|
||||||
<top-nav />
|
width="auto"
|
||||||
</el-header>
|
style="height: 100%; width: 100% !important;"
|
||||||
<el-header
|
>
|
||||||
v-if="globalConfigStore.layoutMode === GlobalLayoutMode.TOP && globalConfigStore.isShowBreadcrumb"
|
<left-menu class="height100" />
|
||||||
class="tabs-header"
|
</el-aside>
|
||||||
>
|
</template>
|
||||||
<common-breadcrumb
|
<template #split-1>
|
||||||
:show-icon="tabsViewStore.isShowTabIcon"
|
<main-content class="height100" />
|
||||||
:label-config="breadcrumbConfigStore.breadcrumbConfig"
|
</template>
|
||||||
/>
|
</common-split>
|
||||||
</el-header>
|
|
||||||
<el-header
|
<main-content v-else />
|
||||||
v-if="tabsViewStore.isTabMode"
|
<global-settings />
|
||||||
class="tabs-header tabMode"
|
|
||||||
>
|
|
||||||
<common-tabs-view />
|
|
||||||
</el-header>
|
|
||||||
<el-main class="home-main">
|
|
||||||
<router-view v-slot="{ Component, route }">
|
|
||||||
<transition
|
|
||||||
:name="route.meta?.transition!==false?'slide-fade':''"
|
|
||||||
mode="out-in"
|
|
||||||
>
|
|
||||||
<KeepAlive
|
|
||||||
v-if="tabsViewStore.isTabMode&&tabsViewStore.isCachedTabMode"
|
|
||||||
:include="tabsViewStore.cachedTabs"
|
|
||||||
:max="tabsViewStore.maxCacheCount"
|
|
||||||
>
|
|
||||||
<component
|
|
||||||
:is="Component"
|
|
||||||
:key="getParentRootKey(route)"
|
|
||||||
/>
|
|
||||||
</KeepAlive>
|
|
||||||
<component
|
|
||||||
:is="Component"
|
|
||||||
v-else
|
|
||||||
:key="route.fullPath"
|
|
||||||
/>
|
|
||||||
</transition>
|
|
||||||
</router-view>
|
|
||||||
<el-container class="text-center padding-10 flex-center">
|
|
||||||
<span>
|
|
||||||
<el-text>Copyright © 2024 Version: {{ APP_VERSION }}</el-text>
|
|
||||||
<el-link
|
|
||||||
href="https://github.com/fugary/simple-element-plus-template"
|
|
||||||
type="primary"
|
|
||||||
target="_blank"
|
|
||||||
>
|
|
||||||
https://github.com/fugary/simple-element-plus-template
|
|
||||||
</el-link>
|
|
||||||
</span>
|
|
||||||
</el-container>
|
|
||||||
<el-backtop
|
|
||||||
v-common-tooltip="$t('common.label.backtop')"
|
|
||||||
target=".home-main"
|
|
||||||
:right="50"
|
|
||||||
:bottom="50"
|
|
||||||
/>
|
|
||||||
</el-main>
|
|
||||||
<global-settings />
|
|
||||||
</el-container>
|
|
||||||
</el-container>
|
</el-container>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<style scoped>
|
<style scoped>
|
||||||
.tabs-header {
|
.index-container {
|
||||||
padding-top: 6px !important;
|
height: 100vh;
|
||||||
height: auto !important;
|
overflow: hidden;
|
||||||
border-bottom: none !important;
|
}
|
||||||
box-shadow: none !important;
|
.index-aside {
|
||||||
|
background-color: var(--el-bg-color-overlay);
|
||||||
|
border-right: none;
|
||||||
|
}
|
||||||
|
:deep(.collapsed-split.is-disabled > .split-pane:first-child) {
|
||||||
|
width: 64px !important;
|
||||||
|
}
|
||||||
|
:deep(.common-split:not(.is-dragging) > .split-pane) {
|
||||||
|
will-change: width;
|
||||||
|
transition: width 0.3s cubic-bezier(0.25, 0.8, 0.5, 1);
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
Reference in New Issue
Block a user