From e543372cc70a19ff2630c79d8421c2c593e54e5f Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期三, 02 六月 2021 17:15:21 +0800 Subject: [PATCH] 2021-06-02 --- src/menu/components/chart/antv-pie/chartcompile/index.jsx | 9 ++++----- 1 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/menu/components/chart/antv-pie/chartcompile/index.jsx b/src/menu/components/chart/antv-pie/chartcompile/index.jsx index 7678833..2152dde 100644 --- a/src/menu/components/chart/antv-pie/chartcompile/index.jsx +++ b/src/menu/components/chart/antv-pie/chartcompile/index.jsx @@ -16,7 +16,6 @@ class LineChartDrawerForm extends Component { static propTpyes = { - menu: PropTypes.any, dict: PropTypes.object, plot: PropTypes.object, config: PropTypes.object, @@ -51,13 +50,13 @@ } showDrawer = () => { - const { config, menu } = this.props + const { config } = this.props this.setState({ visible: true, view: 'normal', plot: fromJS(config.plot).toJS(), - baseFormlist: getBaseForm(config.plot, menu.MenuType, menu.fstMenuList), + baseFormlist: getBaseForm(config.plot), formlist: getOptionForm(config.plot, config.columns) }) } @@ -319,7 +318,7 @@ return ( <div className="line-chart-drawer-form"> - <Icon type="edit" onClick={this.showDrawer} /> + <Icon type="edit" title="缂栬緫" onClick={this.showDrawer} /> <Modal wrapClassName="popview-modal menu-chart-edit-modal" title="鍥捐〃缂栬緫" @@ -342,7 +341,7 @@ {plot ? <TabPane tab="棰滆壊璁剧疆" key="color"> <div> <Button className="color-add mk-green" onClick={this.addColor}>{this.props.dict['model.add']}</Button> - <EditTable data={plot.colors || []} columns={colorColumns} onChange={this.changeColor}/> + <EditTable actions={['edit', 'move', 'del']} data={plot.colors || []} columns={colorColumns} onChange={this.changeColor}/> </div> </TabPane> : null} </Tabs> -- Gitblit v1.8.0