添加required即可
<el-row type="flex" class="row-bg"> <el-col :span="24"> <el-form-item label="身份证图片:" required> <identity-card-upload :editable="true" tableName="SYS_ENTERPRISE_DATA_ADMINISTER" :keyId="ent.enterpriseId" :cardFrontList.sync="ent.identityPhoto" :cardReverseList.sync="ent.identityPhotoReverse" name="查看" /> </el-form-item> </el-col> </el-row>
效果:此时多了一个*号