king
2020-11-06 00de865d827da6687928b10f031482628a5144c8
src/menu/components/card/prop-card/index.jsx
@@ -19,7 +19,7 @@
const { confirm } = Modal
class antvBarLineChart extends Component {
class PropCardEditComponent extends Component {
  static propTpyes = {
    card: PropTypes.object,
    deletecomponent: PropTypes.func,
@@ -221,6 +221,7 @@
  }
  render() {
    const { menu } = this.props
    const { card } = this.state
    return (
@@ -228,7 +229,7 @@
        <Popover overlayClassName="mk-popover-control-wrap" mouseLeaveDelay={0.2} mouseEnterDelay={0.2} content={
          <div className="mk-popover-control">
            <Icon className="plus" title="添加卡片" onClick={this.addCard} type="plus" />
            <WrapComponent config={card} sysRoles={this.props.menu.sysRoles} updateConfig={this.updateComponent} />
            <WrapComponent config={card} sysRoles={menu ? menu.sysRoles : []} updateConfig={this.updateComponent} />
            <Icon className="style" title="调整样式" onClick={this.changeStyle} type="font-colors" />
            <Icon className="close" title="删除组件" type="delete" onClick={() => this.props.deletecomponent(card.uuid)} />
            {card.wrap.datatype !== 'static' ? <SettingComponent config={card} updateConfig={this.updateComponent} /> : null}
@@ -252,4 +253,4 @@
  return {}
}
export default connect(mapStateToProps, mapDispatchToProps)(antvBarLineChart)
export default connect(mapStateToProps, mapDispatchToProps)(PropCardEditComponent)