Skip to content

Commit

Permalink
* contextmenu: change dev doc.
Browse files Browse the repository at this point in the history
  • Loading branch information
catouse committed Jul 26, 2024
1 parent f841464 commit 5cd05dc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
4 changes: 2 additions & 2 deletions lib/contextmenu/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
## 被动打开目标菜单

```html:example
<div class="items-center justify-center h-32 primary-pale row" id="contextMenuToggle1" data-target="#contextMenu1">
<div class="items-center justify-center h-32 primary-pale row" zui-create="contextMenu" data-target="$next">
在此区域使用右键菜单
</div>
<menu class="contextmenu menu popup" id="contextMenu1">
<menu class="contextmenu menu popup">
<li class="menu-item"><a>操作</a></li>
<li class="menu-item"><a>另一个操作</a></li>
<li class="menu-item"><a>更多操作</a></li>
Expand Down
3 changes: 0 additions & 3 deletions lib/contextmenu/dev.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@ import 'preact/debug';
import {ContextMenu} from './src/main';

onPageLoad(() => {
const contextMenu1 = new ContextMenu('#contextMenuToggle1');
console.log('> contextMenu1', contextMenu1);

const contextMenu = new ContextMenu('#menuToggle1', {
menu: {
items: [
Expand Down

0 comments on commit 5cd05dc

Please sign in to comment.