mirror of
https://github.com/dataease/dataease.git
synced 2026-05-15 13:32:18 +08:00
style: 优化富文本样式 (#16701)
This commit is contained in:
@@ -8,7 +8,6 @@
|
||||
@click="onClick"
|
||||
:style="richTextStyle"
|
||||
>
|
||||
---language=={{ language }}
|
||||
<chart-error v-if="isError" :err-msg="errMsg" />
|
||||
<Editor
|
||||
v-if="editShow && !isError"
|
||||
|
||||
@@ -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)
|
||||
})
|
||||
|
||||
@@ -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 {
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user