Skip to content

Commit af06b76

Browse files
committed
feat: deprecated dropdown center placement
1 parent e565423 commit af06b76

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

components/breadcrumb/BreadcrumbItem.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export default defineComponent({
3030
const overlay = getPropsSlot(slots, props, 'overlay');
3131
if (overlay) {
3232
return (
33-
<DropDown overlay={overlay} placement="bottomCenter">
33+
<DropDown overlay={overlay} placement="bottom">
3434
<span class={`${prefixCls}-overlay-link`}>
3535
{breadcrumbItem}
3636
<DownOutlined />

components/dropdown/index.en-US.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ When there are more than a few options to choose from, you can wrap them in a `D
2323
| overlay(v-slot) | the dropdown menu | [Menu](/components/menu) | - | |
2424
| overlayClassName | Class name of the dropdown root element | string | - | |
2525
| overlayStyle | Style of the dropdown root element | object | - | |
26-
| placement | placement of pop menu: `bottomLeft` `bottomCenter` `bottomRight` `topLeft` `topCenter` `topRight` | String | `bottomLeft` | |
26+
| placement | placement of pop menu: `bottomLeft` `bottom` `bottomRight` `topLeft` `top` `topRight` | String | `bottomLeft` | |
2727
| trigger | the trigger mode which executes the drop-down action, hover doesn't work on mobile device | Array&lt;`click`\|`hover`\|`contextmenu`> | `['hover']` | |
2828
| visible(v-model) | whether the dropdown menu is visible | boolean | - | |
2929

@@ -47,7 +47,7 @@ You should use [Menu](/components/menu/) as `overlay`. The menu items and divide
4747
| icon | Icon (appears on the right) | vNode \| slot | - | 1.5.0 |
4848
| loading | Set the loading status of button | boolean \| { delay: number } | false | 3.0 |
4949
| overlay(v-slot) | the dropdown menu | [Menu](/components/menu) | - | |
50-
| placement | placement of pop menu: `bottomLeft` `bottomCenter` `bottomRight` `topLeft` `topCenter` `topRight` | String | `bottomLeft` | |
50+
| placement | placement of pop menu: `bottomLeft` `bottom` `bottomRight` `topLeft` `top` `topRight` | String | `bottomLeft` | |
5151
| size | size of the button, the same as [Button](/components/button) | string | `default` | |
5252
| trigger | the trigger mode which executes the drop-down action | Array&lt;`click`\|`hover`\|`contextmenu`> | `['hover']` | |
5353
| type | type of the button, the same as [Button](/components/button) | string | `default` | |

components/dropdown/index.zh-CN.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ cover: https://gw.alipayobjects.com/zos/alicdn/eedWN59yJ/Dropdown.svg
2727
| overlay(v-slot) | 菜单 | [Menu](/components/menu-cn) | - | |
2828
| overlayClassName | 下拉根元素的类名称 | string | - | |
2929
| overlayStyle | 下拉根元素的样式 | object | - | |
30-
| placement | 菜单弹出位置:`bottomLeft` `bottomCenter` `bottomRight` `topLeft` `topCenter` `topRight` | String | `bottomLeft` | |
30+
| placement | 菜单弹出位置:`bottomLeft` `bottom` `bottomRight` `topLeft` `top` `topRight` | String | `bottomLeft` | |
3131
| trigger | 触发下拉的行为, 移动端不支持 hover | Array&lt;`click`\|`hover`\|`contextmenu`> | `['hover']` | |
3232
| visible(v-model) | 菜单是否显示 | boolean | - | |
3333

@@ -51,7 +51,7 @@ cover: https://gw.alipayobjects.com/zos/alicdn/eedWN59yJ/Dropdown.svg
5151
| icon | 右侧的 icon | VNode \| slot | - | 1.5.0 |
5252
| loading | 设置按钮载入状态 | boolean \| { delay: number } | false | 3.0 |
5353
| overlay(v-slot) | 菜单 | [Menu](/components/menu-cn/) | - | |
54-
| placement | 菜单弹出位置:`bottomLeft` `bottomCenter` `bottomRight` `topLeft` `topCenter` `topRight` | String | `bottomLeft` | |
54+
| placement | 菜单弹出位置:`bottomLeft` `bottom` `bottomRight` `topLeft` `top` `topRight` | String | `bottomLeft` | |
5555
| size | 按钮大小,和 [Button](/components/button-cn/) 一致 | string | 'default' | |
5656
| trigger | 触发下拉的行为 | Array&lt;`click`\|`hover`\|`contextmenu`> | `['hover']` | |
5757
| type | 按钮类型,和 [Button](/components/button-cn/) 一致 | string | 'default' | |

0 commit comments

Comments
 (0)