Skip to content

Commit 7fc7319

Browse files
save file
1 parent ee93d23 commit 7fc7319

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

utils/editors/html-editor/html/main-menu/v2.0/main-menu-v2.0.html

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22

33

4-
<main-menu style='position:relative'>
4+
<main-menu v2.0 style='position:relative'>
55

66
<template shadowrootmode=open>
77

@@ -33,9 +33,11 @@
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
;
@@ -65,8 +67,7 @@
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);
@@ -179,7 +180,7 @@
179180

180181
return obj;
181182

182-
});
183+
})//main_menu
183184

184185

185186
</script>

0 commit comments

Comments
 (0)