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,
@@ -390,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}