king
2023-10-23 e07e410cf2fbc64c4e1fa8a080a9aac6a3d0c305
src/utils/utils.js
@@ -2394,9 +2394,8 @@
/**
 * @description 获取标记信息
 */
export function getMark (marks, record, style = {}) {
  style = JSON.parse(JSON.stringify(style))
  let res = {style}
export function getMark (marks, record, style) {
  let res = {}
  marks.some(mark => {
    let originVal = record[mark.field[0]]
@@ -2431,22 +2430,22 @@
    let type = mark.signType[0]
    if (type === 'font') {
      res.style.color = mark.color
      style.color = mark.color
      res.innerStyle = {color: mark.color}
      res.signType = ' sign-font'
    } else if (type === 'background') {
      res.style.backgroundColor = mark.color
      style.backgroundColor = mark.color
      if (mark.fontColor) {
        res.style.color = mark.fontColor
        style.color = mark.fontColor
        res.innerStyle = {color: mark.fontColor}
      }
    } else if (type === 'underline') {
      res.style.textDecoration = 'underline'
      res.style.color = mark.color
      style.textDecoration = 'underline'
      style.color = mark.color
      res.innerStyle = {color: mark.color, textDecoration: 'underline'}
    } else if (type === 'line-through') {
      res.style.textDecoration = 'line-through'
      res.style.color = mark.color
      style.textDecoration = 'line-through'
      style.color = mark.color
      res.innerStyle = {color: mark.color, textDecoration: 'line-through'}
    } else if (type.indexOf('icon') > -1) {
      res.icon = mark.signType[mark.signType.length - 1]
@@ -2457,7 +2456,7 @@
        res.position = 'back'
      }
    } else if (type === 'indent') {
      res.style.color = mark.color
      style.color = mark.color
      res.space = Array(mark.signType[1] + 1).join(' ')
    } else if (type === 'pointfront') {
      res.position = 'front'