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

View File

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