cl-picker-view 参数 itemHeight 在 ios 端默认为50
This commit is contained in:
@@ -85,7 +85,7 @@ const props = defineProps({
|
|||||||
// 选择器选项高度
|
// 选择器选项高度
|
||||||
itemHeight: {
|
itemHeight: {
|
||||||
type: Number,
|
type: Number,
|
||||||
default: 42
|
default: isAppIOS() ? 50 : 42
|
||||||
},
|
},
|
||||||
// 选择器高度
|
// 选择器高度
|
||||||
height: {
|
height: {
|
||||||
@@ -107,8 +107,8 @@ const headers = computed(() => {
|
|||||||
// 遮罩层样式
|
// 遮罩层样式
|
||||||
const maskStyle = computed(() => {
|
const maskStyle = computed(() => {
|
||||||
if (isDark.value) {
|
if (isDark.value) {
|
||||||
if(isAppIOS()) {
|
if (isAppIOS()) {
|
||||||
return `background-color: rgba(0, 0, 0, 0);`
|
return `background-color: rgba(0, 0, 0, 0);`;
|
||||||
}
|
}
|
||||||
|
|
||||||
return `background-image: linear-gradient(
|
return `background-image: linear-gradient(
|
||||||
|
|||||||
Reference in New Issue
Block a user