fix(接口测试): 场景数据-频繁滚动导致卡顿问题修复

--bug=1027706 --user=白奇 【接口测试】场景详情-批量展开/单独展开-步骤显示问题 https://www.tapd.cn/55049933/s/1392374
This commit is contained in:
baiqi 2023-07-13 12:42:09 +08:00 committed by fit2-zhao
parent 9f7bc0aafd
commit 7839946bed

View File

@ -275,7 +275,7 @@
node-key="id"
height="calc(100vh - 170px)"
:minItemSize="43"
:sizeDependencies="['expanded', 'checked']"
:sizeDependencies="['expanded']"
:props="props"
:data="scenarioDefinition"
:buffer="300"
@ -294,7 +294,6 @@
:key="reloadTree">
<el-row
slot-scope="{ node, data }"
v-if="isNodeShow(node, data)"
class="custom-tree-node"
:gutter="10"
type="flex"
@ -325,7 +324,7 @@
:show-size="false"
style="margin-right: 10px" />
</span>
<span style="width: calc(100% - 40px)">
<span v-if="isNodeShow(node, data)" style="width: calc(100% - 40px)">
<!-- 步骤组件-->
<ms-component-config
:scenario-definition="scenarioDefinition"
@ -350,10 +349,10 @@
@editScenarioAdvance="editScenarioAdvance"
ref="componentConfig" />
</span>
<div v-else class="el-tree-node is-hidden is-focusable is-leaf" style="display: none">
{{ hideNode(node) }}
</div>
</el-row>
<div v-else class="el-tree-node is-hidden is-focusable is-leaf" style="display: none">
{{ hideNode(node) }}
</div>
</vue-easy-tree>
</div>
</el-row>