Demo:修改回到根节点的方法及文案

This commit is contained in:
wanglin2 2023-10-11 15:49:22 +08:00
parent 6d780c6c26
commit 39c2c15259
5 changed files with 5 additions and 5 deletions

View File

@ -306,7 +306,7 @@ export const shortcutKeyList = [
},
{
icon: 'icondingwei',
name: 'Reset',
name: 'Back root node',
value: 'Ctrl + Enter'
},
{

View File

@ -373,7 +373,7 @@ export const shortcutKeyList = [
},
{
icon: 'icondingwei',
name: '恢复默认',
name: '回到根节点',
value: 'Ctrl + Enter'
},
{

View File

@ -66,7 +66,7 @@ export default {
copyNode: 'Copy node',
cutNode: 'Cut node',
pasteNode: 'Paste node',
backCenter: 'Back center',
backCenter: 'Back root node',
expandAll: 'Expand all',
unExpandAll: 'Un expand all',
expandTo: 'Expand to',

View File

@ -66,7 +66,7 @@ export default {
copyNode: '复制节点',
cutNode: '剪切节点',
pasteNode: '粘贴节点',
backCenter: '回到中心',
backCenter: '回到根节点',
expandAll: '展开所有',
unExpandAll: '收起所有',
expandTo: '展开到',

View File

@ -304,7 +304,7 @@ export default {
this.mindMap.renderer.paste()
break
case 'RETURN_CENTER':
this.mindMap.view.reset()
this.mindMap.renderer.setRootNodeCenter()
break
case 'TOGGLE_ZEN_MODE':
this.setLocalConfig({