From 07e6fbe67707e2d75d2f4bc77e173d0e9d117b31 Mon Sep 17 00:00:00 2001 From: "shiweisong.ssw" Date: Wed, 5 Jul 2023 14:14:58 +0800 Subject: [PATCH] feat: set owner and desc --- datacenter/app/datastores/documents/page.tsx | 2 +- datacenter/app/datastores/page.tsx | 34 +++++++++++++++++--- 2 files changed, 30 insertions(+), 6 deletions(-) diff --git a/datacenter/app/datastores/documents/page.tsx b/datacenter/app/datastores/documents/page.tsx index ff8ec0268..0283fabd2 100644 --- a/datacenter/app/datastores/documents/page.tsx +++ b/datacenter/app/datastores/documents/page.tsx @@ -321,7 +321,7 @@ const Documents = () => { key={item} sx={{ fontWeight: activeStep === index ? 'bold' : '', - color: activeStep === index ? '#814DDE' : '' + color: activeStep === index ? '#2AA3FF' : '' }} > {index < activeStep ? : `${index + 1}.`} diff --git a/datacenter/app/datastores/page.tsx b/datacenter/app/datastores/page.tsx index 0874707d5..3a6325d89 100644 --- a/datacenter/app/datastores/page.tsx +++ b/datacenter/app/datastores/page.tsx @@ -70,6 +70,8 @@ const Index = () => { const [isAddKnowledgeSpaceModalShow, setIsAddKnowledgeSpaceModalShow] = useState(false) const [knowledgeSpaceName, setKnowledgeSpaceName] = useState('') + const [owner, setOwner] = useState('') + const [description, setDescription] = useState('') const [webPageUrl, setWebPageUrl] = useState('') const [documentName, setDocumentName] = useState('') const [textSource, setTextSource] = useState('') @@ -157,11 +159,12 @@ const Index = () => { width: '32px', height: '32px', lineHeight: '28px', - border: '1px solid gray', + border: '1px solid #2AA3FF', textAlign: 'center', borderRadius: '5px', marginRight: '5px', - fontWeight: '300' + fontWeight: '300', + color: '#2AA3FF' }} >+ { key={item} sx={{ fontWeight: activeStep === index ? 'bold' : '', - color: activeStep === index ? '#814DDE' : '' + color: activeStep === index ? '#2AA3FF' : '' }} > {index < activeStep ? ( @@ -297,6 +300,19 @@ const Index = () => { setKnowledgeSpaceName(e.target.value)} + sx={{ marginBottom: '20px' }} + /> + Owner: + setOwner(e.target.value)} + sx={{ marginBottom: '20px' }} + /> + Description: + setDescription(e.target.value)} + sx={{ marginBottom: '20px' }} />