Skip to content

如何改变单选框的样式 #85

@jasminecjc

Description

@jasminecjc

Issue Type:

  • Bug
  • Feature
  • Help

Version & Environment:

Description:
html:

<el-radio-group [el-class]="'radio-group'" formControlName="type">
      <el-radio *ngFor="let type of types" label="{{type.id}}" [el-class]="'test1'" class="test2">{{type.formName}}</el-radio>
    </el-radio-group>

编译后的html结构为
2018-04-03 4 32 41

css:

.radio-group {
  > div {
    display: flex;
    flex-direction: column;
    padding-left: 5rem;
    border: 1px solid #e6e6e6;
    > lable {
      display: flex;
      width: 100%;
      align-items: center;
      justify-content: center;
    }
  }
}

能够通过el-class radio-group 改变内层的div样式,但改变不了内层lable的样式,给el-radio加上el-class或class也不管用

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is needed

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions