File tree Expand file tree Collapse file tree 1 file changed +14
-2
lines changed
Expand file tree Collapse file tree 1 file changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -27,12 +27,17 @@ export class VueView extends DOMWidgetView {
2727
2828 render ( ) {
2929 super . render ( ) ;
30- this . displayed . then ( ( ) => {
30+ ( async ( ) => {
31+ const br = this . beforeViewRender ( ) ;
32+ await this . displayed ;
33+ await br ;
34+
3135 this . vueApp = Vue . createApp ( {
3236 provide : {
3337 viewCtx : createViewContext ( this ) ,
3438 } ,
3539 setup : ( ) => {
40+ this . onSetup ( ) ;
3641 return ( ) => vueRender ( this . model , this , { } ) ;
3742 }
3843 } ) ;
@@ -41,9 +46,16 @@ export class VueView extends DOMWidgetView {
4146 this . vueApp . component ( 'jupyter-widget' , jupyterWidgetComponent ( ) )
4247 this . addPlugins ( this . vueApp ) ;
4348 this . vueApp . mount ( this . el ) ;
44- } ) ;
49+ } ) ( )
50+
4551 }
4652
4753 addPlugins ( vueApp ) {
4854 }
55+
56+ onSetup ( ) {
57+ }
58+
59+ async beforeViewRender ( ) {
60+ }
4961}
You can’t perform that action at this time.
0 commit comments