king
2021-01-07 0a0372f158b7a4c786c67be6a6e3c84ff7608904
src/views/menudesign/index.jsx
@@ -93,6 +93,7 @@
    MKEmitter.addListener('delButtons', this.delButtons)
    MKEmitter.addListener('copyButtons', this.copyButtons)
    MKEmitter.addListener('changePopview', this.initPopview)
    MKEmitter.addListener('submitComponentStyle', this.updateComponentStyle)
  }
  /**
@@ -105,6 +106,21 @@
    MKEmitter.removeListener('delButtons', this.delButtons)
    MKEmitter.removeListener('copyButtons', this.copyButtons)
    MKEmitter.removeListener('changePopview', this.initPopview)
    MKEmitter.removeListener('submitComponentStyle', this.updateComponentStyle)
  }
  updateComponentStyle = (item) => {
    const { config } = this.state
    if (config.uuid !== item.uuid) return
    this.setState({
      config: {...config, components: []}
    }, () => {
      this.setState({
        config: {...config, components: item.components}
      })
    })
  }
  delButtons = (items) => {