Skip to content

Commit 6cdb0f0

Browse files
save file
1 parent b3a00bd commit 6cdb0f0

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

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

Lines changed: 7 additions & 6 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

@@ -32,9 +32,11 @@
3232

3333
<script>
3434

35-
(function main_menu({mod,root,node}){
35+
(function main_menu({mod,dom,host}){
3636

37-
var obj = {};
37+
var obj = {
38+
version : 'v2.0',
39+
};
3840

3941

4042
var $,menu,editor
@@ -67,8 +69,7 @@
6769

6870
obj.initdom = function(rootnode){
6971

70-
var root = $.$(rootnode,'main-menu');
71-
var shadow = root.shadowRoot;
72+
var shadow = host.shadowRoot;
7273

7374
var style = $(shadow,'style');
7475
$.stylesheet.copyrule('#page-inline','.icon',style);
@@ -152,7 +153,7 @@
152153

153154
return obj;
154155

155-
});//main_menu
156+
})//main_menu
156157

157158

158159
</script>

0 commit comments

Comments
 (0)