cl-picker-view 参数 itemHeight 在 ios 端默认为50

This commit is contained in:
icssoa
2025-11-12 11:00:00 +08:00
parent ce1fbd6010
commit a61d90841d

View File

@@ -85,7 +85,7 @@ const props = defineProps({
// 选择器选项高度
itemHeight: {
type: Number,
default: 42
default: isAppIOS() ? 50 : 42
},
// 选择器高度
height: {
@@ -108,7 +108,7 @@ const headers = computed(() => {
const maskStyle = computed(() => {
if (isDark.value) {
if (isAppIOS()) {
return `background-color: rgba(0, 0, 0, 0);`
return `background-color: rgba(0, 0, 0, 0);`;
}
return `background-image: linear-gradient(