refactor: improve ui consistency
This commit is contained in:
@@ -1,16 +1,12 @@
|
||||
<template>
|
||||
<div
|
||||
class="flex items-center flex-1 cursor-pointer transition flex-nowrap group hover:text-secondaryDark"
|
||||
@click="$emit('change', value)"
|
||||
>
|
||||
<span class="inline-flex mr-4">
|
||||
<i v-if="value === selected" class="text-accent material-icons">
|
||||
radio_button_checked
|
||||
</i>
|
||||
<i v-else class="material-icons">radio_button_unchecked</i>
|
||||
</span>
|
||||
<span class="inline-flex font-semibold">{{ label }}</span>
|
||||
</div>
|
||||
<SmartItem
|
||||
:label="label"
|
||||
:icon="
|
||||
value === selected ? 'radio_button_checked' : 'radio_button_unchecked'
|
||||
"
|
||||
:active="value === selected"
|
||||
@click.native="$emit('change', value)"
|
||||
/>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<div class="flex flex-col space-y-4">
|
||||
<div class="flex flex-col">
|
||||
<SmartRadio
|
||||
v-for="(radio, index) in radios"
|
||||
:key="`radio-${index}`"
|
||||
|
||||
Reference in New Issue
Block a user