修复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,9 +163,11 @@
}; };
} }
const { custContentStyle } = this; const { custContentStyle } = this;
if (custContentStyle) {
for (const key in custContentStyle){ for (const key in custContentStyle){
style[key] = custContentStyle[key]; style[key] = custContentStyle[key];
} }
}
return style; return style;
}, },
barStyle () { barStyle () {