uniapp【修复】: 修复页面容器冲突

This commit is contained in:
21世纪小八路
2024-11-04 22:42:09 +08:00
2 changed files with 33 additions and 33 deletions

View File

@@ -19,17 +19,18 @@
const _useLoginStore = useLoginStore();
const props = withDefaults(defineProps<{
isBack : boolean,
bgColor : string,
titleColor : string,
mode : "left" | "center",
title : string,
isShowStatusBarHeight : boolean;
customStyle : any;
contentStyle : any;
handleCustomRouteJump : () => void | null,
showLoginModalDom : boolean;
placeholder : boolean;
isBack ?: boolean,
bgColor ?: string,
titleColor ?: string,
mode ?: "left" | "center",
title ?: string,
isShowStatusBarHeight ?: boolean;
customStyle ?: any;
contentStyle ?: any;
handleCustomRouteJump ?: () => void,
showLoginModalDom ?: boolean;
placeholder ?: boolean;
}>(), {
isBack: true,
bgColor: '#eef2f6',
@@ -39,7 +40,6 @@
isShowStatusBarHeight: true,
customStyle: {},
contentStyle: {},
handleCustomRouteJump: null,
showLoginModalDom: false,
placeholder: true,
});

View File

@@ -20,26 +20,27 @@
</template>
<script setup lang="ts">
const props = withDefaults(defineProps<{
isBack : boolean,
bgColor : string,
titleColor : string,
mode : "left"| "center",
title : string;
isShowStatusBarHeight : boolean;
customStyle : any;
contentStyle : any;
handleCustomRouteJump : () => void | null,
showLoginModalDom : boolean;
needSkeleton : boolean;
isBack ?: boolean,
bgColor ?: string,
titleColor ?: string,
mode ?: "left" | "center",
title ?: string;
isShowStatusBarHeight ?: boolean;
customStyle ?: any;
contentStyle ?: any;
handleCustomRouteJump ?: () => void,
showLoginModalDom ?: boolean;
needSkeleton ?: boolean;
skeleton ?: Array<{ [key : string] : any }>;
skeletonLoading : boolean;
placeholder : boolean;
loadingPage : boolean;
needLoadingPage : boolean;
loadingText : string;
loadingTextFontSize : string;
loadingBgColor : string;
loadingColor : string;
skeletonLoading ?: boolean;
placeholder ?: boolean;
loadingPage ?: boolean;
needLoadingPage ?: boolean;
loadingText ?: string;
loadingTextFontSize ?: string;
loadingBgColor ?: string;
loadingColor ?: string;
}>(), {
isBack: true,
bgColor: '#eef2f6',
@@ -49,7 +50,6 @@
isShowStatusBarHeight: true,
customStyle: {},
contentStyle: {},
handleCustomRouteJump: null,
showLoginModalDom: false,
needSkeleton: false,
skeleton: [],
@@ -67,4 +67,4 @@
.coreshop-skeleton {
background-color: #fff;
}
</style>
</style>