|
@@ -108,7 +108,6 @@ export default defineComponent({
|
|
|
if(props.elementInfo.lock) {
|
|
if(props.elementInfo.lock) {
|
|
|
return [{
|
|
return [{
|
|
|
text: '解锁',
|
|
text: '解锁',
|
|
|
- icon: 'icon-unlock',
|
|
|
|
|
handler: () => unlockElement(props.elementInfo),
|
|
handler: () => unlockElement(props.elementInfo),
|
|
|
}]
|
|
}]
|
|
|
}
|
|
}
|
|
@@ -117,19 +116,16 @@ export default defineComponent({
|
|
|
{
|
|
{
|
|
|
text: '剪切',
|
|
text: '剪切',
|
|
|
subText: 'Ctrl + X',
|
|
subText: 'Ctrl + X',
|
|
|
- icon: 'icon-scissor',
|
|
|
|
|
handler: cutElement,
|
|
handler: cutElement,
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
text: '复制',
|
|
text: '复制',
|
|
|
subText: 'Ctrl + C',
|
|
subText: 'Ctrl + C',
|
|
|
- icon: 'icon-copy',
|
|
|
|
|
handler: copyElement,
|
|
handler: copyElement,
|
|
|
},
|
|
},
|
|
|
{ divider: true },
|
|
{ divider: true },
|
|
|
{
|
|
{
|
|
|
text: '层级排序',
|
|
text: '层级排序',
|
|
|
- icon: 'icon-top-layer',
|
|
|
|
|
disable: props.isMultiSelect && !props.elementInfo.groupId,
|
|
disable: props.isMultiSelect && !props.elementInfo.groupId,
|
|
|
children: [
|
|
children: [
|
|
|
{ text: '置顶层', handler: () => orderElement(props.elementInfo, ElementOrderCommands.TOP) },
|
|
{ text: '置顶层', handler: () => orderElement(props.elementInfo, ElementOrderCommands.TOP) },
|
|
@@ -141,7 +137,6 @@ export default defineComponent({
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
text: '水平对齐',
|
|
text: '水平对齐',
|
|
|
- icon: 'icon-align-left',
|
|
|
|
|
children: [
|
|
children: [
|
|
|
{ text: '水平居中', handler: () => alignElementToCanvas(ElementAlignCommands.HORIZONTAL) },
|
|
{ text: '水平居中', handler: () => alignElementToCanvas(ElementAlignCommands.HORIZONTAL) },
|
|
|
{ text: '左对齐', handler: () => alignElementToCanvas(ElementAlignCommands.LEFT) },
|
|
{ text: '左对齐', handler: () => alignElementToCanvas(ElementAlignCommands.LEFT) },
|
|
@@ -150,7 +145,6 @@ export default defineComponent({
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
text: '垂直对齐',
|
|
text: '垂直对齐',
|
|
|
- icon: 'icon-align-bottom',
|
|
|
|
|
children: [
|
|
children: [
|
|
|
{ text: '垂直居中', handler: () => alignElementToCanvas(ElementAlignCommands.VERTICAL) },
|
|
{ text: '垂直居中', handler: () => alignElementToCanvas(ElementAlignCommands.VERTICAL) },
|
|
|
{ text: '上对齐', handler: () => alignElementToCanvas(ElementAlignCommands.TOP) },
|
|
{ text: '上对齐', handler: () => alignElementToCanvas(ElementAlignCommands.TOP) },
|
|
@@ -161,20 +155,17 @@ export default defineComponent({
|
|
|
{
|
|
{
|
|
|
text: props.elementInfo.groupId ? '取消组合' : '组合',
|
|
text: props.elementInfo.groupId ? '取消组合' : '组合',
|
|
|
subText: 'Ctrl + G',
|
|
subText: 'Ctrl + G',
|
|
|
- icon: 'icon-block',
|
|
|
|
|
handler: props.elementInfo.groupId ? uncombineElements : combineElements,
|
|
handler: props.elementInfo.groupId ? uncombineElements : combineElements,
|
|
|
hide: !props.isMultiSelect,
|
|
hide: !props.isMultiSelect,
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
text: '锁定',
|
|
text: '锁定',
|
|
|
subText: 'Ctrl + L',
|
|
subText: 'Ctrl + L',
|
|
|
- icon: 'icon-lock',
|
|
|
|
|
handler: lockElement,
|
|
handler: lockElement,
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
text: '删除',
|
|
text: '删除',
|
|
|
subText: 'Delete',
|
|
subText: 'Delete',
|
|
|
- icon: 'icon-delete',
|
|
|
|
|
handler: deleteElement,
|
|
handler: deleteElement,
|
|
|
},
|
|
},
|
|
|
]
|
|
]
|