mirror of
https://github.com/zclzone/vue-naive-admin.git
synced 2025-05-01 06:39:01 +08:00
feat: 增加 layoutSettingVisible 控制 LayoutSetting 显示隐藏
This commit is contained in:
parent
eca0859f66
commit
995175a8a8
@ -21,13 +21,14 @@
|
|||||||
</KeepAlive>
|
</KeepAlive>
|
||||||
</component>
|
</component>
|
||||||
|
|
||||||
<LayoutSetting class="fixed right-12 top-1/2 z-999" />
|
<LayoutSetting v-if="layoutSettingVisible" class="fixed right-12 top-1/2 z-999" />
|
||||||
</router-view>
|
</router-view>
|
||||||
</n-config-provider>
|
</n-config-provider>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
import { darkTheme, dateZhCN, zhCN } from 'naive-ui'
|
import { darkTheme, dateZhCN, zhCN } from 'naive-ui'
|
||||||
|
import { layoutSettingVisible } from './settings'
|
||||||
import { LayoutSetting } from '@/components'
|
import { LayoutSetting } from '@/components'
|
||||||
import { useAppStore, useTabStore } from '@/store'
|
import { useAppStore, useTabStore } from '@/store'
|
||||||
|
|
||||||
|
@ -10,6 +10,9 @@ export const defaultLayout = 'normal'
|
|||||||
|
|
||||||
export const defaultPrimaryColor = '#316C72'
|
export const defaultPrimaryColor = '#316C72'
|
||||||
|
|
||||||
|
// 控制 LayoutSetting 组件是否可见
|
||||||
|
export const layoutSettingVisible = true
|
||||||
|
|
||||||
export const naiveThemeOverrides = {
|
export const naiveThemeOverrides = {
|
||||||
common: {
|
common: {
|
||||||
primaryColor: '#316C72FF',
|
primaryColor: '#316C72FF',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user