Error - Vue - 解決 property should be a constructor
VUE props支持多類型的寫法 ,解決 property should be a constructor
defaultActive: {
type: [String, Number], //String | Number
default: '0'
}
使用 String | Number 有些eslint會報錯 The "defaultActive" property should be a constructor.eslintvue/require-prop-type-constructor