model
model copied to clipboard
type: Array, parse 返回异常
import Model from 'js-model'
const modelTest = new Model({
a: {
type: Array,
defalut: []
}
})
console.log(modelTest.parse({}))
返回结果
{
a: {
type: null,
defalut: Array(0)
}
}
正常不应该是返回
{
a: []
}
吗?