前后端全面升级

This commit is contained in:
pycook
2023-07-10 17:42:15 +08:00
parent c444fed436
commit db5ff60aff
629 changed files with 97789 additions and 23995 deletions

View File

@@ -0,0 +1,73 @@
<template>
<div class="two-column-layout" :style="{ height: `${windowHeight - 64}px` }">
<SplitPane
:min="200"
:max="500"
:paneLengthPixel.sync="paneLengthPixel"
:appName="appName"
:triggerColor="triggerColor"
:triggerLength="18"
>
<template #one>
<div class="two-column-layout-sidebar">
<slot name="one"></slot>
</div>
</template>
<template #two>
<div class="two-column-layout-main">
<slot name="two"></slot>
</div>
</template>
</SplitPane>
</div>
</template>
<script>
import { mapState } from 'vuex'
import SplitPane from '@/components/SplitPane'
export default {
name: 'TwoColumnLayout',
components: { SplitPane },
props: {
appName: {
type: String,
default: '',
},
triggerColor: {
type: String,
default: '#F0F5FF',
},
},
data() {
return {
paneLengthPixel: 204,
}
},
computed: {
...mapState({
windowHeight: (state) => state.windowHeight,
}),
},
}
</script>
<style lang="less" scoped>
.two-column-layout {
margin-bottom: -24px;
width: 100%;
.two-column-layout-sidebar {
height: 100%;
padding: 15px 7px;
border-radius: 15px;
overflow-y: auto;
background-color: #fff;
}
.two-column-layout-main {
height: 100%;
padding: 12px;
background-color: #fff;
overflow-y: auto;
border-radius: 15px;
}
}
</style>

View File

@@ -0,0 +1,2 @@
import TwoColumnLayout from './TwoColumnLayout'
export default TwoColumnLayout