Prechádzať zdrojové kódy

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

icssoa 4 mesiacov pred
rodič
commit
a61d90841d

+ 3 - 3
uni_modules/cool-ui/components/cl-picker-view/cl-picker-view.uvue

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