mirror of
https://github.com/vbenjs/vue-vben-admin.git
synced 2025-08-28 05:39:34 +08:00
feat(layout): add mix sidebar mode
This commit is contained in:
@@ -3,14 +3,10 @@
|
||||
* @Description: logo component
|
||||
-->
|
||||
<template>
|
||||
<div
|
||||
class="anticon"
|
||||
:class="[prefixCls, theme, { 'collapsed-show-title': getCollapsedShowTitle }]"
|
||||
@click="handleGoHome"
|
||||
>
|
||||
<div class="anticon" :class="[prefixCls, theme]" @click="handleGoHome">
|
||||
<img src="/@/assets/images/logo.png" />
|
||||
<div class="ml-2 ellipsis" :class="[`${prefixCls}__title`]" v-show="showTitle">
|
||||
{{ globSetting.title }}
|
||||
{{ title }}
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
@@ -40,9 +36,7 @@
|
||||
setup() {
|
||||
const { prefixCls } = useDesign('app-logo');
|
||||
|
||||
const { getCollapsedShowTitle } = useMenuSetting();
|
||||
|
||||
const globSetting = useGlobSetting();
|
||||
const { title } = useGlobSetting();
|
||||
|
||||
const go = useGo();
|
||||
|
||||
@@ -52,8 +46,7 @@
|
||||
|
||||
return {
|
||||
handleGoHome,
|
||||
globSetting,
|
||||
getCollapsedShowTitle,
|
||||
title,
|
||||
prefixCls,
|
||||
};
|
||||
},
|
||||
@@ -70,10 +63,6 @@
|
||||
cursor: pointer;
|
||||
transition: all 0.2s ease;
|
||||
|
||||
&.collapsed-show-title {
|
||||
padding-left: 20px;
|
||||
}
|
||||
|
||||
&.light {
|
||||
border-bottom: 1px solid @border-color-base;
|
||||
}
|
||||
|
@@ -65,10 +65,12 @@
|
||||
import { useI18n } from '/@/hooks/web/useI18n';
|
||||
import { ClickOutSide } from '/@/components/ClickOutSide';
|
||||
import { useAppInject } from '/@/hooks/web/useAppInject';
|
||||
|
||||
export default defineComponent({
|
||||
name: 'AppSearchModal',
|
||||
components: { SearchOutlined, ClickOutSide, AppSearchFooter },
|
||||
emits: ['close'],
|
||||
|
||||
props: {
|
||||
visible: Boolean,
|
||||
},
|
||||
|
Reference in New Issue
Block a user