11from pathlib import Path
22
33from trame .app import get_server
4- from trame .ui .vuetify import SinglePageWithDrawerLayout
5- from trame .widgets import vuetify , simput , html , trame , vtk
4+ from trame .ui .vuetify3 import SinglePageWithDrawerLayout
5+ from trame .widgets import vuetify3 as vuetify , simput , html , trame , vtk
66
77from trame_simput import get_simput_manager
88
@@ -131,27 +131,27 @@ def import_file(import_file, **kwargs):
131131 for icon in ICONS :
132132 with vuetify .VTab ():
133133 vuetify .VIcon (icon )
134- with vuetify .VTabsItems (v_model = ("drawer_mode" , 0 )):
135- with vuetify .VTabItem ():
134+
135+ with vuetify .VWindow (v_model = ("drawer_mode" , 0 ), style = "height: 100%;" ):
136+ with vuetify .VWindowItem (style = "height: 100%;" ):
136137 with vuetify .VList (dense = True ):
137- with vuetify .VListItemGroup (
138+ with vuetify .VItemGroup (
138139 v_model = ("active_id" , 0 ), color = "primary"
139140 ):
140141 with vuetify .VListItem (
141142 v_for = "(id, i) in source_ids" ,
142143 key = "i" ,
143144 value = ("id" ,),
144145 ):
145- with vuetify .VListItemContent ():
146- with vuetify .VListItemTitle ():
147- simput .SimputItem (
148- "{{ data.name }}" ,
149- item_id = "id" ,
150- no_ui = True ,
151- v_slot = "{ data }" ,
152- )
153-
154- with vuetify .VTabItem ():
146+ with vuetify .VListItemTitle ():
147+ simput .SimputItem (
148+ "{{ data.name }}" ,
149+ item_id = "id" ,
150+ no_ui = True ,
151+ v_slot = "{ data }" ,
152+ )
153+
154+ with vuetify .VWindowItem ():
155155 with vuetify .VCard ():
156156 with vuetify .VCardText ():
157157 with vuetify .VRow ():
@@ -176,7 +176,7 @@ def import_file(import_file, **kwargs):
176176 "Create" , click = (create_object , "[obj_name, obj_type]" )
177177 )
178178
179- with vuetify .VTabItem ():
179+ with vuetify .VWindowItem ():
180180 simput .SimputItem (item_id = "active_id" )
181181
182182 with layout .toolbar as toolbar :
@@ -192,7 +192,7 @@ def import_file(import_file, **kwargs):
192192 v_bind = "attrs" ,
193193 v_on = "on" ,
194194 icon = True ,
195- click = "document.getElementById('importFile').click();" ,
195+ click = "window. document.getElementById('importFile').click();" ,
196196 ):
197197 vuetify .VIcon ("mdi-database-import-outline" )
198198 html .Input (
0 commit comments