king
2025-03-10 a259b444c4438577ee3363e0764b63e828a3bae2
src/menu/components/card/cardcellcomponent/elementform/index.jsx
@@ -115,6 +115,26 @@
              })
            })
          }
        } else if (item.key === 'noVField') {
          item.options = []
          if (side === 'sub') {
            config.subColumns.forEach(col => {
              let label = `${col.field}(${col.label})`
              item.options.push({
                value: col.field,
                text: label
              })
            })
          } else {
            config.columns.forEach(col => {
              let label = `${col.field}(${col.label})`
              item.options.push({
                value: col.field,
                text: label
              })
            })
          }
        } else if (item.key === 'formula') {
          item.fields = []
@@ -181,6 +201,9 @@
        _options.push('value')
      }
      
      if (this.record.eleType === 'text' && this.record.datatype === 'static' && this.record.noValue === 'hide') {
        _options.push('noVField')
      }
      if (this.record.eleType === 'picture' && this.record.noValue === 'show') {
        _options.push('lostTip')
      } else if (this.record.eleType === 'video' && this.record.posterType) {
@@ -228,11 +251,26 @@
      }
    } else if (this.record.eleType === 'formula') {
      if (this.record.eval !== 'func') {
        _options.push('prefix', 'postfix', 'fixStyle', 'alignItems', 'evalchars')
        _options.push('link', 'prefix', 'postfix', 'fixStyle', 'alignItems', 'evalchars')
      }
      if (this.record.eval === 'true') {
        _options.push('decimal')
      }
      if (this.record.link && this.record.eval !== 'func') {
        _options.push('linkType')
        if (this.record.linkType === 'linkmenu') {
          _options.push('open')
          if (this.record.link === 'static') {
            _options.push('linkmenu')
          } else {
            _options.push('linkurl')
          }
        } else if (this.record.linkType === 'other') {
          _options.push('linkurl', 'open')
        } else {
          _options.push('linkurl')
        }
      }
    }
    if (_options.includes('fixStyle') && this.record.fixStyle === 'alone') {
      _options.push('fixSize', 'fixColor', 'fixLeft', 'fixRight')