diff --git a/plugins/explorer/client/file-picker.vue b/plugins/explorer/client/file-picker.vue index 58d274ed..e1bda9fd 100644 --- a/plugins/explorer/client/file-picker.vue +++ b/plugins/explorer/client/file-picker.vue @@ -31,7 +31,7 @@
diff --git a/plugins/explorer/client/index.ts b/plugins/explorer/client/index.ts index b9ae7d37..f8bf766d 100644 --- a/plugins/explorer/client/index.ts +++ b/plugins/explorer/client/index.ts @@ -35,4 +35,36 @@ export default (ctx: Context) => { type: 'status-right', component: Status, }) + + ctx.menu('explorer', [{ + id: 'explorer.save', + icon: 'save', + label: '保存', + }, { + id: 'explorer.refresh', + icon: 'refresh', + label: '刷新', + }]) + + ctx.menu('explorer.tree', [{ + id: '.create-file', + label: '新建文件', + }, { + id: '.create-directory', + label: '新建文件夹', + }, { + id: '.upload', + label: '上传文件', + }, { + id: '.download', + label: '下载文件', + }, { + id: '@separator', + }, { + id: '.rename', + label: '重命名', + }, { + id: '.remove', + label: '删除', + }]) } diff --git a/plugins/explorer/client/index.vue b/plugins/explorer/client/index.vue index fb7c21d2..eb5a699d 100644 --- a/plugins/explorer/client/index.vue +++ b/plugins/explorer/client/index.vue @@ -1,20 +1,11 @@