Set usually border color

This commit is contained in:
LeoKu 2023-09-29 12:11:05 +08:00
parent 06ad45f138
commit 9197e862c5
2 changed files with 2 additions and 1 deletions

View File

@ -2,7 +2,7 @@
<div
class="avatar-border"
:style="{ borderColor: props.color, borderRadius: props.radius }"
></div>
/>
</template>
<script lang="ts" setup>

View File

@ -77,6 +77,7 @@ export function getRandomAvatarOption(
}),
borderColor: getRandomValue(SETTINGS.borderColor, {
avoid: [useOption.background?.color],
usually: ['transparent'],
}),
},