提交 97a86820 authored 作者: 王鹏飞's avatar 王鹏飞

feat: 优化响应式设计中的内边距逻辑

上级 0f44358c
<script setup lang="ts">
const isMobile = useMediaQuery('(max-width: 767px)')
const isIframe = computed(() => {
return window.self !== window.top
})
const padding = computed(() => {
if (isIframe.value) return '0 10px'
if (typeof window !== 'undefined' && window.innerWidth < 768) return '6px'
if (isIframe.value) return isMobile.value ? '0' : '0 0 0 10px'
return '10px'
})
</script>
......
Markdown 格式
0% 或
您添加了 0 人 到此讨论。请谨慎行事。
请先完成此评论的编辑!
请 注册 或者 后发表评论