king
2020-05-19 89949fc82a0194f985cb542abb7118724804bd5b
src/templates/zshare/formconfig.jsx
@@ -2084,7 +2084,7 @@
 * @description 获取卡片详情表单配置信息
 * @param {object} card  // 标签配置信息
 */
export function getCardDetailForm (card, _columns) {
export function getCardDetailForm (card, _columns, _type, _actions = []) {
  return [
    {
      type: 'radio',
@@ -2121,6 +2121,7 @@
      label: '加粗',
      initVal: card.bold || 'false',
      required: true,
      forbid: _type !== 'detail',
      options: [{
        value: 'true',
        text: '是'
@@ -2135,6 +2136,7 @@
      label: '宽度',
      initVal: card.width || '',
      required: false,
      forbid: _type !== 'detail',
      options: [{
        value: '',
        text: '100%'
@@ -2152,6 +2154,7 @@
      label: '对齐',
      initVal: card.align || '',
      required: false,
      forbid: _type !== 'detail',
      options: [{
        value: '',
        text: '左'
@@ -2162,6 +2165,16 @@
        value: 'align-right',
        text: '右'
      }]
    }
    },
    {
      type: 'multiselect',
      key: 'actions',
      label: '按钮组',
      tooltip: '',
      initVal: card.actions || [],
      required: false,
      forbid: _type !== 'header',
      options: _actions
    },
  ]
}