Fix HMR and backtrack for SFC support now that PHPStorm supports them
Of course I wasted forever migrating OUT of SFCs only to go back to them.
This commit is contained in:
parent
626a63ddd9
commit
761704408e
4 changed files with 149 additions and 17 deletions
|
@ -50,7 +50,7 @@ export default Vue.component('file-row', {
|
|||
|
||||
this.contextMenuVisible = true;
|
||||
|
||||
const menuWidth = (this.$refs.contextMenu as VueType).$el.offsetWidth;
|
||||
const menuWidth = (this.$refs.contextMenu as VueType).$el.clientWidth;
|
||||
const positionElement = e.clientX - Math.round(menuWidth / 2);
|
||||
|
||||
(this.$refs.contextMenu as VueType).$el.setAttribute('style', `left: ${positionElement}; top: ${e.clientY}`);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue