📝(component): 新增 menu 组件 changeSelectedKey 与 changeOpenKeys 说明

This commit is contained in:
就眠儀式 2022-08-24 23:57:41 +08:00
parent c932584421
commit 08bb3c0f69
2 changed files with 15 additions and 1 deletions

View File

@ -172,7 +172,9 @@ watch(
class="layui-laypage-next"
:class="[
currentPage === maxPage || maxPage === 0 ? 'layui-disabled' : '',
theme && (currentPage !== maxPage && maxPage !== 0) ? 'layui-laypage-a-' + theme : '',
theme && currentPage !== maxPage && maxPage !== 0
? 'layui-laypage-a-' + theme
: '',
]"
@click="next()"
>

View File

@ -735,6 +735,18 @@ export default {
:::
::: title Menu 事件
:::
::: table
| 属性 | 描述 | 参数 |
| ------------------- | ------------------- | -------------- |
| changeSelectedKey | 选中菜单回调 | value: string |
| changeOpenKeys | 展开目录回调 | value: string[] |
:::
::: title Menu Item 属性
:::