king
2025-04-14 072de941dc14eca12ffa90f2630bbbaeca542f98
src/menu/components/group/normal-group/options.jsx
@@ -1,7 +1,7 @@
/**
 * @description Wrap表单配置信息
 */
export default function (setting) {
export default function (setting, list) {
  let roleList = sessionStorage.getItem('sysRoles')
  let appType = sessionStorage.getItem('appType')
@@ -41,6 +41,16 @@
      max: 24,
      precision: 0,
      required: true
    },
    {
      type: 'select',
      field: 'bindPropId',
      label: '显示状态绑定',
      initval: setting.bindPropId || '',
      tooltip: '分组可绑定设有空值隐藏的属性卡,当属性卡隐藏时分组一同隐藏。',
      required: false,
      options: list,
      forbid: appType === 'mob'
    },
    // {
    //   type: 'radio',
@@ -122,6 +132,34 @@
      ]
    },
    {
      type: 'radio',
      field: 'mergeAble',
      label: '展开/收起',
      initval: setting.mergeAble || 'false',
      tooltip: '启用时,组件右上角将出现展开/收起的图标,可将当前组件展开或收起。',
      required: false,
      options: [
        {value: 'true', label: '启用'},
        {value: 'false', label: '禁用'},
      ],
      controlFields: [
        {field: 'ctrlNumber', values: ['true']},
      ],
      forbid: appType === 'mob'
    },
    {
      type: 'number',
      field: 'ctrlNumber',
      label: '控制数',
      initval: setting.ctrlNumber || 1,
      tooltip: '当组件收起时,其后需要展开的组件数。',
      min: 1,
      max: 5,
      precision: 0,
      required: true,
      forbid: appType === 'mob'
    },
    {
      type: 'multiselect',
      field: 'blacklist',
      label: '黑名单',