修复 cl-popup 关闭按钮在小程序端的兼容问题

This commit is contained in:
icssoa
2025-10-14 16:33:20 +08:00
parent 5157026002
commit 4cc42eb1fe

View File

@@ -90,8 +90,10 @@
name="close-circle-fill"
:size="40"
:pt="{
className:
'absolute right-[24rpx] text-surface-400 dark:text-surface-50'
className: parseClass([
'absolute right-[24rpx] text-surface-400',
[isDark, 'text-surface-50']
])
}"
@tap="close"
@touchmove.stop
@@ -121,7 +123,7 @@
<script lang="ts" setup>
import { computed, reactive, ref, watch, type PropType } from "vue";
import { getSafeAreaHeight, isAppIOS, parsePt, parseRpx } from "@/cool";
import { getSafeAreaHeight, isAppIOS, parseClass, parsePt, parseRpx } from "@/cool";
import type { ClPopupDirection, PassThroughProps } from "../../types";
import { isDark, router } from "@/cool";
import { config } from "../../config";