Element form validation, the data is not fixed, can you verify it? It shows that I made it. I don't know how to write the rules.

I want to write a form for verification, but the data in it is not fixed, it is traversed, and I don"t know how to write the rules
code here is https://jsfiddle.net/pbzgjv5e.

.

traverse from ruleForm like this, and then display

   ruleForm: {
      name: "",
      region: "",
      date1: "",
      date2: "",
    },

Code:

<div id="app">
  <el-form ref="ruleForm" :model="ruleForm" label-width="80px">
    <el-form-item v-for="(item,index) in Object.keys(ruleForm)" :label="item" prop="" :key="index">
      <el-input v-model="ruleForm[item]"></el-input>
    </el-form-item>
    <el-form-item>
      <el-button type="primary"></el-button>
      <el-button></el-button>
    </el-form-item>
  </el-form>
</div>

data() {
  return {
    ruleForm: {
      name: "",
      region: "",
      date1: "",
      date2: "",
    },
    rules: {
      name1: [
        { required: true, message: "", trigger: "blur" },
      ],
    }
  };
},



official website example
clipboard.png
directly based on the official website example, the key used is the same: name , region .

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b37125-2c059.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b37125-2c059.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?