Skip to content

Commit

Permalink
optimize(projects): add type WatermarkProps
Browse files Browse the repository at this point in the history
  • Loading branch information
honghuangdc committed Jul 30, 2024
1 parent eed617f commit f26d0a6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/App.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<script setup lang="ts">
import { computed } from 'vue';
import { NConfigProvider, darkTheme } from 'naive-ui';
import type { WatermarkProps } from 'naive-ui';
import { useAppStore } from './store/modules/app';
import { useThemeStore } from './store/modules/theme';
import { naiveDateLocales, naiveLocales } from './locales/naive';
Expand All @@ -22,7 +23,7 @@ const naiveDateLocale = computed(() => {
return naiveDateLocales[appStore.locale];
});
const watermarkProps = computed(() => {
const watermarkProps = computed<WatermarkProps>(() => {
return {
content: themeStore.watermark.text,
cross: true,
Expand Down

0 comments on commit f26d0a6

Please sign in to comment.