Skip to content

Commit

Permalink
fix: hack fix for createElement in openinula-vtable
Browse files Browse the repository at this point in the history
  • Loading branch information
Rui-Sun committed Mar 21, 2024
1 parent 15f2667 commit 821fd08
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/openinula-vtable/src/containers/withContainer.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import Inula, { useRef, useState, useLayoutEffect } from 'openinula';

const React = Inula; // hack for createElement, wait for fixed in gulp config
export interface ContainerProps {
style?: Inula.CSSProperties;
className?: string;
Expand Down
2 changes: 2 additions & 0 deletions packages/openinula-vtable/src/context/table.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import Inula from 'openinula';
import type { ListTable, PivotTable, PivotChart } from '@visactor/vtable';

const React = Inula; // hack for createElement, wait for fixed in gulp config

export interface TableContextType {
table?: ListTable | PivotTable | PivotChart;
// optionFromChildren: any;
Expand Down
2 changes: 2 additions & 0 deletions packages/openinula-vtable/src/tables/base-table.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ import type {
} from '../eventsUtils';
import { bindEventsToTable, TABLE_EVENTS_KEYS, TABLE_EVENTS } from '../eventsUtils';

const React = Inula; // hack for createElement, wait for fixed in gulp config

export type IVTable = VTable.ListTable | VTable.PivotTable | VTable.PivotChart;
export type IOption =
| VTable.ListTableConstructorOptions
Expand Down

0 comments on commit 821fd08

Please sign in to comment.