props.setResize(true)}
>
diff --git a/src/components/reference_overview.jsx b/src/components/reference_overview.jsx
index 5b68631..e416a49 100644
--- a/src/components/reference_overview.jsx
+++ b/src/components/reference_overview.jsx
@@ -1,6 +1,8 @@
-import React from "react";
+import React, { useState } from "react";
import {
+ AutoComplete,
Collapse,
+ Empty,
Form,
Row,
Col,
@@ -14,7 +16,12 @@ import {
IconDeleteStroked,
IconLoopTextStroked,
IconMore,
+ IconSearch,
} from "@douyinfe/semi-icons";
+import {
+ IllustrationNoContent,
+ IllustrationNoContentDark,
+} from "@douyinfe/semi-illustrations";
import { Cardinality, Constraint } from "../data/data";
export default function ReferenceOverview(props) {
@@ -28,158 +35,219 @@ export default function ReferenceOverview(props) {
dataIndex: "foreign",
},
];
+ const [refActiveIndex, setRefActiveIndex] = useState("");
+ const [value, setValue] = useState("");
+ const [filteredResult, setFilteredResult] = useState(
+ props.relationships.map((t) => {
+ return t.name;
+ })
+ );
+
+ const handleStringSearch = (value) => {
+ setFilteredResult(
+ props.relationships
+ .map((t) => {
+ return t.name;
+ })
+ .filter((i) => i.includes(value))
+ );
+ };
return (
-
- {props.relationships.map((r, i) => (
- {r.name}