tiny-vue/examples/sites/demos/pc/app/radio/default-slot.vue

34 lines
558 B
Vue
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<template>
<div>
<tiny-radio v-model="value" label="1">
<span class="warning-bg">内容一:</span>
<span>选项描述</span>
</tiny-radio>
<tiny-radio v-model="value" label="2">
<span class="warning-bg">内容二</span>
<span>选项描述</span>
</tiny-radio>
</div>
</template>
<script>
import { Radio } from '@opentiny/vue'
export default {
components: {
TinyRadio: Radio
},
data() {
return {
value: '1'
}
}
}
</script>
<style scoped>
.warning-bg {
color: #fa9841;
}
</style>