king
2025-03-10 252b65df82f8c7ebc0b8dc9ad363a35907e98c45
Merge branch 'master' into positec
4个文件已修改
41 ■■■■■ 已修改文件
src/menu/components/card/cardcellcomponent/elementform/index.jsx 23 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/menu/components/card/cardcellcomponent/formconfig.jsx 10 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/tabviews/custom/components/card/cardcellList/index.jsx 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/tabviews/custom/components/share/braftContent/index.scss 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
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) {
src/menu/components/card/cardcellcomponent/formconfig.jsx
@@ -725,6 +725,16 @@
      ]
    },
    {
      type: 'select',
      key: 'noVField',
      label: '空值字段',
      initVal: card.noVField || '',
      tooltip: '用于控制此静态元素的显示/隐藏,当此字段为空时(数值为0),隐藏当前元素。',
      required: false,
      allowClear: true,
      options: [],
    },
    {
      type: 'radio',
      key: 'lostTip',
      label: '图片缺失',
src/tabviews/custom/components/card/cardcellList/index.jsx
@@ -372,6 +372,10 @@
              })())
            }
          }
          if (card.noVField && !data[card.noVField]) {
            val = ''
          }
        } else if (data.hasOwnProperty(card.field)) {
          val = data[card.field] + ''
        }
src/tabviews/custom/components/share/braftContent/index.scss
@@ -41,6 +41,10 @@
      padding: 5px 10px;
      font-size: var(--table-font-size, 16px);
      border: 1px solid #ddd;
      br:first-of-type {
        height: 0px;
      }
    }
  }
  ul {