refactor(数据大屏、仪表板): 优化飞书过滤组件缩放方式

This commit is contained in:
wangjiahao
2025-04-22 12:08:11 +08:00
committed by 王嘉豪
parent 948b950636
commit 45e989218f

View File

@@ -96,6 +96,9 @@ const defaultStyle = {
}
const customStyle = reactive({ ...defaultStyle })
const snapshotStore = snapshotStoreWithOut()
const userAgent = navigator.userAgent.toLowerCase()
// 判断是否为飞书内置浏览器
const isFeiShu = /lark/i.test(userAgent)
const btnStyle = computed(() => {
const style = {
@@ -772,7 +775,7 @@ const marginRight = computed<CSSProperties>(() => {
})
const autoStyle = computed(() => {
if (isISOMobile()) {
if (isISOMobile() || isFeiShu) {
return {
position: 'absolute',
height: 100 / scale.value + '%!important',