king
2023-05-09 7b0dbecd1d6155d26ec67be0a47a16264c738c85
src/templates/modalconfig/dragelement/card.jsx
@@ -129,6 +129,8 @@
      <Checkbox value="C">C</Checkbox>
      <Checkbox value="D">D</Checkbox>
    </Checkbox.Group>)
  } else if (card.type === 'check') {
    formItem = <Checkbox checked={card.initval}>{card.checkTip || ''}</Checkbox>
  } else if (card.type === 'hint') {
    formItem = <div style={{marginTop: '8px', color: 'rgba(0, 0, 0, 0.85)', lineHeight: '1.5', ...card.style}}>{card.message}</div>
  } else if (card.type === 'formula') {
@@ -146,7 +148,7 @@
    formItem = <CheckCard config={card} />
  }
  let _label = <span className="mk-form-label" style={card.style}>{card.label}</span>
  let _label = <span className={'mk-form-label ' + (/^\s+$/.test(card.label) ? 'no-colon' : '')} style={card.style}>{card.label}</span>
  if (card.tooltip) {
    _label = <><QuestionCircleOutlined className="mk-form-tip" /><span className="mk-form-label" style={card.style}>{card.label}</span></>