fix(radio): button group color

This commit is contained in:
07akioni 2019-09-15 11:32:59 +08:00
parent a2750b8165
commit af9dd7ea38
2 changed files with 11 additions and 2 deletions

View File

@ -3,12 +3,18 @@
class="n-radio-button"
:class="{
'n-radio-button--disabled': disabled,
'n-radio-button--checked': checked
'n-radio-button--checked': checked,
}"
@click="handleClick"
>
<div class="n-radio-button__border-mask" />
<div class="n-radio-button__label">
<div
class="n-radio-button__label"
:class="{
'simulate-transparent-text': checked
}"
>
<slot />
</div>
</div>

View File

@ -1,5 +1,7 @@
<script>
import texttransparentable from '../../../mixins/texttransparentable'
function mapSlot (h, defaultSlot, currentComponent) {
/**
* connect current component's v-model to child instance
@ -62,6 +64,7 @@ function mapSlot (h, defaultSlot, currentComponent) {
export default {
name: 'NRadioGroup',
mixins: [texttransparentable],
props: {
value: {
type: [Boolean, String, Number],