瀏覽代碼

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

icssoa 4 月之前
父節點
當前提交
a61d90841d
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3 3
      uni_modules/cool-ui/components/cl-picker-view/cl-picker-view.uvue

+ 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(