gaoluyang
2026-06-24 712aa51536236d43e87273e4ce45ac5691dffad8
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<script setup lang="ts">
import type { MenuListProperty } from './config';
 
import { IconifyIcon } from '..\..\..\..\..\..\..\..\packages\icons\src';
 
import { Image } from 'ant-design-vue';
 
/** 列表导航 */
defineOptions({ name: 'MenuList' });
 
defineProps<{ property: MenuListProperty }>();
</script>
 
<template>
  <div class="flex min-h-10 flex-col">
    <div
      v-for="(item, index) in property.list"
      :key="index"
      class="flex h-10 flex-row items-center justify-between gap-1 border-t border-gray-200 px-3 first:border-t-0"
    >
      <div class="flex flex-1 flex-row items-center gap-2">
        <Image
          v-if="item.iconUrl"
          class="h-4 w-4"
          :src="item.iconUrl"
          :preview="false"
        />
        <span class="text-base" :style="{ color: item.titleColor }">
          {{ item.title }}
        </span>
      </div>
      <div class="item-center flex flex-row justify-center gap-1">
        <span class="text-xs" :style="{ color: item.subtitleColor }">
          {{ item.subtitle }}
        </span>
        <IconifyIcon icon="ep:arrow-right" color="#000" :size="16" />
      </div>
    </div>
  </div>
</template>