查看表单 通过css 去除表单必填*号

 

.page-form-item-required-no .el-form-item.is-required:not(.is-no-asterisk)>.el-form-item__label:before {
    content: '' !important;
}

 

  <el-form
        ref="elForm"
        :model="formData"
        :rules="rules"
        label-width="150px"
        :class="{ 'page-form-item-required-no': pageState == 'see' }"
      >

 

posted @ 2024-12-17 13:45  ThisCall  阅读(1)  评论(0编辑  收藏  举报