mirror of
https://github.com/soybeanjs/soybean-admin.git
synced 2025-09-17 17:26:38 +08:00
feat(projects): add prompt information for scrolling mode and tab bar caching.
This commit is contained in:
parent
4005763c00
commit
29a2a5c66a
@ -19,6 +19,9 @@ const isWrapperScrollMode = computed(() => themeStore.layout.scrollMode === 'wra
|
|||||||
<NDivider>{{ $t('theme.layout.content.title') }}</NDivider>
|
<NDivider>{{ $t('theme.layout.content.title') }}</NDivider>
|
||||||
<TransitionGroup tag="div" name="setting-list" class="flex-col-stretch gap-12px">
|
<TransitionGroup tag="div" name="setting-list" class="flex-col-stretch gap-12px">
|
||||||
<SettingItem key="1" :label="$t('theme.layout.content.scrollMode.title')">
|
<SettingItem key="1" :label="$t('theme.layout.content.scrollMode.title')">
|
||||||
|
<template #suffix>
|
||||||
|
<IconTooltip :desc="$t('theme.layout.content.scrollMode.tip')" />
|
||||||
|
</template>
|
||||||
<NSelect
|
<NSelect
|
||||||
v-model:value="themeStore.layout.scrollMode"
|
v-model:value="themeStore.layout.scrollMode"
|
||||||
:options="translateOptions(themeScrollModeOptions)"
|
:options="translateOptions(themeScrollModeOptions)"
|
||||||
|
@ -27,6 +27,9 @@ const themeStore = useThemeStore();
|
|||||||
<NSwitch v-model:value="themeStore.tab.visible" />
|
<NSwitch v-model:value="themeStore.tab.visible" />
|
||||||
</SettingItem>
|
</SettingItem>
|
||||||
<SettingItem v-if="themeStore.tab.visible" key="2" :label="$t('theme.layout.tab.cache')">
|
<SettingItem v-if="themeStore.tab.visible" key="2" :label="$t('theme.layout.tab.cache')">
|
||||||
|
<template #suffix>
|
||||||
|
<IconTooltip :desc="$t('theme.layout.tab.cacheTip')" />
|
||||||
|
</template>
|
||||||
<NSwitch v-model:value="themeStore.tab.cache" />
|
<NSwitch v-model:value="themeStore.tab.cache" />
|
||||||
</SettingItem>
|
</SettingItem>
|
||||||
<SettingItem v-if="themeStore.tab.visible" key="3" :label="$t('theme.layout.tab.height')">
|
<SettingItem v-if="themeStore.tab.visible" key="3" :label="$t('theme.layout.tab.height')">
|
||||||
|
@ -109,6 +109,7 @@ const local: App.I18n.Schema = {
|
|||||||
title: 'Tab Settings',
|
title: 'Tab Settings',
|
||||||
visible: 'Tab Visible',
|
visible: 'Tab Visible',
|
||||||
cache: 'Tag Bar Info Cache',
|
cache: 'Tag Bar Info Cache',
|
||||||
|
cacheTip: 'One-click to open/close global keepalive',
|
||||||
height: 'Tab Height',
|
height: 'Tab Height',
|
||||||
mode: {
|
mode: {
|
||||||
title: 'Tab Mode',
|
title: 'Tab Mode',
|
||||||
@ -144,6 +145,7 @@ const local: App.I18n.Schema = {
|
|||||||
title: 'Content Area Settings',
|
title: 'Content Area Settings',
|
||||||
scrollMode: {
|
scrollMode: {
|
||||||
title: 'Scroll Mode',
|
title: 'Scroll Mode',
|
||||||
|
tip: 'The theme scroll only scrolls the main part, the outer scroll can carry the header and footer together',
|
||||||
wrapper: 'Wrapper',
|
wrapper: 'Wrapper',
|
||||||
content: 'Content'
|
content: 'Content'
|
||||||
},
|
},
|
||||||
|
@ -106,6 +106,7 @@ const local: App.I18n.Schema = {
|
|||||||
title: '标签栏设置',
|
title: '标签栏设置',
|
||||||
visible: '显示标签栏',
|
visible: '显示标签栏',
|
||||||
cache: '标签栏信息缓存',
|
cache: '标签栏信息缓存',
|
||||||
|
cacheTip: '一键开启/关闭全局 keepalive',
|
||||||
height: '标签栏高度',
|
height: '标签栏高度',
|
||||||
mode: {
|
mode: {
|
||||||
title: '标签栏风格',
|
title: '标签栏风格',
|
||||||
@ -141,6 +142,7 @@ const local: App.I18n.Schema = {
|
|||||||
title: '内容区域设置',
|
title: '内容区域设置',
|
||||||
scrollMode: {
|
scrollMode: {
|
||||||
title: '滚动模式',
|
title: '滚动模式',
|
||||||
|
tip: '主题滚动仅 main 部分滚动,外层滚动可携带头部底部一起滚动',
|
||||||
wrapper: '外层滚动',
|
wrapper: '外层滚动',
|
||||||
content: '主体滚动'
|
content: '主体滚动'
|
||||||
},
|
},
|
||||||
|
3
src/typings/app.d.ts
vendored
3
src/typings/app.d.ts
vendored
@ -387,6 +387,7 @@ declare namespace App {
|
|||||||
title: string;
|
title: string;
|
||||||
visible: string;
|
visible: string;
|
||||||
cache: string;
|
cache: string;
|
||||||
|
cacheTip: string;
|
||||||
height: string;
|
height: string;
|
||||||
mode: { title: string } & Record<UnionKey.ThemeTabMode, string>;
|
mode: { title: string } & Record<UnionKey.ThemeTabMode, string>;
|
||||||
};
|
};
|
||||||
@ -416,7 +417,7 @@ declare namespace App {
|
|||||||
};
|
};
|
||||||
content: {
|
content: {
|
||||||
title: string;
|
title: string;
|
||||||
scrollMode: { title: string } & Record<UnionKey.ThemeScrollMode, string>;
|
scrollMode: { title: string; tip: string } & Record<UnionKey.ThemeScrollMode, string>;
|
||||||
page: {
|
page: {
|
||||||
animate: string;
|
animate: string;
|
||||||
mode: { title: string } & Record<UnionKey.ThemePageAnimateMode, string>;
|
mode: { title: string } & Record<UnionKey.ThemePageAnimateMode, string>;
|
||||||
|
Loading…
Reference in New Issue
Block a user