소스 검색

add ReloadOutlined

visuddhinanda 2 년 전
부모
커밋
90e9da028b
1개의 변경된 파일10개의 추가작업 그리고 8개의 파일을 삭제
  1. 10 8
      dashboard/src/components/channel/ChannelPickerTable.tsx

+ 10 - 8
dashboard/src/components/channel/ChannelPickerTable.tsx

@@ -8,6 +8,7 @@ import {
   EditOutlined,
   MoreOutlined,
   CopyOutlined,
+  ReloadOutlined,
 } from "@ant-design/icons";
 
 import { IApiResponseChannelList, IFinal, TChannelType } from "../api/Channel";
@@ -57,6 +58,7 @@ const ChannelPickerTableWidget = ({
   onSelect,
   reload = false,
 }: IWidget) => {
+  console.log("selectedKeys", selectedKeys);
   const intl = useIntl();
   const [selectedRowKeys, setSelectedRowKeys] =
     useState<React.Key[]>(selectedKeys);
@@ -228,13 +230,6 @@ const ChannelPickerTableWidget = ({
         filterType: "light",
       }}
       toolBarRender={() => [
-        <Button
-          onClick={() => {
-            ref.current?.reload();
-          }}
-        >
-          reload
-        </Button>,
         multiSelect ? (
           <Button
             onClick={() => {
@@ -245,6 +240,13 @@ const ChannelPickerTableWidget = ({
             选择
           </Button>
         ) : undefined,
+        <Button
+          type="link"
+          onClick={() => {
+            ref.current?.reload();
+          }}
+          icon={<ReloadOutlined />}
+        />,
       ]}
       metas={{
         title: {
@@ -268,7 +270,7 @@ const ChannelPickerTableWidget = ({
                   padding: "0 5px",
                   background:
                     selectedKeys.includes(entity.uid) && !showCheckBox
-                      ? "linear-gradient(to right,#006112,rgba(0,0,0,0))"
+                      ? "linear-gradient(to left, rgb(109 245 135), rgba(0, 0, 0, 0))"
                       : undefined,
                 }}
               >