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
f87bd87a
Commit
f87bd87a
authored
Nov 15, 2019
by
张晨辰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: label.color->label.fillColor
parent
83819722
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
1 deletion
+8
-1
common.js
src/utils/common.js
+7
-0
properties.js
src/utils/properties.js
+1
-1
No files found.
src/utils/common.js
View file @
f87bd87a
...
@@ -268,6 +268,7 @@ export const styles = {
...
@@ -268,6 +268,7 @@ export const styles = {
cmpSelfProps
.
height
*=
cmpSelfProps
.
scaleY
;
cmpSelfProps
.
height
*=
cmpSelfProps
.
scaleY
;
}
}
// 获取拖拽组件的样式,只生成operatProps中的属性
if
(
onlyOpera
)
{
if
(
onlyOpera
)
{
_
.
forIn
(
cmpSelfProps
,
(
val
,
key
)
=>
{
_
.
forIn
(
cmpSelfProps
,
(
val
,
key
)
=>
{
if
(
operatProps
.
indexOf
(
key
)
===
-
1
)
{
if
(
operatProps
.
indexOf
(
key
)
===
-
1
)
{
...
@@ -276,6 +277,12 @@ export const styles = {
...
@@ -276,6 +277,12 @@ export const styles = {
});
});
}
}
if
(
component
.
type
===
'label'
)
{
// 如果是label类型,把fillColor转换为color
cmpSelfProps
.
color
=
cmpSelfProps
.
fillColor
;
delete
cmpSelfProps
.
fillColor
;
}
// console.log('cmpSelfProps after inherit ', cmpSelfProps);
// console.log('cmpSelfProps after inherit ', cmpSelfProps);
cmpSelfProps
=
styles
.
getStylesFromObj
(
cmpSelfProps
,
project
);
cmpSelfProps
=
styles
.
getStylesFromObj
(
cmpSelfProps
,
project
);
_
.
forIn
(
cmpSelfProps
,
(
value
,
key
)
=>
{
_
.
forIn
(
cmpSelfProps
,
(
value
,
key
)
=>
{
...
...
src/utils/properties.js
View file @
f87bd87a
...
@@ -134,7 +134,7 @@ export default {
...
@@ -134,7 +134,7 @@ export default {
type
:
'input'
,
type
:
'input'
,
value
:
''
value
:
''
},
},
c
olor
:
{
fillC
olor
:
{
title
:
'颜色'
,
title
:
'颜色'
,
type
:
'colorPicker'
,
type
:
'colorPicker'
,
value
:
'#000'
value
:
'#000'
...
...
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