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
98c6214e
Commit
98c6214e
authored
Nov 14, 2019
by
张晨辰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: fix options bug
parent
c0715f19
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
8 deletions
+16
-8
common.js
src/utils/common.js
+2
-2
properties.js
src/utils/properties.js
+14
-6
No files found.
src/utils/common.js
View file @
98c6214e
...
...
@@ -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 @
98c6214e
...
...
@@ -118,16 +118,16 @@ export default {
],
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