diff --git a/packages/vstory/src/edit/edit-component/edit-control/series-mark-control/bar.ts b/packages/vstory/src/edit/edit-component/edit-control/series-mark-control/bar.ts index 645732d3..edb86467 100644 --- a/packages/vstory/src/edit/edit-component/edit-control/series-mark-control/bar.ts +++ b/packages/vstory/src/edit/edit-component/edit-control/series-mark-control/bar.ts @@ -241,11 +241,17 @@ export class BarMarkControl extends BaseMarkControl { } private _hideHandleGraphic() { + if (this._editState === 'dragging') { + return; + } this._startHandle.setAttributes({ visible: false }); this._endHandle.setAttributes({ visible: false }); } private _hideBorderGraphic() { + if (this._editState === 'dragging') { + return; + } this._barBorder.setAttributes({ visible: false }); } @@ -452,23 +458,13 @@ export class BarMarkControl extends BaseMarkControl { ] } }); + // 更新属性 - // this._dragInfo.series = null; - // this._dragInfo.axis = null; - // this._dragInfo.rawScale = []; - // this.chart.reRenderWithUpdateSpec(); - // // upgrade 更新当前的一些图表数据 - // this._upgradeVChartLink(); - // // 柱宽编辑事件 - // CONTEXT.TeaEvent('edit_element', { - // element_type: 'chart', - // part: 'series', - // chart_type: this._chart.vchartType, - // data_source_type: this._chart.dataSourceType, - // action_type: 'update', - // edit_property: 'barWidth', - // trigger_by: 'chart_interaction' - // }); + this._dragInfo.series = null; + this._dragInfo.axis = null; + this._dragInfo.rawScale = []; + this._dragInfo.tempScale = []; + this._dragInfo.hasChange = false; } };