void;
+// checkedIds: any[];
+// setCheckedIds: (ids: any[]) => void;
+// selectedCategories: {
+// id: any;
+// name: string;
+// children: {
+// id: any;
+// name: string;
+// children: { id: any; name: string }[];
+// }[];
+// }[];
+// setSelectedCategories: (categories: any[]) => void;
+// handleExpandClick: (id: any) => void;
+// handleSmallMenuClick: (id: any) => void;
+// }
+
+export default function TreeMenu({
+ trademarkCategories,
+ expandedIds,
+// setExpandedIds,
+ checkedIds,
+// setCheckedIds,
+// selectedCategories,
+// setSelectedCategories,
+ handleExpandClick,
+ handleSmallMenuClick
+}: any) {
+ useEffect(() => {
+ console.log('props', trademarkCategories);
+ }, []);
+
+ const renderChildren = (children: any[], level: number) => {
+ return children.map((child) => {
+ const isExpanded = expandedIds.includes(child.id);
+ const isLeaf = !child.children || child.children.length === 0;
+ const isChecked = checkedIds.includes(child.id);
+
+ return (
+
+ {!isLeaf && (
+
handleExpandClick(child.id)}
+ >
+
+ {isExpanded ? : }
+
+
{child.name}
+
+ )}
+ {isLeaf && (
+
handleSmallMenuClick(child.id)}
+ style={{
+ cursor: 'pointer',
+
+ }}
+ >
+ {child.name}
+
+ )}
+ {!isLeaf && isExpanded && renderChildren(child.children, level + 1)}
+
+ );
+ });
+ };
+
+ return (
+
+ {trademarkCategories.map((category:any) => {
+ const isExpanded = expandedIds.includes(category.id);
+ return (
+
+
handleExpandClick(category.id)}
+ >
+
+ {isExpanded ? : }
+
+
{category.name}
+
+ {isExpanded && renderChildren(category.children, 1)}
+
+ );
+ })}
+
+ );
+}
\ No newline at end of file
diff --git a/src/route/TrademarkMall/components/EditTwo/components/TreeMenu/tree-menu.css b/src/route/TrademarkMall/components/EditTwo/components/TreeMenu/tree-menu.css
new file mode 100644
index 0000000..0b40191
--- /dev/null
+++ b/src/route/TrademarkMall/components/EditTwo/components/TreeMenu/tree-menu.css
@@ -0,0 +1,10 @@
+.bigMenu {
+ display: flex;
+ cursor: pointer;
+}
+
+.smallMenu {
+ margin-left: 20px;
+ cursor: pointer;
+
+}
\ No newline at end of file
diff --git a/src/route/TrademarkMall/components/EditTwo/edit-tow.css b/src/route/TrademarkMall/components/EditTwo/edit-tow.css
new file mode 100644
index 0000000..5626385
--- /dev/null
+++ b/src/route/TrademarkMall/components/EditTwo/edit-tow.css
@@ -0,0 +1,91 @@
+.editTwoTitle{
+ font-size: 18px;
+ /* font-weight: 700; */
+}
+.editTwoBotL {
+ width: calc(30% - 2px);
+ height: 100%;
+ /* background-color: aqua; */
+ border-left: 1px solid #e9e9e9;
+ border-right: 1px solid #e9e9e9;
+ border-top: 1px solid #e9e9e9;
+ position: relative;
+}
+
+.editTwoBotR {
+ width: calc(70% - 1px);
+ height: 100%;
+ /* background-color: rgb(179, 245, 195); */
+ border-right: 1px solid #e9e9e9;
+ border-top: 1px solid #e9e9e9;
+
+}
+
+.editTwoBTopTitle {
+ height: 40px;
+ background-color: #F3F3F3;
+ font-size: 16px;
+ line-height: 40px;
+ padding-left: 10px;
+ color: #5a5a5a;
+}
+
+.editTwoBTopText {
+ height: calc(100% - 40px);
+ overflow-y: auto;
+
+
+
+ /* WebKit 浏览器(Chrome、Safari 等) */
+ scrollbar-width: thin;
+ /* Firefox */
+ scrollbar-color: #888 #f1f1f1;
+ /* Firefox */
+}
+
+/* WebKit 浏览器(Chrome、Safari 等) */
+.editTwoBTopText::-webkit-scrollbar {
+ width: 8px;
+ /* 垂直滚动条宽度 */
+}
+
+.editTwoBTopText::-webkit-scrollbar-track {
+ background: #f1f1f1;
+ /* 滚动条轨道背景颜色 */
+}
+
+.editTwoBTopText::-webkit-scrollbar-thumb {
+ background: #888;
+ /* 滚动条滑块颜色 */
+ border-radius: 4px;
+ /* 滚动条滑块圆角 */
+}
+
+.editTwoBTopText::-webkit-scrollbar-thumb:hover {
+ background: #555;
+ /* 鼠标悬停时滚动条滑块颜色 */
+}
+
+
+
+
+.editTwoBTopTextL {
+ padding-top: 40px;
+ padding-left: 10px;
+ box-sizing: border-box;
+}
+.editTwoBTopTextR{
+ padding: 10px;
+ box-sizing: border-box
+}
+.editTwoBTopSearch {
+ height: 40px;
+ /* width: calc(100% - 10px); */
+ width: 100%;
+ background-color: skyblue;
+ position: absolute;
+ top: 40px;
+ left: 0;
+ z-index: 999;
+
+}
\ No newline at end of file