king
2020-09-24 bcef9a2845e6800704fecb3eb60c204f80854a07
src/menu/actioncomponent/formconfig.jsx
@@ -231,20 +231,6 @@
    },
    {
      type: 'select',
      key: 'position',
      label: Formdict['header.form.position'],
      initVal: card.position || 'toolbar',
      required: true,
      options: [{
        value: 'toolbar',
        text: Formdict['header.form.toolbar']
      }, {
        value: 'grid',
        text: Formdict['header.form.grid']
      }]
    },
    {
      type: 'select',
      key: 'Ot',
      label: Formdict['header.form.isRequired'],
      initVal: card.Ot || 'requiredSgl',
@@ -331,10 +317,27 @@
    },
    {
      type: 'select',
      key: 'show',
      label: "显示为",
      initVal: card.show || 'icon',
      required: true,
      options: [{
        value: 'icon',
        text: '图标'
      }, {
        value: 'button',
        text: '按钮'
      }, {
        value: 'link',
        text: '链接'
      }]
    },
    {
      type: 'select',
      key: 'icon',
      label: Formdict['model.icon'],
      initVal: card.icon,
      required: type === 'chart', // 图表必须使用图标
      required: false,
      options: []
    },
    {
@@ -404,7 +407,8 @@
    // }
  ]
  if (type === 'chart') {
  // if (type === 'chart') {
  //   return forms
  // }
    return forms
  }
}