[Vuejs]-How should I mix validated and unvalidated properties for a Vue component?

0👍

I also posted this question on the official VueJS forum and based off the answer there, you should do the following when you want to mix validated and unvalidated properties for a Vue component:

You should set the unvalidated property to type:null, which means that it can be anything.

props:{
  name:{type:String, required:true},
  generatecontrchart:{type:null}
}
👤ptk

Leave a comment