king
2025-01-24 e1cee96b38805bcccf48e7bcb9d296f2bc54c720
src/menu/components/editor/braft-editor/options.jsx
@@ -31,6 +31,13 @@
    roleList = []
  }
  let tbStyle = wrap.tbStyle ? wrap.tbStyle.split(' ') : []
  let splitLine = 'false'
  if (tbStyle.includes('deep-split')) {
    tbStyle = tbStyle.filter(n => n !== 'deep-split')
    splitLine = 'true'
  }
  const cardWrapForm = [
    {
      type: 'text',
@@ -125,25 +132,62 @@
      initval: wrap.empty || 'show',
      tooltip: '当查询数据为空时,隐藏该组件。',
      required: false,
      skip: true,
      options: [
        {value: 'show', label: '否'},
        {value: 'hidden', label: '是'},
      ],
    },
    {
      type: 'radio',
      field: 'firstTr',
      label: '表格首行',
      initval: wrap.firstTr || 'deep',
      tooltip: '富文本中table的首行背景颜色。',
      type: 'checkbox',
      field: 'tbStyle',
      label: '表格样式',
      initval: tbStyle,
      tooltip: '富文本中表格的样式,注:选择“边框加粗”或“边框颜色加深”时“无边框”无效。',
      required: false,
      options: [
        {value: 'deep', label: '深色'},
        {value: 'light', label: '浅色'},
        {value: 'th-light', label: '表头透明'},
        {value: 'tb-flex', label: '列等宽'},
        {value: 'no-border', label: '无边框'},
        {value: 'bold-border', label: '边框加粗'},
        {value: 'deep-border', label: '边框颜色加深'},
        {value: 'word-break', label: '强制换行'},
      ],
      span: 24
    },
    {
      type: 'radio',
      field: 'splitLine',
      label: '分割线加深',
      initval: splitLine,
      required: false,
      options: [
        {value: 'false', label: '否'},
        {value: 'true', label: '是'},
      ],
    },
    {
      type: 'radio',
      field: 'loaded',
      label: '布局调整',
      initval: wrap.loaded || 'false',
      required: false,
      options: [
        {value: 'false', label: '关闭'},
        {value: 'true', label: '开启'},
      ],
      controlFields: [
        {field: 'loadedfunc', values: ['true']},
      ]
    },
    {
      type: 'codemirror',
      field: 'loadedfunc',
      label: '处理脚本',
      initval: wrap.loadedfunc || '',
      required: true,
      span: 24
    },
    {
      type: 'radio',
      field: 'permission',
      label: '权限验证',