king
2022-08-19 3b103caa6bfc9ed410e67156c3ca1785bf1cecc9
src/menu/components/table/normal-table/columns/index.jsx
@@ -377,13 +377,11 @@
      editStyleCard: fromJS(col).toJS()
    })
    MKEmitter.emit('changeStyle', [col.uuid], ['font', 'padding'], col.style || {})
    MKEmitter.emit('changeStyle', ['font', 'padding'], col.style || {}, this.getStyle)
  }
  getStyle = (comIds, style) => {
  getStyle = (style) => {
    const { editStyleCard } = this.state
    if (!editStyleCard || comIds[0] !== editStyleCard.uuid || comIds.length !== 1) return
    let _card = {...editStyleCard, style}
    
@@ -559,10 +557,6 @@
    })
  }
  componentDidMount () {
    MKEmitter.addListener('submitStyle', this.getStyle)
  }
  /**
   * @description 组件销毁,清除state更新,清除快捷键设置
   */
@@ -570,7 +564,6 @@
    this.setState = () => {
      return
    }
    MKEmitter.removeListener('submitStyle', this.getStyle)
  }
  render() {