Skip to content

Commit f26d0a6

Browse files
committed
optimize(projects): add type WatermarkProps
1 parent eed617f commit f26d0a6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/App.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<script setup lang="ts">
22
import { computed } from 'vue';
33
import { NConfigProvider, darkTheme } from 'naive-ui';
4+
import type { WatermarkProps } from 'naive-ui';
45
import { useAppStore } from './store/modules/app';
56
import { useThemeStore } from './store/modules/theme';
67
import { naiveDateLocales, naiveLocales } from './locales/naive';
@@ -22,7 +23,7 @@ const naiveDateLocale = computed(() => {
2223
return naiveDateLocales[appStore.locale];
2324
});
2425
25-
const watermarkProps = computed(() => {
26+
const watermarkProps = computed<WatermarkProps>(() => {
2627
return {
2728
content: themeStore.watermark.text,
2829
cross: true,

0 commit comments

Comments
 (0)