Skip to content
This repository has been archived by the owner on Jan 21, 2024. It is now read-only.

Commit

Permalink
refactor: Make menu sorting more intuitive (#350)
Browse files Browse the repository at this point in the history
* refactor: Make menu sorting more intuitive

* refactor: Make menu sorting more intuitive

Co-authored-by: cetr <[email protected]>
  • Loading branch information
cetr and cetr authored Aug 29, 2021
1 parent a4a7502 commit 70548be
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/views/interface/components/MenuTreeNode.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,15 @@
@input="emitter"
@start="isDragging = true"
@end="isDragging = false"
handle=".title"
handle=".mover"
>
<transition-group>
<div :key="item.id" v-for="item in realValue">
<a-list-item class="cursor-pointer menu-item">
<a-list-item class="menu-item">
<a-list-item-meta>
<span slot="title" class="inline-block font-bold cursor-move title"
>{{ item.name }}
<span slot="title" class="inline-block font-bold title">
<a-icon class="cursor-pointer mover" type="bars" />
{{ item.name }}
<a-tooltip title="外部链接" v-if="item.target === '_blank'">
<a-icon type="link" />
</a-tooltip>
Expand Down

0 comments on commit 70548be

Please sign in to comment.