this is an example of the official website:
<el-form :model="ruleForm" :rules="rules" ref="ruleForm">
<el-form-item label="" prop="name">
<el-input v-model="ruleForm.name"></el-input>
</el-form-item>
<el-button type="primary" @click="submit()"></el-button>
</el-form>
------------------------------
ruleForm:{
name:"",
},
rules:{
name:[
{
required: true,
message: "",
trigger: "blur"
}
]
}
my question:
<el-input v-model="ruleForm.name"></el-input>
isn"t it okay for me to change the way I write ruleForm.name, in this place like this?
<el-input v-model="name"></el-input>
the verification of this writing method will be invalid. I"m not used to it.