FE-Mars/monaco-editor-vue

can't use in pop-up box??

Closed this issue · 5 comments

when i use it in dialog in vuetify,it can't render,

@goodking-bq Check if the pop-up box is not added to the HTML and the height acquisition fails

@goodking-bq Check if the pop-up box is not added to the HTML and the height acquisition fails

function initMonaco in $nexttick can fix it.

No, it should be fixed in your project

Lavhe commented

I am still having this issue on Vuetify, where the code editor does not render on a dialog

@goodking-bq how did you resolve this?

I am still having this issue on Vuetify, where the code editor does not render on a dialog

@goodking-bq how did you resolve this?
change this code to

this.initMonaco();

  this.$nextTick(function(){
   this.init...
})