king
2024-11-18 58a82bcb75ec47171fe8b02ae7a5c003090d0465
2024-11-18
3个文件已修改
29 ■■■■■ 已修改文件
src/menu/components/editor/braft-editor/index.jsx 3 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/menu/components/editor/braft-editor/options.jsx 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/tabviews/custom/components/editor/braft-editor/index.scss 18 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/menu/components/editor/braft-editor/index.jsx
@@ -149,6 +149,9 @@
    const { card } = this.state
    if (res.tbStyle) {
      if (res.tbStyle.includes('no-border') && (res.tbStyle.includes('bold-border') || res.tbStyle.includes('deep-border'))) {
        res.tbStyle = res.tbStyle.filter(item => item !== 'no-border')
      }
      res.tbStyle = res.tbStyle.join(' ')
    }
src/menu/components/editor/braft-editor/options.jsx
@@ -135,12 +135,16 @@
      field: 'tbStyle',
      label: '表格样式',
      initval: wrap.tbStyle ? wrap.tbStyle.split(' ') : [],
      tooltip: '富文本中表格的样式,注:选择“边框加粗”或“边框颜色加深”时“无边框”无效。',
      required: false,
      options: [
        {value: 'th-light', label: '表头透明'},
        {value: 'no-border', label: '无边框'},
        {value: 'tb-flex', label: '列等宽'},
      ]
        {value: 'no-border', label: '无边框'},
        {value: 'bold-border', label: '边框加粗'},
        {value: 'deep-border', label: '边框颜色加深'},
      ],
      span: 24
    },
    // {
    //   type: 'radio',
src/tabviews/custom/components/editor/braft-editor/index.scss
@@ -49,6 +49,24 @@
    }
  }
}
.custom-braft-editor-box.bold-border {
  .braft-content {
    table {
      td, th {
        border-width: 2px!important;
      }
    }
  }
}
.custom-braft-editor-box.deep-border {
  .braft-content {
    table {
      td, th {
        border-color: rgba(0, 0, 0, 0.85)!important;
      }
    }
  }
}
.custom-braft-editor-box.tb-flex {
  .braft-content {
    table {