king
2024-08-20 58826d6f4eab9f8c9acf9fa8696f60039c645cfe
src/views/mobdesign/index.jsx
@@ -9,7 +9,7 @@
import md5 from 'md5'
import Api from '@/api'
import Utils, { setGLOBFuncs } from '@/utils/utils.js'
import Utils from '@/utils/utils.js'
import MKEmitter from '@/utils/events.js'
import MenuUtils, { getTables, getFuncsAndInters, getLangTrans } from '@/utils/utils-custom.js'
import asyncComponent from '@/utils/asyncComponent'
@@ -203,7 +203,7 @@
    setTimeout(() => {
      this.getRoleFields()
      setGLOBFuncs()
      // setGLOBFuncs()
    }, 1000)
    document.onkeydown = (event) => {
@@ -1325,6 +1325,7 @@
    let traversal = (components) => {
      return components.map(item => {
        item.miniStyle = ''
        if (item.style) {
          item.miniStyle = this.transferStyle(item.style)
        }
@@ -1340,12 +1341,18 @@
        }
        if (item.type === 'tabs') {
          if (item.setting.backgroundColor) {
            item.miniStyle += `--tabs-header-background: ${item.setting.backgroundColor};`
          }
          item.subtabs.forEach(tab => {
            tab.components = traversal(tab.components)
          })
        } else if (item.type === 'group') {
          item.components = traversal(item.components)
        } else if (['card', 'carousel', 'timeline'].includes(item.type)) {
          if (item.wrap.display === 'hidden') {
            item.miniStyle += 'display:none;'
          }
          item.subcards.forEach(card => {
            card.miniStyle = this.transferStyle(card.style)
            card.elements = card.elements.map(cell => {