diff --git a/src/dropdown-menu/README.md b/src/dropdown-menu/README.md index e5e62eb65..2b43cbbb4 100644 --- a/src/dropdown-menu/README.md +++ b/src/dropdown-menu/README.md @@ -140,6 +140,13 @@ Use `active-color` prop to custom active color of the title and options | opened | Triggered when opened menu | - | | close | Triggered when close menu | - | +### DropdownItem Slots + +| Name | Description | +|------|------| +| default | Content | +| title | Custom title | + ### DropdownItem Methods Use ref to get DropdownItem instance and call instance methods diff --git a/src/dropdown-menu/README.zh-CN.md b/src/dropdown-menu/README.zh-CN.md index 374458847..5311af8db 100644 --- a/src/dropdown-menu/README.zh-CN.md +++ b/src/dropdown-menu/README.zh-CN.md @@ -144,6 +144,13 @@ export default { | opened | 打开菜单栏且动画结束后触发 | - | | close | 关闭菜单栏时触发 | - | +### DropdownItem Slots + +| 名称 | 说明 | +|------|------| +| default | 菜单内容 | +| title | 自定义标题,不支持动态渲染 | + ### DropdownItem 方法 通过 ref 可以获取到 DropdownItem 实例并调用实例方法 diff --git a/src/dropdown-menu/index.js b/src/dropdown-menu/index.js index 376cb07fa..6913136ca 100644 --- a/src/dropdown-menu/index.js +++ b/src/dropdown-menu/index.js @@ -95,7 +95,7 @@ export default createComponent({ ]} style={{ color: item.showPopup ? this.activeColor : '' }} > -