mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-20 14:46:01 +00:00
free table infrastructure
This commit is contained in:
37
packages/web/src/freetable/FreeTableGrid.js
Normal file
37
packages/web/src/freetable/FreeTableGrid.js
Normal file
@@ -0,0 +1,37 @@
|
||||
import React from 'react';
|
||||
import styled from 'styled-components';
|
||||
|
||||
import { ManagerMainContainer, ManagerOuterContainerFull } from '../datagrid/ManagerStyles';
|
||||
import { HorizontalSplitter } from '../widgets/Splitter';
|
||||
import FreeTableGridCore from './FreeTableGridCore';
|
||||
|
||||
const LeftContainer = styled.div`
|
||||
background-color: white;
|
||||
display: flex;
|
||||
flex: 1;
|
||||
`;
|
||||
|
||||
const DataGridContainer = styled.div`
|
||||
position: relative;
|
||||
flex-grow: 1;
|
||||
`;
|
||||
|
||||
export default function FreeTableGrid(props) {
|
||||
const [managerSize, setManagerSize] = React.useState(0);
|
||||
return (
|
||||
<HorizontalSplitter initialValue="300px" size={managerSize} setSize={setManagerSize}>
|
||||
<LeftContainer>
|
||||
<ManagerMainContainer>
|
||||
<ManagerOuterContainerFull>
|
||||
COLUMNS
|
||||
{/* <ColumnManager {...props} managerSize={managerSize} /> */}
|
||||
</ManagerOuterContainerFull>
|
||||
</ManagerMainContainer>
|
||||
</LeftContainer>
|
||||
|
||||
<DataGridContainer>
|
||||
<FreeTableGridCore {...props} />
|
||||
</DataGridContainer>
|
||||
</HorizontalSplitter>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user