style: 优化富文本样式 (#16701)

This commit is contained in:
王嘉豪
2025-08-13 15:46:43 +08:00
committed by GitHub
parent d6b91c4a4f
commit c3e36dc8ee
3 changed files with 4 additions and 4 deletions

View File

@@ -8,7 +8,6 @@
@click="onClick"
:style="richTextStyle"
>
---language=={{ language }}
<chart-error v-if="isError" :err-msg="errMsg" />
<Editor
v-if="editShow && !isError"

View File

@@ -181,6 +181,7 @@ const initLocalCanvasData = callBack => {
)
}
onMounted(async () => {
document.body.style.overflow = 'hidden'
dvMainStore.setCurComponent({ component: null, index: null })
dvMainStore.setHiddenListStatus(false)
snapshotStore.initSnapShot()
@@ -318,6 +319,7 @@ const doRecoverToPublished = () => {
}
onUnmounted(() => {
document.body.style.overflow = ''
window.removeEventListener('storage', eventCheck)
window.removeEventListener('message', winMsgHandle)
})

View File

@@ -377,6 +377,7 @@ const newWindowFromDiv = ref(false)
let p = null
const XpackLoaded = () => p(true)
onMounted(async () => {
document.body.style.overflow = 'hidden'
dvMainStore.setCurComponent({ component: null, index: null })
snapshotStore.initSnapShot()
if (window.location.hash.includes('#/dvCanvas')) {
@@ -466,6 +467,7 @@ onMounted(async () => {
})
onUnmounted(() => {
document.body.style.overflow = ''
window.removeEventListener('storage', eventCheck)
window.removeEventListener('blur', releaseAttachKey)
eventBus.off('handleNew', handleNew)
@@ -688,9 +690,6 @@ eventBus.on('tabSort', tabSort)
</template>
<style lang="less">
body {
overflow: hidden;
}
.preview-layout-container {
}