Fix content module warnings (#21839)

* Don't inherit attrs

* Mark optional as default is set
This commit is contained in:
ian
2024-03-13 23:20:01 +08:00
committed by GitHub
parent 7bea23b7f5
commit 17c54b71ea
2 changed files with 3 additions and 1 deletions

View File

@@ -16,6 +16,8 @@ export interface Props {
suffix?: boolean;
}
defineOptions({ inheritAttrs: false });
const props = withDefaults(defineProps<Props>(), {
format: 'long',
relative: false,

View File

@@ -8,7 +8,7 @@ import { useI18n } from 'vue-i18n';
const props = withDefaults(
defineProps<{
modelValue: string | null;
showFilter: boolean;
showFilter?: boolean;
collection?: string;
filter?: Filter | null;
}>(),