style: 菜单树地三层横向布局

This commit is contained in:
KAI
2024-12-08 17:59:16 +08:00
committed by Charles7c
parent 51a2168822
commit 43dd512b8a
2 changed files with 21 additions and 2 deletions

View File

@@ -45,7 +45,7 @@
<a-tree
ref="menuTreeRef"
v-model:checked-keys="form.menuIds"
class="w-full"
class="w-full menu-tree"
:data="menuList"
:default-expand-all="isMenuExpanded"
:check-strictly="!form.menuCheckStrictly"
@@ -283,7 +283,17 @@ fieldset legend {
:deep(.arco-form-item-extra) {
width: 100%;
}
:deep(.arco-modal-footer){
margin-top: -20px;
}
.menu-tree{
:deep(.arco-tree-node-is-leaf) {
display: inline-flex;
}
:deep(.arco-tree-node-indent-block){
width: 10px;
}
}
</style>

View File

@@ -15,7 +15,7 @@
<a-input v-model.trim="form.name" placeholder="请输入名称" />
</a-form-item>
<a-form-item label="编码" field="code">
<a-input v-model.trim="form.code" placeholder="请输入编码" :disabled="isUpdate" />
<a-input v-model.trim="form.code" placeholder="请输入编码" :disabled="true" />
</a-form-item>
<a-form-item label="排序" field="sort">
<a-input-number v-model="form.sort" placeholder="请输入排序" :min="1" mode="button" />
@@ -41,6 +41,7 @@
<template #extra>
<a-tree
ref="menuTreeRef"
class="menu-tree"
:data="menuList"
:default-expand-all="isMenuExpanded"
:check-strictly="!form.menuCheckStrictly"
@@ -235,4 +236,12 @@ fieldset legend {
border: 1px solid var(--color-neutral-3);
border-radius: 3px;
}
.menu-tree{
:deep(.arco-tree-node-is-leaf) {
display: inline-flex;
}
:deep(.arco-tree-node-indent-block){
width: 10px;
}
}
</style>