<option value="">请选择科室名称</option>//必须加上这一句,否则不判断是不是为空 <div class="layui-inline"> <label class="layui-form-label"> 科室名称 <span class="font_red">☀</span> </label> <div class="layui-input-block"> <select id="clientOfficeName" lay-verify="required" ...
:class="[`layui-form-item-${labelPosition}`, mode]" :size="size" ref="formItemRef" > <label class="layui-form-label" v-if="showLabel" :style="{ width: labelWidthComputedRef + 'px' }" :style="{ width: labelWidth + 'px' }" > <span v-if="props.prop && isRequired" 0 ...