File tree Expand file tree Collapse file tree 2 files changed +3
-10
lines changed
components/ChartGraph/BasicTableChart
pages/ChartWorkbenchPage/models Expand file tree Collapse file tree 2 files changed +3
-10
lines changed Original file line number Diff line number Diff line change @@ -90,7 +90,8 @@ class BasicTableChart extends ReactChart {
9090 options . config ,
9191 options . widgetSpecialConfig ,
9292 ) ;
93- this . cachedAntTableOptions = Omit ( tableOptions , [ 'dataSource' ] ) ;
93+ // this.cachedAntTableOptions = Omit(tableOptions, ['dataSource']);
94+ this . cachedAntTableOptions = Omit ( tableOptions , [ ] ) ;
9495 this . cachedDatartConfig = options . config ;
9596 this . cacheContext = context ;
9697 this . adapter ?. updated ( tableOptions , context ) ;
@@ -107,14 +108,6 @@ class BasicTableChart extends ReactChart {
107108
108109 public onResize ( options , context ?) : void {
109110 const columns = this . getDataColumnWidths ( options , context ) ;
110- const dataConfigs = options . config . datas || [ ] ;
111- const chartDataSet = transformToDataSet (
112- options . dataset . rows ,
113- options . dataset . columns ,
114- dataConfigs ,
115- ) ;
116- this . cachedAntTableOptions . dataSource = chartDataSet ;
117-
118111 const tableOptions = Object . assign (
119112 this . cachedAntTableOptions ,
120113 {
Original file line number Diff line number Diff line change @@ -84,7 +84,7 @@ class ChartManager {
8484 }
8585
8686 public getDefaultChart ( ) {
87- return this . _charts [ 0 ] ;
87+ return CloneValueDeep ( this . _charts [ 0 ] ) ;
8888 }
8989
9090 private async _loadCustomizeCharts ( paths : string [ ] ) {
You can’t perform that action at this time.
0 commit comments