From 7747dcbea6dde387a1a3dfe5857309d74c29b9c9 Mon Sep 17 00:00:00 2001 From: xion Date: Tue, 8 Oct 2024 17:11:13 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20download=20=E6=A8=A1=E5=9D=97=E5=88=B0?= =?UTF-8?q?=E6=9C=AC=E5=9C=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/chat-manager/chat-prompt/List.tsx | 4 ++-- src/pages/panel/edit/List.tsx | 23 ++++++++++++++++++--- src/pages/panel/store/edit.ts | 15 ++++++++++++++ src/pages/prompt/edit/List.tsx | 17 ++++++++------- vite.config.ts | 5 +++++ 5 files changed, 52 insertions(+), 12 deletions(-) diff --git a/src/pages/chat-manager/chat-prompt/List.tsx b/src/pages/chat-manager/chat-prompt/List.tsx index 7775335..1d6eac0 100644 --- a/src/pages/chat-manager/chat-prompt/List.tsx +++ b/src/pages/chat-manager/chat-prompt/List.tsx @@ -113,8 +113,8 @@ export const List = () => { }, []); return (
-
- +
+
diff --git a/src/pages/panel/edit/List.tsx b/src/pages/panel/edit/List.tsx index e61c835..c25667e 100644 --- a/src/pages/panel/edit/List.tsx +++ b/src/pages/panel/edit/List.tsx @@ -7,7 +7,16 @@ import copy from 'copy-to-clipboard'; import { useNavigate } from 'react-router'; import { useToCodeEditor } from '@/pages/code-editor'; import { CardBlank } from '@/components/card/CardBlank'; -import { CloudUploadOutlined, DeleteOutlined, EditOutlined, ForkOutlined, GoldOutlined, PlusOutlined, ToolOutlined } from '@ant-design/icons'; +import { + CloudDownloadOutlined, + CloudUploadOutlined, + DeleteOutlined, + EditOutlined, + ForkOutlined, + GoldOutlined, + PlusOutlined, + ToolOutlined, +} from '@ant-design/icons'; import { isObjectNull } from '@/utils/is-null'; import { PublishFormModal } from './modal/PublishFormModal'; @@ -100,6 +109,7 @@ export const List = () => { getList: state.getList, loading: state.loading, setShowPublishModal: state.setShowPublishModal, + downloadData: state.downloadData, }; }), ); @@ -108,11 +118,10 @@ export const List = () => { }, []); return ( -
+
+
+ +
{promptStore.list.length > 0 && @@ -249,8 +251,9 @@ export const List = () => {