mirror of https://github.com/halo-dev/halo
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
parent
d97be794b0
commit
0d6faaf774
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue