mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2024-12-15 04:42:23 +08:00
fix(radio): button group color
This commit is contained in:
parent
a2750b8165
commit
af9dd7ea38
@ -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>
|
||||
|
@ -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],
|
||||
|
Loading…
Reference in New Issue
Block a user