Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
monorepo
/
venus
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
1
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 353e8be2
authored
Oct 30, 2024
by
Netfan
Committed by
GitHub
Oct 30, 2024
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix: long text style in sidemenu. fixed #4749 (#4770)
1 parent
c2d59dea
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
2 deletions
packages/@core/ui-kit/menu-ui/src/components/menu.vue
packages/@core/ui-kit/menu-ui/src/sub-menu.vue
packages/@core/ui-kit/menu-ui/src/components/menu.vue
View file @
353e8be
...
@@ -718,6 +718,10 @@ $namespace: vben;
...
@@ -718,6 +718,10 @@ $namespace: vben;
align-items
:
center
;
align-items
:
center
;
width
:
100%
;
width
:
100%
;
height
:
var
(
--menu-item-height
);
height
:
var
(
--menu-item-height
);
span
{
@include
menu-title;
}
}
}
&
.is-collapse-show-title
{
&
.is-collapse-show-title
{
...
...
packages/@core/ui-kit/menu-ui/src/sub-menu.vue
View file @
353e8be
...
@@ -42,7 +42,9 @@ const hasChildren = computed(() => {
...
@@ -42,7 +42,9 @@ const hasChildren = computed(() => {
:icon=
"menu.icon"
:icon=
"menu.icon"
:path=
"menu.path"
:path=
"menu.path"
>
>
<template
#
title
>
{{
menu
.
name
}}
</
template
>
<template
#
title
>
<span>
{{
menu
.
name
}}
</span>
</
template
>
</MenuItem>
</MenuItem>
<SubMenuComp
<SubMenuComp
v-else
v-else
...
@@ -59,7 +61,9 @@ const hasChildren = computed(() => {
...
@@ -59,7 +61,9 @@ const hasChildren = computed(() => {
class=
"right-6"
class=
"right-6"
/>
/>
</
template
>
</
template
>
<
template
#
title
>
{{
menu
.
name
}}
</
template
>
<
template
#
title
>
<span>
{{
menu
.
name
}}
</span>
</
template
>
<
template
v-for=
"childItem in menu.children || []"
:key=
"childItem.path"
>
<
template
v-for=
"childItem in menu.children || []"
:key=
"childItem.path"
>
<SubMenu
:menu=
"childItem"
/>
<SubMenu
:menu=
"childItem"
/>
</
template
>
</
template
>
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment