File tree 3 files changed +18
-16
lines changed
3 files changed +18
-16
lines changed Original file line number Diff line number Diff line change @@ -71,13 +71,14 @@ More layouts with navigation: [Layout](/components/layout).
71
71
72
72
### Menu.SubMenu
73
73
74
- | Param | Description | Type | Default value | Version |
75
- | -------------- | ----------------------------------- | ------------ | ------------- | ------- |
76
- | disabled | whether sub menu is disabled or not | boolean | false | |
77
- | expandIcon | Customized expandIcon | slot | arrow icon | | |
78
- | key | Unique ID of the sub menu, required | string | | |
79
- | popupClassName | Sub-menu class name | string | | 1.5.0 |
80
- | title | title of the sub menu | string\| slot | | |
74
+ | Param | Description | Type | Default value | Version |
75
+ | --- | --- | --- | --- | --- |
76
+ | disabled | whether sub menu is disabled or not | boolean | false | |
77
+ | expandIcon | Customized expandIcon | slot | arrow icon | | |
78
+ | key | Unique ID of the sub menu, required | string | | |
79
+ | popupClassName | Sub-menu class name | string | | 1.5.0 |
80
+ | popupOffset | Sub-menu offset, not working when ` mode="inline" ` | \[ number, number] | - | |
81
+ | title | title of the sub menu | string\| slot | | |
81
82
82
83
The children of Menu.SubMenu must be ` MenuItem ` or ` SubMenu ` .
83
84
Original file line number Diff line number Diff line change @@ -72,14 +72,15 @@ cover: https://gw.alipayobjects.com/zos/alicdn/3XZcjGpvK/Menu.svg
72
72
73
73
### Menu.SubMenu
74
74
75
- | 参数 | 说明 | 类型 | 默认值 | 版本 |
76
- | -------------- | ------------------------ | ------------ | -------- | ----- |
77
- | disabled | 是否禁用 | boolean | false | |
78
- | expandIcon | 自定义 Menu 展开收起图标 | slot | 箭头图标 | |
79
- | icon | 菜单图标 | slot | | 2.8.0 |
80
- | key | 唯一标志, 必填 | string | | |
81
- | popupClassName | 子菜单样式 | string | | 1.5.0 |
82
- | title | 子菜单项值 | string\| slot | | |
75
+ | 参数 | 说明 | 类型 | 默认值 | 版本 |
76
+ | -------------- | ------------------------------------ | ----------------- | -------- | ----- |
77
+ | disabled | 是否禁用 | boolean | false | |
78
+ | expandIcon | 自定义 Menu 展开收起图标 | slot | 箭头图标 | |
79
+ | icon | 菜单图标 | slot | | 2.8.0 |
80
+ | key | 唯一标志, 必填 | string | | |
81
+ | popupClassName | 子菜单样式 | string | | 1.5.0 |
82
+ | popupOffset | 子菜单偏移量,` mode="inline" ` 时无效 | \[ number, number] | - | |
83
+ | title | 子菜单项值 | string\| slot | | |
83
84
84
85
Menu.SubMenu 的子元素必须是 ` MenuItem ` 或者 ` SubMenu ` .
85
86
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ const subMenuProps = {
28
28
disabled : Boolean ,
29
29
level : Number ,
30
30
popupClassName : String ,
31
- popupOffset : Array as PropType < number [ ] > ,
31
+ popupOffset : Array as unknown as PropType < [ number , number ] > ,
32
32
internalPopupClose : Boolean ,
33
33
eventKey : String ,
34
34
expandIcon : Function as PropType < ( p ?: { isOpen : boolean ; [ key : string ] : any } ) => any > ,
You can’t perform that action at this time.
0 commit comments