File tree Expand file tree Collapse file tree 1 file changed +8
-7
lines changed
utils/editors/html-editor/html/main-menu/v2.0 Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Original file line number Diff line number Diff line change 11
22
33
4- < main-menu style ='position:relative '>
4+ < main-menu v2.0 style ='position:relative '>
55
66 < template shadowrootmode =open >
77
3333
3434 < script >
3535
36- ( function ( { mod, root, node} ) {
37- true && console . log ( 'main-menu' ) ;
38- var obj = { } ;
36+ ( function main_menu ( { mod, dom, host} ) {
37+
38+ var obj = {
39+ version : 'v2.0' ,
40+ } ;
3941
4042 var df = true
4143 ;
6567
6668 obj . initdom = function ( rootnode ) {
6769
68- var root = $ . $ ( rootnode , 'main-menu' ) ;
69- var shadow = root . shadowRoot ;
70+ var shadow = host . shadowRoot ;
7071
7172 var style = $ ( shadow , 'style' ) ;
7273 $ . stylesheet . copyrule ( '#page-inline' , '.icon' , style ) ;
179180
180181 return obj ;
181182
182- } ) ;
183+ } ) //main_menu
183184
184185
185186 </ script >
You can’t perform that action at this time.
0 commit comments