optimize(projects): add type WatermarkProps
This commit is contained in:
parent
eed617f9eb
commit
f26d0a61eb
@ -1,6 +1,7 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { computed } from 'vue';
|
import { computed } from 'vue';
|
||||||
import { NConfigProvider, darkTheme } from 'naive-ui';
|
import { NConfigProvider, darkTheme } from 'naive-ui';
|
||||||
|
import type { WatermarkProps } from 'naive-ui';
|
||||||
import { useAppStore } from './store/modules/app';
|
import { useAppStore } from './store/modules/app';
|
||||||
import { useThemeStore } from './store/modules/theme';
|
import { useThemeStore } from './store/modules/theme';
|
||||||
import { naiveDateLocales, naiveLocales } from './locales/naive';
|
import { naiveDateLocales, naiveLocales } from './locales/naive';
|
||||||
@ -22,7 +23,7 @@ const naiveDateLocale = computed(() => {
|
|||||||
return naiveDateLocales[appStore.locale];
|
return naiveDateLocales[appStore.locale];
|
||||||
});
|
});
|
||||||
|
|
||||||
const watermarkProps = computed(() => {
|
const watermarkProps = computed<WatermarkProps>(() => {
|
||||||
return {
|
return {
|
||||||
content: themeStore.watermark.text,
|
content: themeStore.watermark.text,
|
||||||
cross: true,
|
cross: true,
|
||||||
|
Loading…
Reference in New Issue
Block a user