diff --git a/components.d.ts b/components.d.ts index e28e3f28..6dd7be23 100644 --- a/components.d.ts +++ b/components.d.ts @@ -57,6 +57,7 @@ declare module 'vue' { IconFluentCheckmarkCircle16Regular: typeof import('~icons/fluent/checkmark-circle16-regular')['default'] IconFluentCheckmarkCircle20Filled: typeof import('~icons/fluent/checkmark-circle20-filled')['default'] IconFluentCheckmarkCircle20Regular: typeof import('~icons/fluent/checkmark-circle20-regular')['default'] + IconFluentChevronDown20Regular: typeof import('~icons/fluent/chevron-down20-regular')['default'] IconFluentChevronLeft20Filled: typeof import('~icons/fluent/chevron-left20-filled')['default'] IconFluentChevronLeft28Filled: typeof import('~icons/fluent/chevron-left28-filled')['default'] IconFluentCrown20Regular: typeof import('~icons/fluent/crown20-regular')['default'] diff --git a/src/components/Header.vue b/src/components/Header.vue index 60c61461..84028ae8 100644 --- a/src/components/Header.vue +++ b/src/components/Header.vue @@ -3,15 +3,23 @@ import BackIcon from "@/components/BackIcon.vue"; import { useAttrs } from "vue"; -defineProps<{ +interface IProps { title: string; -}>() + showBackIcon?: boolean; +} + +withDefaults(defineProps(), { + title: '', + showBackIcon: true, +}) + + const attrs = useAttrs() diff --git a/src/pages/word/WordsPage.vue b/src/pages/word/WordsPage.vue index 5441f55e..80db19da 100644 --- a/src/pages/word/WordsPage.vue +++ b/src/pages/word/WordsPage.vue @@ -1,28 +1,29 @@