fix(仪表板): 修复Tab组件表头对齐方式会受过滤组件影响问题,预览和编辑展示初始的富文本字体大小差距大问题
This commit is contained in:
parent
a3989d6e3c
commit
6bbdb68b1b
@ -466,7 +466,7 @@ export default {
|
|||||||
initFontSize: 12,
|
initFontSize: 12,
|
||||||
initActiveFontSize: 18,
|
initActiveFontSize: 18,
|
||||||
miniFontSize: 12,
|
miniFontSize: 12,
|
||||||
maxFontSize: 256,
|
maxFontSize: 48,
|
||||||
textAlignOptions: [
|
textAlignOptions: [
|
||||||
{
|
{
|
||||||
icon: 'iconfont icon-juzuo',
|
icon: 'iconfont icon-juzuo',
|
||||||
|
|||||||
@ -74,7 +74,7 @@
|
|||||||
/>
|
/>
|
||||||
<div
|
<div
|
||||||
v-if="item.content && item.content.type==='canvas' && (!isEdit || mobileLayoutStatus)"
|
v-if="item.content && item.content.type==='canvas' && (!isEdit || mobileLayoutStatus)"
|
||||||
style="width: 100%;height:100%"
|
style="width: 100%;height:100%;font-size: initial"
|
||||||
>
|
>
|
||||||
<Preview
|
<Preview
|
||||||
:ref="'canvasTabRef-'+item.name"
|
:ref="'canvasTabRef-'+item.name"
|
||||||
@ -512,7 +512,7 @@ export default {
|
|||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
if (this.element.options.tabList.length > 1) {
|
if (this.element.options.tabList.length > 1) {
|
||||||
const containerDom = document.getElementById('tab-' + this.element.options.tabList[this.element.options.tabList.length - 1].name)
|
const containerDom = document.getElementById('tab-' + this.element.options.tabList[this.element.options.tabList.length - 1].name)
|
||||||
this.tabsAreaScroll = containerDom.parentNode.scrollWidth > containerDom.parentNode.parentNode.scrollWidth
|
this.tabsAreaScroll = containerDom.parentNode.scrollWidth >= containerDom.parentNode.parentNode.scrollWidth
|
||||||
} else {
|
} else {
|
||||||
this.tabsAreaScroll = false
|
this.tabsAreaScroll = false
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user