Skip to content

Commit df0d139

Browse files
committed
feat: v1.4.0
1 parent 44f99d7 commit df0d139

File tree

4 files changed

+11
-3
lines changed

4 files changed

+11
-3
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# 更新日志
22

3+
## 1.4.0
4+
5+
- 新增:目录管理,支持打开、切换目录,便于用户操作
6+
- 优化:界面布局调整,功能更丰富
7+
38
## 1.3.4
49

510
- 新增:历史记录支持删除和清空

frontend/src/layout/DialogOpen.vue

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,9 +95,11 @@ import { useUserStore } from '@/store/user'
9595
import { useOpenStore } from '@/store/open'
9696
import { useEditorStore } from '@/store/editor'
9797
import { useLikeStore } from '@/store/like'
98+
import { useMenuStore } from '@/store/menu'
9899
99100
const user = useUserStore()
100101
const open = useOpenStore()
102+
const menu = useMenuStore()
101103
const like = useLikeStore()
102104
const editor = useEditorStore()
103105
@@ -115,6 +117,7 @@ onMounted(async () => {
115117
116118
const changeDir = (v: string) => {
117119
like.cfg.folderActive = v
120+
menu.open = 'folder'
118121
open.show = undefined
119122
}
120123

frontend/src/layout/ViewLeft/ViewHistory.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020

2121
<div class="text">{{ getFileName(item.path) }}</div>
2222

23-
<div style="flex: 1"></div>
2423
<el-icon class="i" @click.stop="open.removeHistory(item.path)"><Close /></el-icon>
2524
</div>
2625
</div>
@@ -71,6 +70,7 @@ const editor = useEditorStore()
7170
white-space: nowrap;
7271
overflow: hidden;
7372
text-overflow: ellipsis;
73+
flex: 1;
7474
}
7575
}
7676
</style>

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "code.editor",
3-
"version": "1.3.4",
4-
"changelog": "<div>新增:打开时展示历史记录,便于快速访问</div><div>新增:偏好设置中新增自动换行</div><div>修复:偏好设置恢复默认不生效的问题</div>",
3+
"version": "1.4.0",
4+
"changelog": "<div>新增:目录管理,支持打开、切换目录,便于用户操作</div><div>新增:打开时展示历史记录,便于快速访问</div><div>新增:偏好设置中新增自动换行</div><div>新增:图片预览功能</div><div>修复:偏好设置恢复默认不生效的问题</div>",
55
"scripts": {
66
"dev": "node src/app.js",
77
"install": "npm i --prefix=backend && npm i --prefix=frontend",

0 commit comments

Comments
 (0)