Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"changes": [
{
"comment": "fix: export table event type from gantt package",
"type": "patch",
"packageName": "@visactor/vtable-gantt"
}
],
"packageName": "@visactor/vtable-gantt",
"email": "biukam.w@gmail.com"
}
12 changes: 12 additions & 0 deletions packages/vtable-gantt/__tests__/listTable-event-type.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
// @ts-nocheck

global.__VERSION__ = 'none';

import { TABLE_EVENT_TYPE, VTable } from '../src';

describe('gantt list table event type export', () => {
test('exports ListTable event types from package entry', () => {
expect(TABLE_EVENT_TYPE).toBe(VTable.TABLE_EVENT_TYPE);
expect(TABLE_EVENT_TYPE.CLICK_CELL).toBe('click_cell');
});
});
2 changes: 2 additions & 0 deletions packages/vtable-gantt/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import type {
TextAlignType,
TextBaselineType
} from '@visactor/vtable';
import { TABLE_EVENT_TYPE } from '@visactor/vtable';
import { Gantt } from './Gantt';
import * as tools from './tools';
import * as VRender from './vrender';
Expand All @@ -37,6 +38,7 @@ export {
GroupColumnDefine,
TextAlignType,
TextBaselineType,
TABLE_EVENT_TYPE,
tools,
VRender,
VTable,
Expand Down
Loading