<template>
<div>
<div class="heng-div">
<el-radio v-model="radio" label="0" class="chun-se">纯色 </el-radio> <el-color-picker v-model="color4" class="min-div" size="mini"></el-color-picker>
<el-radio v-model="radio" label="1">图片<i class="el-icon-info ele-icon"></i></el-radio>
<el-radio v-model="radio" label="2">视频<i class="el-icon-warning ele-icon"></i></el-radio>
<el-radio v-model="radio" label="3">直播<i class="el-icon-warning ele-icon"></i></el-radio>
</div>
</div>
</template>
<script>
export default {
data(){
return{
radio: '1',
color4:"#409EFF"
}
}
}
</script>
<style scoped>
.ele-icon{
color: #ccc;
}
.heng-div{
display: flex;
align-items: center;
}
.chun-se{
margin-right: 0 !important;
}
.min-div{
margin-right: 30px;
}
</style>
![](https://img2020.cnblogs.com/blog/1425695/202003/1425695-20200323221514297-1016457470.png)