uniapp【修复】: 调整navbar属性可为空,解决App真机调试出现很多必须属性警告

This commit is contained in:
21世纪小八路
2024-11-03 14:10:30 +08:00
parent d0c5769902
commit 2c5ab4f91a

View File

@@ -26,13 +26,13 @@
const { menuButtonHeight } = useSystemInfo(); const { menuButtonHeight } = useSystemInfo();
const props = withDefaults(defineProps<{ const props = withDefaults(defineProps<{
isBack : boolean, isBack ?: boolean,
bgColor : string, bgColor ?: string,
titleColor : string, titleColor ?: string,
mode : string, mode ?: string,
title : string, title ?: string,
handleCustomRouteJump : () => void | null, handleCustomRouteJump ?: () => void | null,
placeholder : boolean; placeholder ?: boolean;
}>(), { }>(), {
isBack: true, isBack: true,
bgColor: '#eef2f6', bgColor: '#eef2f6',