feat(数据集): 树列表侧边栏新增展开、收起功能

This commit is contained in:
dataeaseShu 2024-02-23 16:10:03 +08:00
parent 4bdc1ad28a
commit f7fe6db8a3

View File

@ -2,7 +2,7 @@
import { ref } from 'vue'
const sideTreeStatus = ref(true)
const emits = defineEmits(['changeSideTreeStatus'])
const handelClick = val => {
const handleClick = val => {
emits('changeSideTreeStatus', val)
sideTreeStatus.value = val
}
@ -10,7 +10,7 @@ const handelClick = val => {
<template>
<div
@click="handelClick(false)"
@click="handleClick(false)"
v-if="sideTreeStatus"
class="arrow-side-tree arrow-side-tree-left"
>
@ -18,7 +18,7 @@ const handelClick = val => {
<Icon name="icon_left_outlined" />
</el-icon>
</div>
<div @click="handelClick(true)" v-else class="arrow-side-tree arrow-side-tree-right">
<div @click="handleClick(true)" v-else class="arrow-side-tree arrow-side-tree-right">
<el-icon>
<Icon name="icon_right_outlined" />
</el-icon>