fix: bug#10450

This commit is contained in:
leiqiaochu 2023-03-21 13:53:02 +08:00
parent a49e7858ee
commit 6c2cd40b56
2 changed files with 3 additions and 1 deletions

View File

@ -12,6 +12,7 @@
:request="queryTree"
model="TABLE"
type="TREE"
v-model:expandedRowKeys="expandedRowKeys"
:scroll="{ y: 550 }"
:defaultParams="{
paging: false,
@ -128,6 +129,7 @@ let params = ref();
*/
const handleSearch = (e: any) => {
params.value = e;
expandedRowKeys.value = []
};
/**
* 操作栏按钮

View File

@ -46,6 +46,7 @@
v-bind="slotProps"
:active="_selectedRowKeys.includes(slotProps.id)"
:status="slotProps.state"
@click="handleView(slotProps.id)"
:statusText="slotProps.state === 1 ? '正常' : '禁用'"
:statusNames="{
1: 'processing',
@ -66,7 +67,6 @@
<template #content>
<Ellipsis style="width: calc(100% - 100px)"
><span
@click.stop="handleView(slotProps.id)"
style="font-weight: 600; font-size: 16px"
>
{{ slotProps.name }}