Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Z
zeroing-editor
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
劳工
zeroing-editor
Commits
a0f0edff
Commit
a0f0edff
authored
Apr 15, 2020
by
rockyl
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'mvvm' into code-diff
parents
edd8061d
d53c7757
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
common.js
src/utils/common.js
+6
-4
No files found.
src/utils/common.js
View file @
a0f0edff
...
...
@@ -33,10 +33,10 @@ const attrShortMapper = {
size
:
'font-size'
,
font
:
'font-family'
,
alpha
:
'opacity'
,
'strokeColor'
:
'border-color'
,
'strokeWidth'
:
'border-width'
,
'fillColor'
:
'background-color'
,
'source'
:
'background-image'
strokeColor
:
'border-color'
,
strokeWidth
:
'border-width'
,
fillColor
:
'background-color'
,
source
:
'background-image'
};
// 编辑时想拖拽组件需要生成的css属性
...
...
@@ -277,6 +277,8 @@ export const styles = {
// 如果是label类型,把fillColor转换为color
cmpSelfProps
.
color
=
cmpSelfProps
.
fillColor
;
delete
cmpSelfProps
.
fillColor
;
delete
cmpSelfProps
.
stroke
;
delete
cmpSelfProps
.
strokeColor
;
if
(
cmpSelfProps
.
italic
)
{
//斜体
delete
cmpSelfProps
.
italic
;
cmpSelfProps
.
fontStyle
=
'italic'
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment