v-decorator="['name', validatorRules.name]"
<a-input v-decorator="['name', validatorRules.name]" placeholder="请输入Tool名称"></a-input>
data() {
return {
validatorRules: {
name: { rules: [{ required: true, message: '请输入Tool名称!' }] },
},
}
}