|
@@ -2,6 +2,7 @@
|
|
|
import { SUPPORT_LANGUAGES } from '@vben/constants';
|
|
import { SUPPORT_LANGUAGES } from '@vben/constants';
|
|
|
import { $t } from '@vben/locales';
|
|
import { $t } from '@vben/locales';
|
|
|
|
|
|
|
|
|
|
+import InputItem from '../input-item.vue';
|
|
|
import SelectItem from '../select-item.vue';
|
|
import SelectItem from '../select-item.vue';
|
|
|
import SwitchItem from '../switch-item.vue';
|
|
import SwitchItem from '../switch-item.vue';
|
|
|
|
|
|
|
@@ -12,6 +13,7 @@ defineOptions({
|
|
|
const appLocale = defineModel<string>('appLocale');
|
|
const appLocale = defineModel<string>('appLocale');
|
|
|
const appDynamicTitle = defineModel<boolean>('appDynamicTitle');
|
|
const appDynamicTitle = defineModel<boolean>('appDynamicTitle');
|
|
|
const appWatermark = defineModel<boolean>('appWatermark');
|
|
const appWatermark = defineModel<boolean>('appWatermark');
|
|
|
|
|
+const appWatermarkContent = defineModel<string>('appWatermarkContent');
|
|
|
const appEnableCheckUpdates = defineModel<boolean>('appEnableCheckUpdates');
|
|
const appEnableCheckUpdates = defineModel<boolean>('appEnableCheckUpdates');
|
|
|
</script>
|
|
</script>
|
|
|
|
|
|
|
@@ -22,9 +24,23 @@ const appEnableCheckUpdates = defineModel<boolean>('appEnableCheckUpdates');
|
|
|
<SwitchItem v-model="appDynamicTitle">
|
|
<SwitchItem v-model="appDynamicTitle">
|
|
|
{{ $t('preferences.dynamicTitle') }}
|
|
{{ $t('preferences.dynamicTitle') }}
|
|
|
</SwitchItem>
|
|
</SwitchItem>
|
|
|
- <SwitchItem v-model="appWatermark">
|
|
|
|
|
|
|
+ <SwitchItem
|
|
|
|
|
+ v-model="appWatermark"
|
|
|
|
|
+ @update:model-value="
|
|
|
|
|
+ (val) => {
|
|
|
|
|
+ if (!val) appWatermarkContent = '';
|
|
|
|
|
+ }
|
|
|
|
|
+ "
|
|
|
|
|
+ >
|
|
|
{{ $t('preferences.watermark') }}
|
|
{{ $t('preferences.watermark') }}
|
|
|
</SwitchItem>
|
|
</SwitchItem>
|
|
|
|
|
+ <InputItem
|
|
|
|
|
+ v-if="appWatermark"
|
|
|
|
|
+ v-model="appWatermarkContent"
|
|
|
|
|
+ :placeholder="$t('preferences.watermarkContent')"
|
|
|
|
|
+ >
|
|
|
|
|
+ {{ $t('preferences.watermarkContent') }}
|
|
|
|
|
+ </InputItem>
|
|
|
<SwitchItem v-model="appEnableCheckUpdates">
|
|
<SwitchItem v-model="appEnableCheckUpdates">
|
|
|
{{ $t('preferences.checkUpdates') }}
|
|
{{ $t('preferences.checkUpdates') }}
|
|
|
</SwitchItem>
|
|
</SwitchItem>
|