Skip to content

Commit

Permalink
fix: onCollapse not work vueComponent#213
Browse files Browse the repository at this point in the history
  • Loading branch information
sendya committed Apr 19, 2022
1 parent be6a8a2 commit acf3880
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion packages/pro-layout/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ const layoutConf = reactive({
| selectedKeys | menu selected keys | string[] | `[]` |
| openKeys | menu openKeys | string[] | `[]` |
| isMobile | is mobile | boolean | false |
| handleCollapse | folding collapse event of menu | (collapsed: boolean) => void | - |
| onCollapse \| @collapse | folding collapse event of menu | (collapsed: boolean) => void | - |
| menuHeaderRender | render header logo and title | v-slot \| VNode \| (logo,title)=>VNode \| false | - |
| menuExtraRender | render extra menu item | v-slot \| VNode \| (props)=>VNode \| false | - |
| menuFooterRender | render footer menu item | v-slot \| VNode \| (props)=>VNode \| false | - |
Expand Down
8 changes: 4 additions & 4 deletions packages/pro-layout/src/BasicLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -245,10 +245,10 @@ const ProLayout = defineComponent({
return () => {
const {
pure,
// onCollapse: propsOnCollapse,
// onOpenKeys: propsOnOpenKeys,
// onSelect: propsOnSelect,
// onMenuClick: propsOnMenuClick,
onCollapse: propsOnCollapse,
onOpenKeys: propsOnOpenKeys,
onSelect: propsOnSelect,
onMenuClick: propsOnMenuClick,
...restProps
} = props;

Expand Down

0 comments on commit acf3880

Please sign in to comment.