✨ Added window snapping function toggle
This commit is contained in:
@@ -134,6 +134,7 @@ export default {
|
|||||||
showInSystemTray: 'Show in System Tray',
|
showInSystemTray: 'Show in System Tray',
|
||||||
enableSystemTray: 'Enable System Tray',
|
enableSystemTray: 'Enable System Tray',
|
||||||
alwaysOnTop: 'Always on Top',
|
alwaysOnTop: 'Always on Top',
|
||||||
|
enableWindowSnap: 'Enable Window Snapping',
|
||||||
startup: 'Startup Settings',
|
startup: 'Startup Settings',
|
||||||
startAtLogin: 'Start at Login',
|
startAtLogin: 'Start at Login',
|
||||||
dataStorage: 'Data Storage',
|
dataStorage: 'Data Storage',
|
||||||
|
|||||||
@@ -135,6 +135,7 @@ export default {
|
|||||||
showInSystemTray: '在系统托盘中显示',
|
showInSystemTray: '在系统托盘中显示',
|
||||||
enableSystemTray: '启用系统托盘',
|
enableSystemTray: '启用系统托盘',
|
||||||
alwaysOnTop: '窗口始终置顶',
|
alwaysOnTop: '窗口始终置顶',
|
||||||
|
enableWindowSnap: '启用窗口吸附',
|
||||||
startup: '启动设置',
|
startup: '启动设置',
|
||||||
startAtLogin: '开机自启动',
|
startAtLogin: '开机自启动',
|
||||||
dataStorage: '数据存储',
|
dataStorage: '数据存储',
|
||||||
|
|||||||
@@ -159,6 +159,12 @@ const enableSystemTray = computed({
|
|||||||
set: (value: boolean) => configStore.setEnableSystemTray(value)
|
set: (value: boolean) => configStore.setEnableSystemTray(value)
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// 计算属性 - 启用窗口吸附
|
||||||
|
const enableWindowSnap = computed({
|
||||||
|
get: () => configStore.config.general.enableWindowSnap,
|
||||||
|
set: (value: boolean) => configStore.setEnableWindowSnap(value)
|
||||||
|
});
|
||||||
|
|
||||||
// 计算属性 - 开机启动
|
// 计算属性 - 开机启动
|
||||||
const startAtLogin = computed({
|
const startAtLogin = computed({
|
||||||
get: () => configStore.config.general.startAtLogin,
|
get: () => configStore.config.general.startAtLogin,
|
||||||
@@ -334,6 +340,9 @@ onUnmounted(() => {
|
|||||||
<SettingItem :title="t('settings.enableSystemTray')">
|
<SettingItem :title="t('settings.enableSystemTray')">
|
||||||
<ToggleSwitch v-model="enableSystemTray"/>
|
<ToggleSwitch v-model="enableSystemTray"/>
|
||||||
</SettingItem>
|
</SettingItem>
|
||||||
|
<SettingItem :title="t('settings.enableWindowSnap')">
|
||||||
|
<ToggleSwitch v-model="enableWindowSnap"/>
|
||||||
|
</SettingItem>
|
||||||
</SettingSection>
|
</SettingSection>
|
||||||
|
|
||||||
<SettingSection :title="t('settings.startup')">
|
<SettingSection :title="t('settings.startup')">
|
||||||
|
|||||||
Reference in New Issue
Block a user