king
2022-11-24 97d4a153c57d8a8c7845cecbf92a0e9bc698091f
src/menu/components/form/dragtitle/options.jsx
@@ -7,13 +7,13 @@
  if (appType === 'mob') {
    group.fields.forEach(f => {
      if (f.field && ['text', 'number'].includes(f.type) && f.hidden !== 'true' && f.readonly !== 'true') {
      if (f.field && ['select', 'text', 'number', 'textarea'].includes(f.type) && f.hidden !== 'true' && f.readonly !== 'true') {
        fields.push(f)
      }
    })
  } else {
    group.fields.forEach(f => {
      if (f.field && ['select', 'link', 'text', 'number'].includes(f.type) && f.hidden !== 'true' && f.readonly !== 'true') {
      if (f.field && ['select', 'link', 'text', 'number', 'textarea'].includes(f.type) && f.hidden !== 'true' && f.readonly !== 'true') {
        fields.push(f)
      }
    })
@@ -46,6 +46,18 @@
    },
    {
      type: 'radio',
      field: 'cache',
      label: '选项查询',
      initval: group.setting.cache || 'true',
      tooltip: '需要通过数据源查询的选项,是否使用缓存。',
      required: false,
      options: [
        {value: 'true', label: '缓存'},
        {value: 'false', label: '实时'},
      ]
    },
    {
      type: 'radio',
      field: 'align',
      label: '表单排列',
      initval: group.setting.align || 'left_right',
@@ -58,10 +70,24 @@
    },
    {
      type: 'radio',
      field: 'verticalSpace',
      label: '竖向间隙',
      initval: group.setting.verticalSpace || 'normal',
      tooltip: '正常间隙会预留出报错信息的位置,防止表单位置发生变化。',
      required: false,
      options: [
        {value: 'normal', label: '正常'},
        {value: 'middle', label: '中'},
        {value: 'small', label: '小'},
      ],
      forbid: appType === 'mob'
    },
    {
      type: 'radio',
      field: 'prevEnable',
      label: '上一步',
      initval: group.prevButton ? group.prevButton.enable || 'false' : 'false',
      tooltip: '第一组不显示。',
      tooltip: '第一组不显示。注:除关闭功能外。',
      required: false,
      options: [
        {value: 'true', label: '显示'},
@@ -85,7 +111,7 @@
      field: 'nextEnable',
      label: '跳过',
      initval: group.nextButton ? group.nextButton.enable || 'false' : 'false',
      tooltip: '最后一组不显示。',
      tooltip: '最后一组不显示。注:除关闭功能外。',
      required: false,
      options: [
        {value: 'true', label: '显示'},