Merge pull request #13018 from dataease/pr@dev-v2@refact_font

Pr@dev v2@refact font
This commit is contained in:
王嘉豪 2024-10-30 16:41:15 +08:00 committed by GitHub
commit 370c50cba6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 41 additions and 52 deletions

View File

@ -620,15 +620,7 @@ const marginRight = computed<CSSProperties>(() => {
})
const autoStyle = computed(() => {
return {
position: 'absolute',
height: 100 / scale.value + '%!important',
width: 100 / scale.value + '%!important',
left: 50 * (1 - 1 / scale.value) + '%', // 2
top: 50 * (1 - 1 / scale.value) + '%', // 2
transform: 'scale(' + scale.value + ') translateZ(0)',
opacity: element.value?.style?.opacity || 1
} as CSSProperties
return { zoom: scale.value }
})
</script>

View File

@ -604,12 +604,7 @@ onBeforeUnmount(() => {
})
const autoStyle = computed(() => {
return {
height: 20 * scale.value + 8 + 'px',
width: 100 / scale.value + '%!important',
left: 50 * (1 - 1 / scale.value) + '%', // 2
transform: 'scale(' + scale.value + ') translateZ(0)'
}
return { zoom: scale.value }
})
const autoHeightStyle = computed(() => {

View File

@ -313,6 +313,7 @@ const save = () => {
<el-tab-pane label="组件样式" name="componentStyle"> </el-tab-pane>
<el-tab-pane label="整体样式" name="style"> </el-tab-pane>
</el-tabs>
<template v-if="!mobileLoading">
<div class="config-mobile-tab" v-show="activeCollapse === 'style'">
<MobileBackgroundSelector @styleChange="changeTimes++"></MobileBackgroundSelector>
</div>
@ -351,6 +352,7 @@ const save = () => {
<div class="pc-select-to-mobile" @click="addToMobile(item)" v-if="!mobileLoading"></div>
</div>
</div>
</template>
</div>
</div>
</template>