给el-radio标签所在el-row 标签命名为 id="defaultImages"

<el-row id="defaultImages" :gutter="20" class="xuanzhe" >
          <el-col :span="2"><div class="grid-content bg-purple gjxx-wz">
            解决方案
          </div></el-col>
          <el-col :span="22"><div class="grid-content bg-purple">
            <el-radio-group v-model="radio">
              <el-radio :label="3">智慧教育</el-radio>
              <el-radio :label="6">智慧停车场</el-radio>
              <el-radio :label="9">智慧农业</el-radio>
            </el-radio-group>
          </div></el-col>
        </el-row>

2.在组件的局部css样式中写样式(不需要写在全局样式中)

<style lang="less" scoped>
/*去掉radio的小圆点*/
 /deep/#defaultImages .el-radio__input{
   display: none !important;
 }
Last modification:December 8, 2023
反正也没人会打赏