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
211b6208
Commit
211b6208
authored
Nov 14, 2019
by
rockyl
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/dev' into dev
parents
2a49dc2a
98c6214e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
11 deletions
+19
-11
config.js
src/config.js
+2
-2
common.js
src/utils/common.js
+2
-2
properties.js
src/utils/properties.js
+15
-7
No files found.
src/config.js
View file @
211b6208
...
...
@@ -2,8 +2,8 @@
* Created by rockyl on 2019-09-19.
*/
//
export const API_HOST = 'http://10.10.95.74:7777';
export
const
API_HOST
=
'http://localhost:3002'
;
export
const
API_HOST
=
'http://10.10.95.74:7777'
;
//
export const API_HOST = 'http://localhost:3002';
export
const
UPLOAD_FILE_URL
=
API_HOST
+
'/api/uploadFile'
;
export
const
PARSE_BUNDLE_URL
=
API_HOST
+
'/api/parsePSD'
;
...
...
src/utils/common.js
View file @
211b6208
...
...
@@ -60,7 +60,7 @@ const attrShortMapper = {
// 编辑时想拖拽组件需要生成的css属性
// 只需要位置,不需要来源透明度等等
const
operatProps
=
[
'x'
,
'y'
,
'width'
,
'height'
,
'rotation'
];
const
operatProps
=
[
'x'
,
'y'
,
'
left'
,
'top'
,
'
width'
,
'height'
,
'rotation'
];
// 属性单位 对照表, 如果是数值的时候需要添加单位
const
attrUnitMapper
=
{
...
...
@@ -93,7 +93,7 @@ function getParentCmps(uuid, list) {
return
_self
.
parent
?
parentLoop
(
_self
.
parent
,
list
)
:
[];
}
export
{
getParentCmps
,
completeSelfProps
};
export
{
getParentCmps
,
completeSelfProps
};
export
const
getCmpByUUID
=
function
(
uuid
,
views
)
{
if
(
!
uuid
)
{
...
...
src/utils/properties.js
View file @
211b6208
...
...
@@ -111,23 +111,23 @@ export default {
textAlign
:
{
title
:
'文本对齐'
,
type
:
'select'
,
prop
s
:
[
option
s
:
[
{
label
:
'靠左'
,
value
:
'left'
},
{
label
:
'居中'
,
value
:
'center'
},
{
label
:
'靠右'
,
value
:
'right'
}
],
value
:
'left'
},
/*
verticalAlign: {
verticalAlign
:
{
title
:
'纵向对齐'
,
type
:
'select'
,
prop
s: [
{ label: '靠上', value: '
u
p' },
option
s
:
[
{
label
:
'靠上'
,
value
:
'
to
p'
},
{
label
:
'居中'
,
value
:
'middle'
},
{ label: '靠下', value: '
down
' }
{
label
:
'靠下'
,
value
:
'
bottom
'
}
],
value: '
u
p'
},
*/
value
:
'
to
p'
},
},
image
:
{
groupName
:
'来源'
,
...
...
@@ -156,6 +156,14 @@ export default {
props
:
{
min
:
0
}
},
borderRadius
:
{
title
:
'圆角'
,
type
:
'inputNumber'
,
value
:
0
,
props
:
{
min
:
0
}
}
},
circle
:
{
...
...
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