diff --git a/src/layout/components/lay-notice/components/NoticeItem.vue b/src/layout/components/lay-notice/components/NoticeItem.vue index 6fb2d371a4..823d9cd8a8 100644 --- a/src/layout/components/lay-notice/components/NoticeItem.vue +++ b/src/layout/components/lay-notice/components/NoticeItem.vue @@ -4,7 +4,7 @@ import { ref, PropType, nextTick } from "vue"; import { useNav } from "@/layout/hooks/useNav"; import { deviceDetection } from "@pureadmin/utils"; -const props = defineProps({ +defineProps({ noticeItem: { type: Object as PropType, default: () => {} diff --git a/src/layout/components/lay-search/components/SearchFooter.vue b/src/layout/components/lay-search/components/SearchFooter.vue index 762e909791..d8350d0feb 100644 --- a/src/layout/components/lay-search/components/SearchFooter.vue +++ b/src/layout/components/lay-search/components/SearchFooter.vue @@ -6,7 +6,7 @@ import EnterOutlined from "@/assets/svg/enter_outlined.svg?component"; import ArrowUpLine from "@iconify-icons/ri/arrow-up-line"; import ArrowDownLine from "@iconify-icons/ri/arrow-down-line"; -const props = withDefaults(defineProps<{ total: number }>(), { +withDefaults(defineProps<{ total: number }>(), { total: 0 }); diff --git a/src/layout/components/lay-sidebar/components/SidebarCenterCollapse.vue b/src/layout/components/lay-sidebar/components/SidebarCenterCollapse.vue index 1733e692d2..0f41fcca43 100644 --- a/src/layout/components/lay-sidebar/components/SidebarCenterCollapse.vue +++ b/src/layout/components/lay-sidebar/components/SidebarCenterCollapse.vue @@ -10,7 +10,7 @@ interface Props { isActive: boolean; } -const props = withDefaults(defineProps(), { +withDefaults(defineProps(), { isActive: false }); diff --git a/src/layout/components/lay-sidebar/components/SidebarExtraIcon.vue b/src/layout/components/lay-sidebar/components/SidebarExtraIcon.vue index 7cdc2a362c..7cad16e60d 100644 --- a/src/layout/components/lay-sidebar/components/SidebarExtraIcon.vue +++ b/src/layout/components/lay-sidebar/components/SidebarExtraIcon.vue @@ -2,7 +2,7 @@ import { toRaw } from "vue"; import { useRenderIcon } from "@/components/ReIcon/src/hooks"; -const props = defineProps({ +defineProps({ extraIcon: { type: String, default: "" diff --git a/src/layout/components/lay-sidebar/components/SidebarLeftCollapse.vue b/src/layout/components/lay-sidebar/components/SidebarLeftCollapse.vue index dc3a6cc33e..c007d3b8ac 100644 --- a/src/layout/components/lay-sidebar/components/SidebarLeftCollapse.vue +++ b/src/layout/components/lay-sidebar/components/SidebarLeftCollapse.vue @@ -10,7 +10,7 @@ interface Props { isActive: boolean; } -const props = withDefaults(defineProps(), { +withDefaults(defineProps(), { isActive: false }); diff --git a/src/layout/components/lay-sidebar/components/SidebarLogo.vue b/src/layout/components/lay-sidebar/components/SidebarLogo.vue index ab1a4b4383..0441f52f3f 100644 --- a/src/layout/components/lay-sidebar/components/SidebarLogo.vue +++ b/src/layout/components/lay-sidebar/components/SidebarLogo.vue @@ -2,7 +2,7 @@ import { getTopMenu } from "@/router/utils"; import { useNav } from "@/layout/hooks/useNav"; -const props = defineProps({ +defineProps({ collapse: Boolean }); diff --git a/src/layout/components/lay-sidebar/components/SidebarTopCollapse.vue b/src/layout/components/lay-sidebar/components/SidebarTopCollapse.vue index 351182294d..c2f1b5ad0d 100644 --- a/src/layout/components/lay-sidebar/components/SidebarTopCollapse.vue +++ b/src/layout/components/lay-sidebar/components/SidebarTopCollapse.vue @@ -7,7 +7,7 @@ interface Props { isActive: boolean; } -const props = withDefaults(defineProps(), { +withDefaults(defineProps(), { isActive: false });