miniprogram-to-uniapp
miniprogram-to-uniapp copied to clipboard
properties 如果直接写默认值,转换后会出现 Right-hand side of 'instanceof' is not an object 的报错
问题描述?
如果组件的 properties 写了错误的语法,是否应该报错,提示用户改成正确的写法。
properties: {
color: 'red',
}
重现步骤
- git clone [email protected]:DiamondYuan/wtu-demos.git
- cd wtu-demos && git checkout issue-01
- wtu -i wtu-demos
期望的结果
- 报错提示
- 将
properties: {
color: 'red',
}
转换为
color: {
type: String,
value: 'red'
}
目前的报错很难看出问题出在哪里