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
5906532a
Commit
5906532a
authored
Nov 13, 2019
by
rockyl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改rotate属性为rotation
parent
f0c39d99
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
1 deletion
+20
-1
todo.md
docs/todo.md
+12
-0
index.js
mock/api/editor/info/index.js
+8
-1
No files found.
docs/todo.md
0 → 100644
View file @
5906532a
# 问题
1.
新建的label选中会报错
2.
脚本中属性无法渲染
# 修改
1.
node类型增加属性:
`left,top,right,bottom,horizonCenter,verticalCenter`
2.
rect类型增加属性:
`borderRadius`
3.
label类型增加属性:
`verticalAlign(options: up,middle,down)`
4.
增加circle类型,属性同rect
5.
属性中增加alias为别名,用来呈现中文别名(
`{alias: '文本', type: 'string', default: '你好'}`
)
6.
属性中枚举的类型,type改为enum,增加以enum为名字的字符串存放枚举项(
`{alias: '类型', type: 'enum', enum: ['rotate', 'jump', 'breath'], default: 'rotate'}`
)
7.
编辑区需要能设置尺寸,默认
`750*1334`
,增加缩放功能,缩放可由按钮或者滚轮控制
\ No newline at end of file
mock/api/editor/info/index.js
View file @
5906532a
...
...
@@ -92,7 +92,14 @@ const data = {
ease
:
{
type
:
[
'linear'
,
'cubic'
,
'back'
],
default
:
'linear'
},
autoPlay
:
{
type
:
'boolean'
,
default
:
false
},
}
},
{
id
:
'zoom-button'
,
name
:
'ZoomButton'
,
props
:
{
zoomTo
:
{
type
:
'number'
,
default
:
1.1
},
}
},
]
},
};
...
...
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