mirror of
https://github.com/pure-admin/vue-pure-admin.git
synced 2025-06-08 01:17:23 +08:00
style: perf sidebar style (#95)
This commit is contained in:
parent
dae0b5dc08
commit
e0551251d3
@ -112,8 +112,11 @@ function resolvePath(routePath) {
|
|||||||
<template #content> {{ $t(onlyOneChild.meta.title) }} </template>
|
<template #content> {{ $t(onlyOneChild.meta.title) }} </template>
|
||||||
<span
|
<span
|
||||||
ref="menuTextRef"
|
ref="menuTextRef"
|
||||||
style="overflow: hidden; text-overflow: ellipsis"
|
:style="{
|
||||||
:style="pureApp.sidebar.opened ? 'width: 125px' : ''"
|
width: pureApp.sidebar.opened ? '125px' : '',
|
||||||
|
overflow: 'hidden',
|
||||||
|
textOverflow: 'ellipsis'
|
||||||
|
}"
|
||||||
@mouseover="hoverMenu(onlyOneChild)"
|
@mouseover="hoverMenu(onlyOneChild)"
|
||||||
>
|
>
|
||||||
{{ $t(onlyOneChild.meta.title) }}
|
{{ $t(onlyOneChild.meta.title) }}
|
||||||
@ -148,12 +151,12 @@ function resolvePath(routePath) {
|
|||||||
<template #content> {{ $t(props.item.meta.title) }} </template>
|
<template #content> {{ $t(props.item.meta.title) }} </template>
|
||||||
<div
|
<div
|
||||||
ref="menuTextRef"
|
ref="menuTextRef"
|
||||||
style="
|
:style="{
|
||||||
display: inline-block;
|
width: pureApp.sidebar.opened ? '125px' : '',
|
||||||
overflow: hidden;
|
display: 'inline-block',
|
||||||
text-overflow: ellipsis;
|
overflow: 'hidden',
|
||||||
width: 125px;
|
textOverflow: 'ellipsis'
|
||||||
"
|
}"
|
||||||
@mouseover="hoverMenu(props.item)"
|
@mouseover="hoverMenu(props.item)"
|
||||||
>
|
>
|
||||||
<span style="overflow: hidden; text-overflow: ellipsis">
|
<span style="overflow: hidden; text-overflow: ellipsis">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user