fix: fix options can not work in lark-vchart, wx-vchart and tt-vchart

This commit is contained in:
kkxxkk2019 2023-11-15 16:05:31 +08:00 committed by Weixing Zhang
parent a575cfde02
commit 66337ebdb8
4 changed files with 9 additions and 3 deletions

View File

@ -99,7 +99,8 @@ Component({
},
// Get the dpr live as it will change at runtime due to dragging to different monitors
dpr: tt.getSystemInfoSync().pixelRatio,
renderCanvas: `${this.data.canvasId}_draw_canvas`
renderCanvas: `${this.data.canvasId}_draw_canvas`,
...this.data.options
}
);
this.chart = chartInstance;

View File

@ -51,6 +51,9 @@ export default function (props: any) {
borderRadius: '4px',
border: '1px solid #eeeeee'
}}
options={{
disableDirtyBounds: true
}}
onChartInit={() => {
console.log(`init ${type}`);
}}

View File

@ -95,7 +95,8 @@ Component({
},
// Get the dpr live as it will change at runtime due to dragging to different monitors
dpr: tt.getSystemInfoSync().pixelRatio,
renderCanvas: `${this.data.canvasId}_draw_canvas`
renderCanvas: `${this.data.canvasId}_draw_canvas`,
...this.data.options
}
);
this.chart = chartInstance;

View File

@ -91,7 +91,8 @@ Component({
},
// Get the dpr live as it will change at runtime due to dragging to different monitors
dpr: wx.getSystemInfoSync().pixelRatio,
renderCanvas: `${this.data.canvasId}_draw_canvas`
renderCanvas: `${this.data.canvasId}_draw_canvas`,
...this.data.options
}
);
this.chart = chartInstance;