fix: hack fix for createElement in openinula-vtable

This commit is contained in:
Rui-Sun 2024-03-21 19:15:37 +08:00
parent 15f2667f3e
commit 821fd087f9
3 changed files with 5 additions and 0 deletions

View File

@ -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;

View File

@ -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;

View File

@ -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