king
2023-03-02 d1f19b794216b37417e114b71c1cd7a2ac3d7748
src/tabviews/custom/components/form/step-form/index.jsx
@@ -104,6 +104,16 @@
      _group = _groups || _group
    }
    config.titleStyle = {}
    config.sortStyle = {}
    if (config.style.fontSize) {
      let size = parseInt(config.style.fontSize)
      config.titleStyle = {fontSize: size}
      let s = size * 1.5 + 'px'
      config.sortStyle = {width: s, height: s, lineHeight: s, borderRadius: s}
    }
    this.setState({
      sync: _sync,
      data: _data,
@@ -253,11 +263,7 @@
        param: {$BID: id || ''}
      }
      if (['linkage_navigation', 'linkage', 'menu_board'].includes(window.GLOB.navBar)) {
        MKEmitter.emit('modifyTabs', newtab, 'replace')
      } else {
        MKEmitter.emit('modifyTabs', newtab, 'plus', true)
      }
      MKEmitter.emit('modifyTabs', newtab, true)
    }
  }
@@ -394,8 +400,8 @@
        }
        {config.wrap.groupLabel !== 'hidden' ? <div className="mk-normal-form-title">
          {config.subcards.map(card => (
            <div key={card.uuid} className={'form-title' + (card.sort <= step ? ' active' : '')}>
              <span className="form-sort" style={{background: config.wrap.color}}>{card.sort}</span>
            <div key={card.uuid} style={config.titleStyle} className={'form-title' + (card.sort <= step ? ' active' : '')}>
              <span className="form-sort" style={{background: config.wrap.color, ...config.sortStyle}}>{card.sort}</span>
              <span className="before-line" style={{background: config.wrap.color}}></span>
              <span className="after-line" style={{background: config.wrap.color}}></span>
              {card.setting.title}
@@ -408,6 +414,7 @@
          dict={dict}
          data={data}
          action={group}
          unload={config.setting.supModule && !BID}
          inputSubmit={() => this.mkFormSubmit(group.uuid)}
          wrappedComponentRef={(inst) => this.formRef = inst}
        /> : null}