king
2025-03-09 26e116c38af035db0908c3b6086841708ba2ddeb
src/menu/components/card/cardcellcomponent/formconfig.jsx
@@ -124,6 +124,9 @@
    } else {
      appMenus = []
    }
    // if (appType === 'mob') {
    //   appMenus.push({value: 'sign', text: '签名(系统页)'})
    // }
    appMenus.push({value: 'goback', text: '返回(上一页)'})
  }
@@ -608,6 +611,16 @@
      ]
    },
    {
      type: 'codemirror',
      key: 'formula',
      label: '公式',
      initVal: card.formula || '',
      tooltip: '执行时会使用查询到的数据替换相应的字段,展示获得的结果,在不使用解析时换行符或空格会替换为页面元素。可使用JS的一些语法,如:三元表达式 @field1@ > @field2@ ? 0 : 1;Math对象,取绝对值 Math.abs(@field@)、四舍五入 Math.round(@field@)等。注:会替换公式中的@username@、@fullName@、@bid@。',
      toolWidth: 450,
      placeholder: '例如:@price@ * @number@',
      required: true
    },
    {
      type: 'radio',
      key: 'link',
      label: '链接',
@@ -685,14 +698,19 @@
      ]
    },
    {
      type: 'codemirror',
      key: 'formula',
      label: '公式',
      initVal: card.formula || '',
      tooltip: '执行时会使用查询到的数据替换相应的字段,展示获得的结果,在不使用解析时换行符或空格会替换为页面元素。可使用JS的一些语法,如:三元表达式 @field1@ > @field2@ ? 0 : 1;Math对象,取绝对值 Math.abs(@field@)、四舍五入 Math.round(@field@)等。注:会替换公式中的@username@、@fullName@、@bid@。',
      toolWidth: 450,
      placeholder: '例如:@price@ * @number@',
      required: true
      type: 'checkbox',
      key: 'evalchars',
      label: '替换字符',
      initVal: card.evalchars || ['enter', 'space'],
      tooltip: '公式解析后,可替换回车、空格等字符,实现换行、字间距控制等页面效果。',
      required: false,
      options: [{
        value: 'enter',
        text: '回车符'
      }, {
        value: 'space',
        text: '空格'
      }]
    },
    {
      type: 'radio',
@@ -707,6 +725,16 @@
      ]
    },
    {
      type: 'select',
      key: 'noVField',
      label: '空值字段',
      initVal: card.noVField || '',
      tooltip: '用于控制此静态元素的显示/隐藏,当此字段为空时(数值为0),隐藏当前元素。',
      required: false,
      allowClear: true,
      options: [],
    },
    {
      type: 'radio',
      key: 'lostTip',
      label: '图片缺失',