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"
|
@input="emitter"
|
||||||
@start="isDragging = true"
|
@start="isDragging = true"
|
||||||
@end="isDragging = false"
|
@end="isDragging = false"
|
||||||
handle=".title"
|
handle=".mover"
|
||||||
>
|
>
|
||||||
<transition-group>
|
<transition-group>
|
||||||
<div :key="item.id" v-for="item in realValue">
|
<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>
|
<a-list-item-meta>
|
||||||
<span slot="title" class="inline-block font-bold cursor-move title"
|
<span slot="title" class="inline-block font-bold title">
|
||||||
>{{ item.name }}
|
<a-icon class="cursor-pointer mover" type="bars" />
|
||||||
|
{{ item.name }}
|
||||||
<a-tooltip title="外部链接" v-if="item.target === '_blank'">
|
<a-tooltip title="外部链接" v-if="item.target === '_blank'">
|
||||||
<a-icon type="link" />
|
<a-icon type="link" />
|
||||||
</a-tooltip>
|
</a-tooltip>
|
||||||
|
|
Loading…
Reference in New Issue