style: update style

This commit is contained in:
zazzaz 2020-08-06 17:16:40 +08:00 committed by jeremywu
parent 3af077453f
commit 51221005e2
2 changed files with 7 additions and 8 deletions

View File

@ -1,8 +1,8 @@
<template>
<!-- <div>
<div>
<el-radio v-model="radio" label="1">1</el-radio>
<el-radio v-model="radio" label="2">2</el-radio>
</div> -->
</div>
<div>
<el-radio-group v-model="radio0">
<el-radio label="3">3</el-radio>
@ -10,14 +10,14 @@
<el-radio label="9">9</el-radio>
</el-radio-group>
</div>
<!-- <div>
<div>
<el-radio-group v-model="radio1">
<el-radio-button label="A" />
<el-radio-button label="B" />
<el-radio-button label="C" />
<el-radio-button label="D" />
</el-radio-group>
</div> -->
</div>
</template>
<script lang="ts">
@ -26,7 +26,7 @@ import { defineComponent } from 'vue'
const basic = defineComponent({
data() {
return {
radio: '2',
radio: '1',
radio0: '3',
radio1: 'A',
}

View File

@ -36,8 +36,7 @@
</label>
</template>
<script>
import { useELEMENT } from 'src'
import { computed, nextTick, ref } from 'vue'
import { computed, nextTick, inject, ref } from 'vue'
export default {
name: 'ElRadioButton',
@ -72,7 +71,7 @@ export default {
return _radioGroup.modelValue.value
},
set(value) {
_radioGroup.emit(value)
_radioGroup.changeEvent(value)
},
})
const activeStyle = computed(() => {