过滤无效 view

This commit is contained in:
CPPAlien 2019-11-21 16:09:13 +08:00
parent 031a8139bb
commit 76c7ce81ae

View File

@ -58,6 +58,10 @@ export default class Painter {
}
_drawAbsolute(view) {
if (!(view && view.type)) {
// 过滤无效 view
return
}
// 证明 css 为数组形式,需要合并
if (view.css && view.css.length) {
/* eslint-disable no-param-reassign */