|
@@ -42,7 +42,7 @@ const handelFilter = (value, data: Outline) => {
|
|
|
|
|
|
<template>
|
|
|
<div>
|
|
|
- <el-input v-model="inputVal" placeholder="节点过滤" class="search_input" @input="handelInput" clearable/>
|
|
|
+ <el-input v-model="inputVal" placeholder="节点过滤" @input="handelInput" clearable/>
|
|
|
<div :style="{maxHeight : maxHeight - 50 + 'px'}" class="outline_main">
|
|
|
<el-tree
|
|
|
ref="elTreeRef"
|
|
@@ -67,12 +67,5 @@ const handelFilter = (value, data: Outline) => {
|
|
|
<style scoped lang="scss">
|
|
|
.outline_main {
|
|
|
overflow: auto;
|
|
|
- position: relative;
|
|
|
-
|
|
|
- .search_input {
|
|
|
- position: sticky;
|
|
|
- top: 0;
|
|
|
- left: 0;
|
|
|
- }
|
|
|
}
|
|
|
</style>
|