king
2024-12-23 65c9d768ad5bbb8d01babc4435801b0cb39c9b06
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',
@@ -134,7 +141,7 @@
      type: 'checkbox',
      field: 'tbStyle',
      label: '表格样式',
      initval: wrap.tbStyle ? wrap.tbStyle.split(' ') : [],
      initval: tbStyle,
      tooltip: '富文本中表格的样式,注:选择“边框加粗”或“边框颜色加深”时“无边框”无效。',
      required: false,
      options: [
@@ -146,18 +153,17 @@
      ],
      span: 24
    },
    // {
    //   type: 'radio',
    //   field: 'firstTr',
    //   label: '表格首行',
    //   initval: wrap.firstTr || 'deep',
    //   tooltip: '富文本中table的首行背景颜色。',
    //   required: false,
    //   options: [
    //     {value: 'deep', label: '深色'},
    //     {value: 'light', label: '浅色'},
    //   ]
    // },
    {
      type: 'radio',
      field: 'splitLine',
      label: '分割线加深',
      initval: splitLine,
      required: false,
      options: [
        {value: 'false', label: '否'},
        {value: 'true', label: '是'},
      ],
    },
    {
      type: 'radio',
      field: 'permission',