diff --git a/src/components/diagram_overview.jsx b/src/components/diagram_overview.jsx
index 58e5c44..30bfed6 100644
--- a/src/components/diagram_overview.jsx
+++ b/src/components/diagram_overview.jsx
@@ -1,4 +1,4 @@
-import { React } from "react";
+import { React, useState } from "react";
import { defaultTableTheme, sqlDataTypes, tableThemes } from "../data/data";
import {
Collapse,
@@ -11,6 +11,7 @@ import {
TextArea,
Popover,
Checkbox,
+ Select,
} from "@douyinfe/semi-ui";
import {
IconMore,
@@ -21,6 +22,8 @@ import {
} from "@douyinfe/semi-icons";
export default function DiagramOverview(props) {
+ const [indexActiveKey, setIndexActiveKey] = useState("");
+
const updateColor = (id, c) => {
const updatedTables = [...props.tables];
updatedTables[id] = { ...updatedTables[id], color: c };
@@ -134,17 +137,91 @@ export default function DiagramOverview(props) {
))}
-
-
-
- indices
-
-
-
+ {t.indices.length > 0 && (
+
+ setIndexActiveKey(itemKey)}
+ >
+
+ {t.indices.map((idx, k) => (
+
+
+ }
+ trigger="click"
+ position="rightTop"
+ showArrow
+ >
+ }
+ type="tertiary"
+ style={{ marginLeft: "12px" }}
+ >
+
+
+ ))}
+
+
+
+ )}
-
+