字典加入颜色方便使用

This commit is contained in:
xiangheng
2023-12-21 23:20:33 +08:00
parent cefdc294ef
commit 3471eb1a8f
13 changed files with 271 additions and 313 deletions

View File

@@ -1,7 +1,7 @@
<template>
<div>
<template v-for="(item, index) in getOptions" :key="index">
<span>{{ index != 0 ? '、' : '' }}{{ item.name }}</span>
<span :style="{ color: item.color }">{{ index != 0 ? '、' : '' }}{{ item.name }}</span>
</template>
</div>
</template>