king
2023-04-07 20185ab64a165df51515d9fa1c9b12a7a8c55f59
src/menu/components/card/cardcellcomponent/elementform/index.jsx
@@ -15,7 +15,7 @@
const cardTypeOptions = {
  sequence: ['eleType', 'width'],
  text: ['eleType', 'datatype', 'format', 'width', 'height', 'prefix', 'postfix', 'link', 'anchors', 'noValue', 'bgImage', 'fixStyle', 'copyable', 'alignItems'],
  text: ['eleType', 'datatype', 'format', 'width', 'height', 'prefix', 'postfix', 'link', 'anchors', 'noValue', 'bgImage', 'fixStyle', 'copyable', 'alignItems', 'sortField'],
  number: ['eleType', 'datatype', 'width', 'height', 'prefix', 'postfix', 'noValue', 'fixStyle', 'alignItems'],
  picture: ['eleType', 'datatype', 'width', 'lenWidRadio', 'maxWidth', 'link', 'noValue'],
  video: ['eleType', 'datatype', 'width', 'aspectRatio', 'autoPlay', 'loop', 'startTime', 'noValue', 'posterType'],
@@ -96,6 +96,26 @@
              }
            })
          }
        } else if (item.key === 'sortField' && !item.forbid) {
          item.options = []
          config.columns.forEach(col => {
            let label = `${col.field}(${col.label})`
            item.options.push({
              value: col.field,
              text: label
            })
          })
          if (config.subColumns) {
            config.subColumns.forEach(col => {
              let label = `${col.field}(${col.label})`
              item.options.push({
                value: col.field,
                text: label
              })
            })
          }
        } else if (item.key === 'value' && card.eleType === 'slider') {
          item.type = 'number'
          item.label = '值'