Skip to content

Commit

Permalink
change:menu-item 添加title 属性.显示完成名称(#171)
Browse files Browse the repository at this point in the history
  • Loading branch information
willnewii committed Nov 5, 2020
1 parent 8ca95a1 commit 0f9ba09
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions src/renderer/components/ResourceList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
>
<template v-if="file._directory">
<Icon class="file" :type="file._icon" size="50"></Icon>
<span class="name">{{ file._name }}</span>
<span class="name" :title="file._name">{{ file._name }}</span>
</template>
<template v-else>
<img
Expand All @@ -71,7 +71,7 @@
v-lazy="file.imgObj"
/>
<Icon v-else class="file" :type="file._icon" size="50"></Icon>
<span class="name">{{ file.displayName }}</span>
<span class="name" :title="file.displayName">{{ file.displayName }}</span>
<div class="btn">
<Button
shape="circle"
Expand Down Expand Up @@ -112,11 +112,11 @@
>
<template v-if="file._directory">
<Icon :type="file._icon" size="15"></Icon>
<span class="name">{{ file._name }}</span>
<span class="name" :title="file._name">{{ file._name }}</span>
</template>
<template v-else>
<Icon :type="file._icon" size="15"></Icon>
<span class="name">{{ file.displayName }}</span>
<span class="name" :title="file.displayName">{{ file.displayName }}</span>
<span class="date">{{ file.putTime | formatDate }}</span>
<span class="size">{{ file.fsize | formatFileSize }}</span>
</template>
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/pages/Main.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<template v-if="menuState">
<Icon :size="item.size ? item.icon : 25"
:type="item.permission === 1 ? 'md-lock' : (bucketInfo.name === item.name ? 'md-folder-open' : 'md-folder')"></Icon>
<span class="layout-text">{{item.name}}</span>
<span class="layout-text" :title="item.name" >{{item.name}}</span>
</template>
<template v-else>
<span class="layout-icon">{{item.name.substring(0,1)}}</span>
Expand Down

0 comments on commit 0f9ba09

Please sign in to comment.