fix: 树样式优化

This commit is contained in:
xuziqiang
2024-07-17 15:07:23 +08:00
parent 1be888feba
commit 2a6de583e1
3 changed files with 18 additions and 6 deletions

View File

@@ -10,7 +10,7 @@
</div>
</div>
<div style="min-height: 300px; overflow-y: scroll">
<div style="min-height: 150px; overflow-y: scroll">
<ns-tree v-if="treeData?.length" v-bind="getBindValue" v-model:selectedKeys="selectedKeys">
<template #[item]="data" v-for="(item, index) in Object.keys($slots)" :key="index">
<slot :name="item" v-bind="{ ...data, formModel } || {}"></slot>
@@ -138,9 +138,9 @@
font-weight: bold;
user-select: text;
padding: @gap;
margin-bottom: @gap;
padding-bottom: 10px;
border-bottom: 1px solid #e9e9e9;
// margin-bottom: @gap;
// padding-bottom: 10px;
// border-bottom: 1px solid #e9e9e9;
> span {
padding-left: 6px;