diff --git a/web/src/lang/en_us.js b/web/src/lang/en_us.js index ca580137..b7a8eb85 100644 --- a/web/src/lang/en_us.js +++ b/web/src/lang/en_us.js @@ -145,7 +145,8 @@ export default { addTip: 'Press Enter to add' }, outline: { - title: 'Outline' + title: 'Outline', + nodeDefaultText: 'Branch node' }, scale: { zoomIn: 'Zoom in', diff --git a/web/src/lang/zh_cn.js b/web/src/lang/zh_cn.js index a3bbb59e..f09ec097 100644 --- a/web/src/lang/zh_cn.js +++ b/web/src/lang/zh_cn.js @@ -145,7 +145,8 @@ export default { addTip: '请按回车键添加' }, outline: { - title: '大纲' + title: '大纲', + nodeDefaultText: '分支节点' }, scale: { zoomIn: '放大', diff --git a/web/src/pages/Edit/components/Outline.vue b/web/src/pages/Edit/components/Outline.vue index 615ae042..11b58824 100644 --- a/web/src/pages/Edit/components/Outline.vue +++ b/web/src/pages/Edit/components/Outline.vue @@ -69,7 +69,7 @@ export default { } }, computed: { - ...mapState(['isDark', 'isOutlineEdit']) + ...mapState(['isDark']) }, created() { window.addEventListener('keydown', this.onKeyDown) diff --git a/web/src/pages/Edit/components/OutlineEdit.vue b/web/src/pages/Edit/components/OutlineEdit.vue index eb125758..7adbf8dd 100644 --- a/web/src/pages/Edit/components/OutlineEdit.vue +++ b/web/src/pages/Edit/components/OutlineEdit.vue @@ -10,7 +10,38 @@
- + + + + +
@@ -18,39 +49,190 @@