elinput模板

116 阅读1分钟
<el-col :span="6">
                <div @click="cleValidate('groupid')">
                <el-form-item label="领用部门">
                  <el-input
                    v-model="formdata.groupid"
                    placeholder="请输入领用部门"
                    clearable
                    size="small"
                  />
                </el-form-item>
                </div>
              </el-col>
 // 调整了验证文字的位置造成 验证文字挡住输入
    cleValidate(val) {
      this.$refs.formdata.clearValidate(val)
    }
/**修改错误提示 */
::v-deep .el-form-item__error {
  top: 0;
  background: #fff;
  height: 30px;
  margin-top: 5px;
  margin-left: 5px;
  width: 120px;
  display: flex;
  align-items: center;
  // display: flex;
  // flex-wrap: wrap ;
}