| | |
| | | }, |
| | | openFile() { |
| | | // console.log("openfile"); |
| | | window.api.send("open-file-dialog"); |
| | | window.api.send("open-file-dialog", 'MenuList'); |
| | | }, |
| | | closeFile() { |
| | | this.$bus.$emit('closeFile'); |
| | | }, |
| | | closeAllFiles() { |
| | | this.$bus.$emit('closeAll'); |
| | | }, |
| | | initEvents() { |
| | | window.api.receive("selected-file", (path) => { |
| | | console.log(path.filePaths); |
| | | window.api.receive("selected-file", (path, data) => { |
| | | if (data && data == 'MenuList') { |
| | | console.log(path.filePaths, 'MenuList'); |
| | | } |
| | | // this.path = path.filePaths; |
| | | }); |
| | | window.api.receive("selected-directory", (path) => { |
| | | console.log(path.filePaths); |
| | | }); |
| | | }, |
| | | }, |
| | |
| | | .title { |
| | | cursor: pointer; |
| | | border: 1px solid #333; |
| | | background: #fbfbfb; |
| | | background: #0DCED1; |
| | | line-height: 30px; |
| | | border-radius: 4px; |
| | | vertical-align: middle; |
| | | &.active { |
| | | background: #169bd5; |
| | | background: #00f7f9; |
| | | } |
| | | &:hover { |
| | | background: #62cbfa; |
| | |
| | | left: 0; |
| | | top: 100%; |
| | | min-width: 8em; |
| | | background: #f0f0f0; |
| | | background: #c0c0c0; |
| | | padding: 4px; |
| | | .sub-li { |
| | | border-radius: 4px; |
| | | border: 1px #333 solid; |
| | | border: 1px #fff solid; |
| | | background: #d9dce2; |
| | | &:hover { |
| | | background: #169bd5; |