Commit 5906532a authored by rockyl's avatar rockyl

修改rotate属性为rotation

parent f0c39d99
# 问题
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
...@@ -92,7 +92,14 @@ const data = { ...@@ -92,7 +92,14 @@ const data = {
ease: {type: ['linear', 'cubic', 'back'], default: 'linear'}, ease: {type: ['linear', 'cubic', 'back'], default: 'linear'},
autoPlay: {type: 'boolean', default: false}, autoPlay: {type: 'boolean', default: false},
} }
},
{
id: 'zoom-button',
name: 'ZoomButton',
props: {
zoomTo: {type: 'number', default: 1.1},
} }
},
] ]
}, },
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment