Browse Source

refactor: Make menu sorting more intuitive (#350)

* refactor: Make menu sorting more intuitive

* refactor: Make menu sorting more intuitive

Co-authored-by: cetr <2058930674@qq.com>
pull/352/head
知雨 3 years ago committed by GitHub
parent
commit
70548be6b0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 9
      src/views/interface/components/MenuTreeNode.vue

9
src/views/interface/components/MenuTreeNode.vue

@ -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…
Cancel
Save