fix: 🐛 eslint 校验 no-required-prop-with-default 错误修复

This commit is contained in:
Ray.Hao
2025-03-11 18:14:58 +08:00
parent 5123465fc0
commit b0bbf3e59d
2 changed files with 0 additions and 2 deletions

View File

@@ -18,7 +18,6 @@
<script setup lang="ts"> <script setup lang="ts">
const props = defineProps({ const props = defineProps({
total: { total: {
required: true,
type: Number as PropType<number>, type: Number as PropType<number>,
default: 0, default: 0,
}, },

View File

@@ -51,7 +51,6 @@ import variables from "@/styles/variables.module.scss";
const props = defineProps({ const props = defineProps({
data: { data: {
type: Array<RouteRecordRaw>, type: Array<RouteRecordRaw>,
required: true,
default: () => [], default: () => [],
}, },
basePath: { basePath: {