refactor: Make menu sorting more intuitive (halo-dev/console#350)

* refactor: Make menu sorting more intuitive

* refactor: Make menu sorting more intuitive

Co-authored-by: cetr <2058930674@qq.com>
pull/3445/head
知雨 2021-08-29 14:43:22 +08:00 committed by GitHub
parent d97be794b0
commit 0d6faaf774
1 changed files with 5 additions and 4 deletions

View File

@ -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>