Commit 3975e6ac authored by rockyl's avatar rockyl

Merge remote-tracking branch 'origin/dev' into dev

parents 99c79c3b 2f0b3791
......@@ -67,6 +67,7 @@ const attrShortMapper = {
// 编辑时想拖拽组件需要生成的css属性
// 只需要位置,不需要来源透明度等等
const operatProps = ['x', 'y', 'left', 'top', 'right', 'bottom', 'width', 'height', 'rotation'];
const ignoreProps = ['left', 'right', 'top', 'bottom'];
// 属性单位 对照表, 如果是数值的时候需要添加单位
const attrUnitMapper = {
......@@ -281,6 +282,11 @@ export const styles = {
});
}
// 把不需要参与样式计算的属性干掉
_.forEach(ignoreProps, prop => {
delete cmpSelfProps[prop];
});
if (component.type === 'label') {
// 如果是label类型,把fillColor转换为color
cmpSelfProps.color = cmpSelfProps.fillColor;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment