king
2020-11-06 00de865d827da6687928b10f031482628a5144c8
src/menu/components/card/cardcellcomponent/formconfig.jsx
@@ -10,15 +10,8 @@
 * @param {*} permFuncField  存储过程可用的开始字段
 * @param {*} type           按钮类型,用于区分可选的打开方式
 */
export function getCardCellForm (card) {
  let forms = [
    {
      type: 'select',
      key: 'eleType',
      label: '元素类型',
      initVal: card.eleType,
      required: true,
      options: [
export function getCardCellForm (card, type) {
  let _options = [
        { value: 'text', text: '文本'},
        { value: 'number', text: '数值'},
        { value: 'picture', text: '图片'},
@@ -27,6 +20,19 @@
        { value: 'slider', text: '进度条'},
        { value: 'splitline', text: '分割线'},
      ]
  if (type === 'table') {
    _options.push({value: 'sequence', text: '序号'})
  }
  let forms = [
    {
      type: 'select',
      key: 'eleType',
      label: '元素类型',
      initVal: card.eleType,
      required: true,
      options: _options
    },
    {
      type: 'select',