|
|
@@ -741,12 +741,12 @@ function NavApp (props = {}) {
|
|
|
| isCollapsed | A controlled attribute of whether it is in a put-away state, valid only when `mode = "vertical"` | boolean | |
|
|
|
| items | Navigate the list of items, each item can continue with the items property. If it is a string array, each item is taken as text and itemKey | object\|string[]\|[Item](#Nav.Item)[]\|[Sub](#Nav.Sub)[] | |
|
|
|
| mode | Navigation type, currently supports horizontal and vertical, optional value: `vertical`\ |`horizontal` | string | `vertical` |
|
|
|
-| onClick | Trigger when clicking on any navigation item | ({ itemKey: string, domEvent: MouseEvent, isOpen: boolean }) => void | () = > {} |
|
|
|
-| onCollapseChange | The callback when the state changes. | (is Collapsed: boolean) => void | () = > {} |
|
|
|
-| onOpenChange | Triggers when switching the hidden state of a sub navigation project | ({ itemKey: string, openKeys: string[], domEvent: MouseEvent, isOpen: boolean }) => void | () = > {} |
|
|
|
-| onSelect | Triggers the first time you select an optional navigation project, where the selected Items field version > = 0.17.0 is supported | ({ itemKey: string, selectedKeys: string[], selectedItems: [Item](#Nav.Item)[], domEvent: MouseEvent, isOpen: boolean }) => void | () = > {} |
|
|
|
+| onClick | Trigger when clicking on any navigation item | <ApiType detail='({ itemKey: string, domEvent: MouseEvent, isOpen: boolean }) => void'>(itemKey, event, isOpen) => void</ApiType> | () = > {} |
|
|
|
+| onCollapseChange | The callback when the state changes. | <ApiType detail='(isCollapsed: boolean) => void'>(isCollapsed) => void </ApiType> | () = > {} |
|
|
|
+| onOpenChange | Triggers when switching the hidden state of a sub navigation project |<ApiType detail='({ itemKey: string, openKeys: string[], domEvent: MouseEvent, isOpen: boolean }) => void'> ({itemKey, openKeys, event, isOpen}) => void </ApiType> | () = > {} |
|
|
|
+| onSelect | Triggers the first time you select an optional navigation project, where the selected Items field version > = 0.17.0 is supported | <ApiType detail='({ itemKey: string, selectedKeys: string[], selectedItems: Item[], domEvent: MouseEvent, isOpen: boolean }) => void'>(onSelectProps) => void </ApiType> | () = > {} |
|
|
|
| openKeys | Controlled open sub navigation `itemKey` array, expanded with `onOpenChange` callback control sub navigation items, valid only `mode = "vertical"`and the sidebar is in an unfolding state | string[] | |
|
|
|
-| renderWrapper | Custom navigation item outer component >=2.24.0 | (data:{ itemElement:ReactElement, isSubNav:boolean, isInSubNav:boolean, props:SubNavProps\| ItemProps })=>ReactNode | |
|
|
|
+| renderWrapper | Custom navigation item outer component >=2.24.0 |<ApiType detail='(data:{ itemElement:ReactElement, isSubNav:boolean, isInSubNav:boolean, props:SubNavProps\| ItemProps }) => ReactNode'>(data) => ReactNode</ApiType> | |
|
|
|
| prefixCls | classsname prefix | string | `semi` |
|
|
|
| selectedKeys | Controlled navigation item `itemKey` array, with `onSelect` callback control navigation item selection | string[] | |
|
|
|
| style | Custom styles for outermost elements | object | |
|
|
|
@@ -808,7 +808,7 @@ function NavApp (props = {}) {
|
|
|
| -------------- | --------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------- | ------- | ------- |
|
|
|
| children | Sub element | ReactNode | | |
|
|
|
| className | Outermost style name | string | | |
|
|
|
-| collapseButton | Do you show the bottom "put away the sidebar" button, mode = "vertical" and the child parameter of the Footer component is empty? | boolean\|ReactNode | false | |
|
|
|
+| collapseButton | Whether to display the bottom "collapse sidebar" button, only work when mode="vertical" and the children parameter of the Footer component is empty | boolean\|ReactNode | false | |
|
|
|
| collapseText | Title of the collapse button | (collapsed:boolean) => string\|ReactNode | | 0.35.0 |
|
|
|
| style | Outermost style | object | | |
|
|
|
|