优化 ios 样式兼容

This commit is contained in:
icssoa
2025-09-03 10:01:28 +08:00
parent 2f054c6638
commit 6d75de2cc7
17 changed files with 165 additions and 234 deletions

View File

@@ -50,7 +50,7 @@
<script lang="ts" setup>
import { computed, ref, watch } from "vue";
import { isDark, parseClass, parsePt } from "@/cool";
import { isDark, parseClass, parsePt, rpx2px } from "@/cool";
import type { PassThroughProps } from "../../types";
import { vibrate } from "@/uni_modules/cool-vibrate";
import { useForm } from "../../hooks";
@@ -145,7 +145,7 @@ const rect = computed<Rect>(() => {
width: width + "rpx",
size: size + "rpx",
left: left + "rpx",
translateX: translateX + "rpx"
translateX: rpx2px(translateX) + "px"
};
});