Merge pull request #9905 from dataease/pr@dev@fix_mobile

fix(仪表板): 修复过滤组件移动端布局变形问题
This commit is contained in:
王嘉豪 2024-05-28 12:27:40 +08:00 committed by GitHub
commit a206436ee9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -843,7 +843,7 @@ export default {
if (this.componentData) {
const componentData = deepCopy(this.componentData)
componentData.forEach(component => {
if (component.type === 'custom') {
if (component.type === 'custom' && !this._isMobile) {
const sourceComponent = this.findSourceComponent(component.id)
if (sourceComponent?.style) {
component.style = deepCopy(this.findSourceComponent(component.id).style)