king
2022-10-12 53b9fb93d0376eb02bb996935f1720b4e95cd897
src/menu/components/carousel/data-card/options.jsx
@@ -46,6 +46,9 @@
        {value: 'dynamic', label: '动态'},
        {value: 'static', label: '静态'},
      ],
      controlFields: [
        {field: 'empty', values: ['dynamic']},
      ],
      forbid: subtype !== 'propcard'
    },
    {
@@ -56,7 +59,10 @@
      required: false,
      options: [
        {value: 'false', label: '否'},
        {value: 'true', label: '是'},
        {value: 'true', label: '是'}
      ],
      controlFields: [
        {field: 'speed', values: ['true']}
      ]
    },
    {
@@ -64,7 +70,7 @@
      field: 'speed',
      label: '时间间隔',
      initval: wrap.speed || 3,
      tooltip: '使用自动切换时有效,默认为3秒',
      tooltip: '默认为3秒',
      min: 1,
      max: 100,
      precision: 0,
@@ -91,7 +97,7 @@
        {value: 'true', label: '是'},
        {value: 'false', label: '否'},
      ],
      forbid: true // v5 不支持垂直显示
      forbid: appType !== 'mob'
    },
    {
      type: 'radio',
@@ -120,6 +126,31 @@
      forbid: appType === 'mob'
    },
    {
      type: 'radio',
      field: 'empty',
      label: '空值隐藏',
      initval: wrap.empty || 'show',
      tooltip: '当查询数据为空时,隐藏该组件。',
      required: false,
      skip: true,
      options: [
        {value: 'show', label: '否'},
        {value: 'hidden', label: '是'},
      ],
    },
    {
      type: 'radio',
      field: 'permission',
      label: '权限验证',
      initval: wrap.permission || 'false',
      required: false,
      options: [
        {value: 'true', label: '启用'},
        {value: 'false', label: '禁用'},
      ],
      forbid: !appType
    },
    {
      type: 'multiselect',
      field: 'blacklist',
      label: '黑名单',