If I define a property for a component MyComp1 like that
props: {
display: {
type: [Boolean, Array],
validator: function (value) {
return value === false && value !== true;
},
default: false,
},
},
How can I use it in my component MyComp2?
I tried different syntax's
<MyComp1 display=[mobile, tablet]><MyComp1>
<MyComp1 display="['mobile', 'tablet']"><MyComp1>
<MyComp1 display="mobile,tablet"><MyComp1>
but none works. Which is the right syntax?