Explorar el Código

添加相应 点击行

visuddhinanda hace 1 año
padre
commit
49c7d6b6f1
Se han modificado 1 ficheros con 10 adiciones y 0 borrados
  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);
+            }
+          },
+        };
+      }}
     />
     />
   );
   );
 };
 };