| | |
| | | console.log(document.querySelectorAll('iframe')) |
| | | window.addEventListener('message',(d)=>{ |
| | | let {source,trigger,menuT,menuL} = d.data; |
| | | debugger |
| | | if(trigger == 'contextmenu'){ |
| | | this.openMenuList(menuT,menuL) |
| | | } |
| | |
| | | window.frames[this.data.name].location.reload() |
| | | }, |
| | | closeFrame: function () { |
| | | debugger |
| | | this.$store.dispatch('desktop/closeFrame', this.data); |
| | | //this.refreshDock(); |
| | | this.$store.commit('desktop/highlight') |
| | |
| | | } |
| | | .d-frame { |
| | | position: fixed; |
| | | box-shadow: 0 5px 10px rgba(0,0,0,.5); |
| | | box-shadow: 0 5px 10px rgba(0, 0, 0, 0.5); |
| | | } |
| | | |
| | | .d-frame.d-frame-full { |
| | |
| | | border-top: 1px solid #d0d0d0; |
| | | border-left: 1px solid #d0d0d0; |
| | | border-right: 1px solid #d0d0d0; |
| | | |
| | | } |
| | | .iframe-mask{ |
| | | position: absolute; |
| | |
| | | background: #fff; |
| | | } |
| | | .menuList li:hover{ |
| | | background: rgba(152, 170, 190,.7); |
| | | background: rgba(152, 170, 190, 0.7); |
| | | } |
| | | </style> |