import{_ as r}from"./index-cf27e902.js";import{n as s}from"./index-b54f5418.js";import"./three-dc46505d.js";var a=function(){var t=this,o=t.$createElement,e=t._self._c||o;return e("div",{staticClass:"dropdownSelect-container"},[e("el-dropdown",{attrs:{trigger:t.trigger,placement:"bottom-start"},on:{command:t.handleCommand}},[e("span",{staticClass:"el-dropdown-link"},[t.icon?e("vis-icon",{attrs:{code:t.icon}}):t._e(),e("span",{domProps:{textContent:t._s(t.label)}})],1),e("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[t._t("default")],2)],1)],1)},c=[];const l={props:{trigger:{type:String,default:"click"},icon:{type:String},label:{type:String,default:"菜单"}},methods:{handleCommand(t){this.$emit("select",t)}}},n={};var d=s(l,a,c,!1,p,"2c2c1553",null,null);function p(t){for(let o in n)this[o]=n[o]}const _=function(){return d.exports}();var m=function(){var t=this,o=t.$createElement,e=t._self._c||o;return e("div",{staticClass:"fileMenu-container"},[e("div",{staticClass:"app-tips"},[e("el-image",{attrs:{src:t.logo}}),e("span",{staticClass:"app-title"},[t._v("STATIC")])],1),e("dropdown-menu",{attrs:{icon:"#iconxiangmuguanli",label:"项目"},on:{select:t.appSelect}},[e("el-dropdown-item",{attrs:{command:"home"}},[t._v("主页")]),e("el-dropdown-item",{attrs:{command:"newOne"}},[t._v("新建")]),e("el-dropdown-item",{attrs:{command:"reopen"}},[t._v("刷新")]),e("el-dropdown-item",{attrs:{command:"history"}},[t._v("历史版本")])],1),e("dropdown-menu",{attrs:{icon:"#iconbangzhu",label:"帮助"},on:{select:t.helpSelect}},[e("el-dropdown-item",{attrs:{command:"shortcutKey"}},[t._v("快捷键")]),e("el-dropdown-item",{attrs:{command:"course"}},[t._v("使用教程")]),e("el-dropdown-item",{attrs:{command:"question"}},[t._v("问题反馈")])],1),e("shortcut-key-document",{ref:"shortcutKey"}),e("app-history",{ref:"appHistory"})],1)},u=[];const w=()=>r(()=>import("./shortcutKeyDocument-8e38dc1b.js"),["assets/shortcutKeyDocument-8e38dc1b.js","assets/index-cf27e902.js","assets/index-b54f5418.js","assets/three-dc46505d.js","assets/index-f59973e2.css","assets/index-9ecf8d88.css","assets/shortcutKeyDocument-bc38bce5.css"]),v=()=>r(()=>import("./appHistory-3bb5a919.js"),["assets/appHistory-3bb5a919.js","assets/index-cf27e902.js","assets/index-b54f5418.js","assets/three-dc46505d.js","assets/index-f59973e2.css","assets/index-9ecf8d88.css","assets/appHistory-c187d80c.css"]),h={components:{dropdownMenu:_,shortcutKeyDocument:w,appHistory:v},data(){return{logo:"/scene-editor/image/logo.png"}},methods:{appSelect(t){const o={home:()=>{window.location.href=`${window.location.origin}${window.location.pathname}`},newOne:()=>{window.location.href=`${window.location.origin}${window.location.pathname}`},reopen:()=>{window.location.href=`${window.location.origin}${window.location.pathname}?id=${this.$store.getters.id}`},history:()=>{this.$refs.appHistory.visible=!0}};o[t]&&o[t]()},helpSelect(t){const o={shortcutKey:()=>{this.$refs.shortcutKey.visible=!0},course:()=>{window.open("https://space.bilibili.com/3048588")},question:()=>{window.open("https://github.com/vis-three/scene-editor/issues/new/choose")}};o[t]&&o[t]()}}},i={};var f=s(h,m,u,!1,g,"12255316",null,null);function g(t){for(let o in i)this[o]=i[o]}const S=function(){return f.exports}();export{S as default};
