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
d53c7757
Commit
d53c7757
authored
Apr 15, 2020
by
rockyl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
去掉文本有色块的问题
parent
3a41f3ce
Changes
1
Show 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 @
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'
;
...
...
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