mirror of
https://github.com/continew-org/continew-admin-ui.git
synced 2025-09-12 16:57:10 +08:00
style: 菜单树地三层横向布局
This commit is contained in:
@@ -45,7 +45,7 @@
|
|||||||
<a-tree
|
<a-tree
|
||||||
ref="menuTreeRef"
|
ref="menuTreeRef"
|
||||||
v-model:checked-keys="form.menuIds"
|
v-model:checked-keys="form.menuIds"
|
||||||
class="w-full"
|
class="w-full menu-tree"
|
||||||
:data="menuList"
|
:data="menuList"
|
||||||
:default-expand-all="isMenuExpanded"
|
:default-expand-all="isMenuExpanded"
|
||||||
:check-strictly="!form.menuCheckStrictly"
|
:check-strictly="!form.menuCheckStrictly"
|
||||||
@@ -283,7 +283,17 @@ fieldset legend {
|
|||||||
:deep(.arco-form-item-extra) {
|
:deep(.arco-form-item-extra) {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
:deep(.arco-modal-footer){
|
:deep(.arco-modal-footer){
|
||||||
margin-top: -20px;
|
margin-top: -20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.menu-tree{
|
||||||
|
:deep(.arco-tree-node-is-leaf) {
|
||||||
|
display: inline-flex;
|
||||||
|
}
|
||||||
|
:deep(.arco-tree-node-indent-block){
|
||||||
|
width: 10px;
|
||||||
|
}
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
@@ -15,7 +15,7 @@
|
|||||||
<a-input v-model.trim="form.name" placeholder="请输入名称" />
|
<a-input v-model.trim="form.name" placeholder="请输入名称" />
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
<a-form-item label="编码" field="code">
|
<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>
|
||||||
<a-form-item label="排序" field="sort">
|
<a-form-item label="排序" field="sort">
|
||||||
<a-input-number v-model="form.sort" placeholder="请输入排序" :min="1" mode="button" />
|
<a-input-number v-model="form.sort" placeholder="请输入排序" :min="1" mode="button" />
|
||||||
@@ -41,6 +41,7 @@
|
|||||||
<template #extra>
|
<template #extra>
|
||||||
<a-tree
|
<a-tree
|
||||||
ref="menuTreeRef"
|
ref="menuTreeRef"
|
||||||
|
class="menu-tree"
|
||||||
:data="menuList"
|
:data="menuList"
|
||||||
:default-expand-all="isMenuExpanded"
|
:default-expand-all="isMenuExpanded"
|
||||||
:check-strictly="!form.menuCheckStrictly"
|
:check-strictly="!form.menuCheckStrictly"
|
||||||
@@ -235,4 +236,12 @@ fieldset legend {
|
|||||||
border: 1px solid var(--color-neutral-3);
|
border: 1px solid var(--color-neutral-3);
|
||||||
border-radius: 3px;
|
border-radius: 3px;
|
||||||
}
|
}
|
||||||
|
.menu-tree{
|
||||||
|
:deep(.arco-tree-node-is-leaf) {
|
||||||
|
display: inline-flex;
|
||||||
|
}
|
||||||
|
:deep(.arco-tree-node-indent-block){
|
||||||
|
width: 10px;
|
||||||
|
}
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
Reference in New Issue
Block a user