Commit a0f0edff authored by rockyl's avatar rockyl

Merge branch 'mvvm' into code-diff

parents edd8061d d53c7757
...@@ -33,10 +33,10 @@ const attrShortMapper = { ...@@ -33,10 +33,10 @@ const attrShortMapper = {
size: 'font-size', size: 'font-size',
font: 'font-family', font: 'font-family',
alpha: 'opacity', alpha: 'opacity',
'strokeColor': 'border-color', strokeColor: 'border-color',
'strokeWidth': 'border-width', strokeWidth: 'border-width',
'fillColor': 'background-color', fillColor: 'background-color',
'source': 'background-image' source: 'background-image'
}; };
// 编辑时想拖拽组件需要生成的css属性 // 编辑时想拖拽组件需要生成的css属性
...@@ -277,6 +277,8 @@ export const styles = { ...@@ -277,6 +277,8 @@ export const styles = {
// 如果是label类型,把fillColor转换为color // 如果是label类型,把fillColor转换为color
cmpSelfProps.color = cmpSelfProps.fillColor; cmpSelfProps.color = cmpSelfProps.fillColor;
delete cmpSelfProps.fillColor; delete cmpSelfProps.fillColor;
delete cmpSelfProps.stroke;
delete cmpSelfProps.strokeColor;
if (cmpSelfProps.italic) { //斜体 if (cmpSelfProps.italic) { //斜体
delete cmpSelfProps.italic; delete cmpSelfProps.italic;
cmpSelfProps.fontStyle = 'italic'; cmpSelfProps.fontStyle = 'italic';
......
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