king
2022-12-08 a29edbd4c670e1907e38e98f20257e5519745a4d
src/mob/components/menubar/normal-menubar/menucomponent/options.jsx
@@ -22,24 +22,13 @@
      initval: setting.name || '',
      required: true
    },
    {
      type: 'text',
      field: 'MenuNo',
      label: '菜单参数',
      initval: setting.MenuNo || '',
      required: true
    },
    {
      type: 'number',
      field: 'width',
      label: '宽度',
      initval: setting.width || 24,
      tooltip: '栅格布局,每行等分为24列。',
      min: 1,
      max: 24,
      precision: 0,
      required: true
    },
    // {
    //   type: 'text',
    //   field: 'MenuNo',
    //   label: '菜单参数',
    //   initval: setting.MenuNo || '',
    //   required: true
    // },
    {
      type: 'radio',
      field: 'type',
@@ -55,6 +44,7 @@
        {field: 'copyMenuId', values: ['menu']},
        {field: 'linkMenuId', values: ['linkmenu']},
        {field: 'linkurl', values: ['link']},
        {field: 'primaryId', values: ['menu', 'linkmenu']},
      ]
    },
    {
@@ -64,7 +54,23 @@
      initval: setting.copyMenuId || '',
      tooltip: '复制菜单仅在当前菜单创建时有效。',
      required: false,
      options: menulist
      options: menulist,
      extendName: 'MenuNo',
      controlFields: [
        {field: 'clearMenu', notNull: true},
      ],
    },
    {
      type: 'radio',
      field: 'clearMenu',
      label: '清空关联菜单',
      initval: setting.clearMenu || 'true',
      tooltip: '复制菜单时,是否清空原页面中的关联菜单。',
      required: false,
      options: [
        {value: 'true', label: '是'},
        {value: 'false', label: '否'}
      ]
    },
    {
      type: 'select',
@@ -72,6 +78,7 @@
      label: '关联菜单',
      initval: setting.linkMenuId || '',
      required: true,
      extendName: 'MenuNo',
      options: [
        ...menulist,
        // {value: 'IM', label: '即时通信(系统页)'},
@@ -115,11 +122,22 @@
    },
    {
      type: 'number',
      field: 'width',
      label: '宽度',
      initval: setting.width || 24,
      tooltip: '栅格布局,每行等分为24列。',
      min: 1,
      max: 24,
      precision: 0,
      required: true
    },
    {
      type: 'number',
      field: 'iconFont',
      label: '字体大小',
      initval: setting.iconFont || 20,
      min: 12,
      max: 200,
      max: 300,
      precision: 0,
      required: true
    },
@@ -181,6 +199,14 @@
      required: false,
      options: columns
    },
    {
      type: 'text',
      field: 'primaryId',
      label: '静态主键值',
      initval: setting.primaryId || '',
      tooltip: '可作为BID传到下一页面。注:@userid@会替换为用户ID。',
      required: false
    }
  ]
  return menuWrapForm