Przeglądaj źródła

添加相应 点击行

visuddhinanda 1 rok temu
rodzic
commit
49c7d6b6f1
1 zmienionych plików z 10 dodań i 0 usunięć
  1. 10 0
      dashboard/src/components/tag/TagList.tsx

+ 10 - 0
dashboard/src/components/tag/TagList.tsx

@@ -163,6 +163,16 @@ const TagsList = ({ studioName, readonly = false, onSelect }: IWidget) => {
           },
         },
       }}
+      onItem={(record: ITagData, index: number) => {
+        return {
+          onClick: (event) => {
+            // 点击行
+            if (typeof onSelect !== "undefined") {
+              onSelect(record);
+            }
+          },
+        };
+      }}
     />
   );
 };