Commit 98c6214e authored by 张晨辰's avatar 张晨辰

feat: fix options bug

parent c0715f19
......@@ -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) {
......
......@@ -118,16 +118,16 @@ export default {
],
value: 'left'
},
/*verticalAlign: {
verticalAlign: {
title: '纵向对齐',
type: 'select',
props: [
{ label: '靠上', value: 'up' },
options: [
{ label: '靠上', value: 'top' },
{ label: '居中', value: 'middle' },
{ label: '靠下', value: 'down' }
{ label: '靠下', value: 'bottom' }
],
value: 'up'
},*/
value: 'top'
},
},
image: {
groupName: '来源',
......@@ -156,6 +156,14 @@ export default {
props: {
min: 0
}
},
borderRadius: {
title: '圆角',
type: 'inputNumber',
value: 0,
props: {
min: 0
}
}
},
circle: {
......
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