-
-
- {
- currentPath.length > 0 ?
- currentPath.map((i: string, idx: any) => (
-
-
- {i}
-
- {
- currentPath.length - 1 > idx &&
-
- }
-
- )) :
- 所有用例
- }
-
- ({cases.length})
-
-
- {
- access.canTester() &&
-
-
-
-
-
- }
-
+ const wrapperSzie = useSize(wrapperRef)
-
+ const filterHeight = filter && filterSize?.height ? filterSize.height : 0
+ const wrapperHeight = wrapperSzie?.height ? wrapperSzie.height : 0
+ const caseContentHeight = wrapperHeight - 48 * 2 - filterHeight
-
+ const caseDomHeight = wrapperHeight - filterHeight
-
- {
- access.canTester() &&
- <>
-
-
-
- >
- }
-
-
-
- setInp(target.value)}
- onSearch={() => handleOkFilter({ key: inp })}
- // onKeyUp={handleKeyup}
- />
- setFilter(!filter)}>
-
-
- 筛选
+ return (
+
+
+
+ {
+ currentPath.length > 0 ?
+ currentPath.map((i: string, idx: any) => (
+
+
+ {i}
+
{
- filter ?
- :
-
+ currentPath.length - 1 > idx &&
+
}
-
-
-
-
-
-
+
+ )) :
+
所有用例
+ }
+
+ ({cases.length})
+
+
{
- filter &&
- <>
-
-
- >
- //
+ access.canTester() &&
+
+
+
+
+
}
+
-
+
- {
- cases.length === 0 ?
-
:
-
-
+
+
+ {
+ access.canTester() &&
+ <>
+
-
- }
-
+ 批量移动
+
+
+
+ >
+ }
+
+
+
+ setInp(target.value)}
+ onSearch={() => handleOkFilter({ key: inp })}
+ // onKeyUp={handleKeyup}
+ />
+ setFilter(!filter)}>
+
+
+ 筛选
+ {
+ filter ?
+ :
+
+ }
+
+
+
+
+
+ {
+ filter &&
+ <>
+
+
+ >
+ }
+
+ {
+ cases.length === 0 ?
+
:
+
+
+
+
+ {
+ getModalCase(defaultParams)
+ }}
+ />
+
+
+ }
{
loading &&
diff --git a/src/pages/Suite/index.tsx b/src/pages/Suite/index.tsx
index cbd14bd676198b184d516df1e26b588e9f0e234d..aabd4678f78be42657ab10e5c6f5640f4730b8a8 100644
--- a/src/pages/Suite/index.tsx
+++ b/src/pages/Suite/index.tsx
@@ -46,11 +46,11 @@ const TableList: React.FC
= (props) => {
return (
-