修复custContentStyle报错

This commit is contained in:
yangd 2019-09-30 23:04:53 +08:00
parent 242ab8c8b5
commit 46363dbca3

View file

@ -106,7 +106,6 @@
}, },
custContentStyle: { custContentStyle: {
type: Object, type: Object,
default: {}
} }
}, },
data () { data () {
@ -164,8 +163,10 @@
}; };
} }
const { custContentStyle } = this; const { custContentStyle } = this;
for (const key in custContentStyle){ if (custContentStyle) {
style[key] = custContentStyle[key]; for (const key in custContentStyle){
style[key] = custContentStyle[key];
}
} }
return style; return style;
}, },