the project framework is IView, and then references vue-simplemde and validates its text, using async-validator, but without triggering events,
<Row>
<Col span="24">
<FormItem label="" prop="positionDesc">
<markdown-editor :configs="meConfig" v-model.trim="positionForm.items.positionDesc"></markdown-editor>
</FormItem>
</Col>
</Row>
import markdownEditor from "vue-simplemde/src/markdown-editor"
import "simplemde/dist/simplemde.min.css";
data(){
const validatorPositionDesc = (rule,value,callback)=>{
console.log("value === ",value);
if(value.length <= 0){
callback("");
}
else{
callback();
}
}
return{
positionForm:{
items:{
positionDesc: ""
},
rules:{
positionDesc:[{
required:true,
validator:validatorPositionDesc,//
trigger:"change"
}],
}
},
}
}
}