zoukankan      html  css  js  c++  java
  • elementUI自定义单选框内容

    <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>
    

  • 相关阅读:
    echarts动态设置主体颜色
    spring security session
    Spark RDD函数:
    MapReduce TOP n
    feign 使用示例
    trie树
    动态修改注解(annotation)值
    golang插件
    Kafka Streams Example
    tcp并发(c18w)
  • 原文地址:https://www.cnblogs.com/IwishIcould/p/12555615.html
Copyright © 2011-2022 走看看