From 526a2e48a6a8c6099eeb542dc44248fefb78ce52 Mon Sep 17 00:00:00 2001 From: ZLY Date: Wed, 21 Jan 2026 10:45:06 +0800 Subject: [PATCH] =?UTF-8?q?feat(component):=20=E6=B7=BB=E5=8A=A0=E7=BB=84?= =?UTF-8?q?=E4=BB=B6=E6=B5=8B=E8=AF=95=E7=94=A8=E4=BE=8B=E5=90=AF=E5=8A=A8?= =?UTF-8?q?=E5=8A=9F=E8=83=BD=E5=B9=B6=E4=BC=98=E5=8C=96=E7=BB=84=E4=BB=B6?= =?UTF-8?q?=E5=88=97=E8=A1=A8=E7=95=8C=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/componentTestCase.ts | 5 ++ .../componentList/index.tsx | 53 +++++++++---------- .../componentList/style/index.module.less | 4 ++ 3 files changed, 35 insertions(+), 27 deletions(-) diff --git a/src/api/componentTestCase.ts b/src/api/componentTestCase.ts index 1ac28e4..218eb44 100644 --- a/src/api/componentTestCase.ts +++ b/src/api/componentTestCase.ts @@ -48,4 +48,9 @@ export function importTestCases(params: { componentBaseId: string, file: File }) 'Content-Type': 'multipart/form-data' } }); +} + +// 开启测试用例 +export function startTestCase(id) { + return axios.get(`${urlPrefix}/componentTestCase/connect`, { params: { id } }); } \ No newline at end of file diff --git a/src/pages/componentDevelopment/componentList/index.tsx b/src/pages/componentDevelopment/componentList/index.tsx index 8de594d..3f9063e 100644 --- a/src/pages/componentDevelopment/componentList/index.tsx +++ b/src/pages/componentDevelopment/componentList/index.tsx @@ -629,32 +629,32 @@ const GlobalVarContainer = () => {
- - {[{ label: '全部', value: '' }, ...componentStatusDict].map((item) => { - return ( - - {({ checked }) => { - return ( - - ); - }} - - ); - })} - + {/**/} + {/* {[{ label: '全部', value: '' }, ...componentStatusDict].map((item) => {*/} + {/* return (*/} + {/* */} + {/* {({ checked }) => {*/} + {/* return (*/} + {/* */} + {/* {item.label}*/} + {/* */} + {/* );*/} + {/* }}*/} + {/* */} + {/* );*/} + {/* })}*/} + {/**/} {selectedItem === '我的组件' && }> {/**/} }
- {/*数据列表*/}
diff --git a/src/pages/componentDevelopment/componentList/style/index.module.less b/src/pages/componentDevelopment/componentList/style/index.module.less index e37e8fa..d28da67 100644 --- a/src/pages/componentDevelopment/componentList/style/index.module.less +++ b/src/pages/componentDevelopment/componentList/style/index.module.less @@ -40,12 +40,16 @@ justify-content: space-between; margin-bottom: 15px; flex-shrink: 0; + flex-direction: column; .comp-list-title { font-size: 18px; font-weight: 700; } + .comp-list-search { + margin-bottom: 20px; + } .comp-list-handle { } }