From 41112a29b8e0649e183f5af26ba4afe8e288de53 Mon Sep 17 00:00:00 2001 From: 1ilit Date: Tue, 19 Sep 2023 15:47:51 +0300 Subject: [PATCH] basic layout for the overview --- src/components/diagram_overview.jsx | 117 ++++++++++++++++++++++++++++ src/components/editor_panel.jsx | 20 +++-- src/index.css | 11 +++ 3 files changed, 140 insertions(+), 8 deletions(-) create mode 100644 src/components/diagram_overview.jsx diff --git a/src/components/diagram_overview.jsx b/src/components/diagram_overview.jsx new file mode 100644 index 0000000..fc4bc7b --- /dev/null +++ b/src/components/diagram_overview.jsx @@ -0,0 +1,117 @@ +import React from "react"; +import { sqlDataTypes } from "../data/data"; +import { + Collapse, + Input, + Row, + Col, + Form, + Button, + Card, + TextArea, +} from "@douyinfe/semi-ui"; +import { + IconMore, + IconKeyStroked, + IconColorPalette, +} from "@douyinfe/semi-icons"; + +export default function DiagramOverview(props) { + return ( + + {props.tables.map((t, i) => ( + + + + } + itemKey={`${i}`} + > +
+ {t.fields.map((f, j) => ( +
+ + + + + + { + return { + label: value, + value: value, + }; + })} + filter + initValue={f.type} + > + + + + + + + + + + + +
+ ))} +
+ + + +

indices

+
+
+
+ + + +