fix(select): select rect position

This commit is contained in:
austaras
2022-07-25 11:15:14 +08:00
parent a4132f5f8a
commit 95629486b3
7 changed files with 44 additions and 54 deletions

View File

@@ -0,0 +1,19 @@
import { styled } from '@toeverything/components/ui';
import { DndTree } from './DndTree';
import { useDndTreeAutoUpdate } from './use-page-tree';
const Root = styled('div')({
minWidth: 160,
maxWidth: 260,
marginLeft: 18,
marginRight: 6,
});
export const PageTree = () => {
useDndTreeAutoUpdate();
return (
<Root>
<DndTree collapsible removable />
</Root>
);
};

View File

@@ -1,4 +1,4 @@
export { PageTree } from './page-tree';
export { PageTree } from './PageTree';
export { usePageTree } from './use-page-tree';
export * from './types';

View File

@@ -1,22 +0,0 @@
import style9 from 'style9';
import { DndTree } from './DndTree';
import { useDndTreeAutoUpdate } from './use-page-tree';
const styles = style9.create({
root: {
minWidth: 160,
maxWidth: 260,
marginLeft: 18,
marginRight: 6,
},
});
export const PageTree = () => {
useDndTreeAutoUpdate();
return (
<div className={styles('root')}>
<DndTree collapsible removable />
</div>
);
};