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
e1713b17
Commit
e1713b17
authored
Nov 15, 2019
by
张晨辰
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature/20190923-feature' into dev
parents
5ca11651
f87bd87a
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 @
e1713b17
...
...
@@ -268,6 +268,7 @@ export const styles = {
cmpSelfProps
.
height
*=
cmpSelfProps
.
scaleY
;
}
// 获取拖拽组件的样式,只生成operatProps中的属性
if
(
onlyOpera
)
{
_
.
forIn
(
cmpSelfProps
,
(
val
,
key
)
=>
{
if
(
operatProps
.
indexOf
(
key
)
===
-
1
)
{
...
...
@@ -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);
cmpSelfProps
=
styles
.
getStylesFromObj
(
cmpSelfProps
,
project
);
_
.
forIn
(
cmpSelfProps
,
(
value
,
key
)
=>
{
...
...
src/utils/properties.js
View file @
e1713b17
...
...
@@ -134,7 +134,7 @@ export default {
type
:
'input'
,
value
:
''
},
c
olor
:
{
fillC
olor
:
{
title
:
'颜色'
,
type
:
'colorPicker'
,
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