修改手风琴治理设备便携式tree高度

This commit is contained in:
zhujiyan
2024-07-24 15:20:43 +08:00
parent deabcda127
commit 26136c79e6
2 changed files with 11 additions and 11 deletions

View File

@@ -31,10 +31,10 @@
/> />
</div> </div>
<el-collapse accordion v-model="activeName" style="flex: 1; overflow: auto" @change="changeDevice"> <el-collapse accordion v-model="activeName" style="flex: 1; height: 100%" @change="changeDevice">
<el-collapse-item title="治理设备" :name="0"> <el-collapse-item title="治理设备" :name="0">
<el-tree <el-tree
style="min-height: calc(100vh - 250px)" style="height: calc(100vh - 350px); overflow: auto"
ref="treeRef1" ref="treeRef1"
:props="defaultProps" :props="defaultProps"
highlight-current highlight-current
@@ -59,7 +59,7 @@
</el-collapse-item> </el-collapse-item>
<el-collapse-item title="便携式设备" :name="1"> <el-collapse-item title="便携式设备" :name="1">
<el-tree <el-tree
style="min-height: calc(100vh - 250px)" style="height: calc(100vh - 290px); overflow: auto"
ref="treeRef2" ref="treeRef2"
:props="defaultProps" :props="defaultProps"
highlight-current highlight-current

View File

@@ -32,10 +32,10 @@
/> />
</div> </div>
<el-collapse accordion v-model="activeName" style="flex: 1; overflow: auto" @change="changeDevice"> <el-collapse accordion v-model="activeName" style="flex: 1; height: 100%" @change="changeDevice">
<el-collapse-item title="治理设备" :name="0"> <el-collapse-item title="治理设备" :name="0">
<el-tree <el-tree
style="min-height: calc(100vh - 250px)" style="height: calc(100vh - 350px); overflow: auto"
ref="treeRef1" ref="treeRef1"
:props="defaultProps" :props="defaultProps"
highlight-current highlight-current
@@ -60,7 +60,7 @@
</el-collapse-item> </el-collapse-item>
<el-collapse-item title="便携式设备" :name="1"> <el-collapse-item title="便携式设备" :name="1">
<el-tree <el-tree
style="min-height: calc(100vh - 250px)" style="height: calc(100vh - 290px); overflow: auto"
ref="treeRef2" ref="treeRef2"
:props="defaultProps" :props="defaultProps"
highlight-current highlight-current
@@ -112,7 +112,7 @@ const props = withDefaults(defineProps<Props>(), {
}) })
const route = useRoute() const route = useRoute()
console.log(route,"6666677788889") console.log(route, '6666677788889')
const { proxy } = useCurrentInstance() const { proxy } = useCurrentInstance()
const menuCollapse = ref(false) const menuCollapse = ref(false)
const activeName = ref(0) const activeName = ref(0)