Skip to content

Commit

Permalink
* dropdown: change dev example.
Browse files Browse the repository at this point in the history
  • Loading branch information
catouse committed Jul 15, 2024
1 parent 96348de commit 86a3414
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions lib/dropdown/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,22 @@

## 动态下拉菜单

通过 `zui-toggle-dropdown` 初始化:

```html:example: -flex -gap-3 overflow-visible
<button class="ghost btn btn-default" data-toggle="dropdown" zui-toggle-dropdown='{
"placement":"bottom-end",
"menu":{
"items":[
{"text":"转入任务","url":"\/index.php?m=execution&f=importTask&execution=2064"},
{"text":"导入Bug","url":"\/index.php?m=execution&f=importBug&execution=2064","className":"importBug","data-app":""}
]
}
}' type="button">
<i class="icon icon-import"></i><span class="text">导入</span><span class="caret"></span>
</button>
```

通过 JS 动态弹出下拉菜单

```html:example: -flex -gap-3 overflow-visible
Expand Down

0 comments on commit 86a3414

Please sign in to comment.