会员:等级下拉框显示图标

(cherry picked from commit c5a703f488)
This commit is contained in:
owen 2023-08-22 01:48:52 +08:00 committed by shizhong
parent 9efe122318
commit c01a8f9e99

View File

@ -1,11 +1,11 @@
<template>
<el-select v-model="levelId" placeholder="请选择用户等级" clearable class="!w-240px">
<el-option
v-for="level in levelOptions"
:key="level.id"
:label="level.name"
:value="level.id"
/>
<el-option v-for="level in levelOptions" :key="level.id" :label="level.name" :value="level.id">
<span class="flex items-center gap-x-8px">
<el-avatar :src="level.icon" size="small" />
{{ level.name }}
</span>
</el-option>
</el-select>
</template>