king
2021-09-09 e5fc2d92b1036aabf9ffc2c9706ed401bd9735c8
src/menu/components/card/data-card/options.jsx
@@ -87,9 +87,22 @@
        {value: 'checkbox', label: '多选', forbid: subtype === 'propcard'},
      ],
      controlFields: [
        {field: 'checkAll', values: ['checkbox']}
        {field: 'checkAll', values: ['checkbox']},
        {field: 'selected', values: ['radio', 'checkbox']},
      ],
      forbid: subtype === 'tablecard'
    },
    {
      type: 'radio',
      field: 'selected',
      label: '首行选中',
      initval: wrap.selected || 'false',
      required: false,
      options: [
        {value: 'false', label: '无'},
        {value: 'init', label: '初始化'},
        {value: 'always', label: '数据加载', forbid: subtype === 'propcard'},
      ]
    },
    {
      type: 'radio',
@@ -165,7 +178,7 @@
  ]
  return cardWrapForm.map(item => {
    if (['pagestyle', 'cardType'].includes(item.field)) {
    if (['pagestyle', 'cardType', 'selected'].includes(item.field)) {
      item.options = item.options.filter(option => !option.forbid)
    }