@antv/s2
Version:
effective spreadsheet render core lib
18 lines • 640 B
JavaScript
import { InterceptType, S2Event } from '../../../common/constant';
import { BaseEvent } from '../../base-event';
export class MergedCellClick extends BaseEvent {
bindEvents() {
this.bindDataCellClick();
}
bindDataCellClick() {
this.spreadsheet.on(S2Event.MERGED_CELLS_CLICK, (event) => {
event.stopPropagation();
const { interaction } = this.spreadsheet;
if (interaction.hasIntercepts([InterceptType.CLICK])) {
return;
}
interaction.addIntercepts([InterceptType.HOVER]);
});
}
}
//# sourceMappingURL=merged-cell-click.js.map