fix: 🐛 eslint 校验 no-required-prop-with-default 错误修复
This commit is contained in:
@@ -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,
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -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: {
|
||||||
|
|||||||
Reference in New Issue
Block a user