Skip to content

[Bug Report] MessageBox Bullet Box - Distinguishing Cancellation from Closing #15395

@huhongyin

Description

@huhongyin

Element UI version

2.8.2

OS/Browsers version

deepin

Vue version

2.6.10

Reproduction Link

https://codepen.io/pen/?&editable=true

Steps to reproduce

默认情况下,当用户触发取消(点击取消按钮)和触发关闭(点击关闭按钮或遮罩层、按下 ESC 键)时,Promise 的 reject 回调和callback回调的参数均为 'cancel'。如果将distinguishCancelAndClose属性设置为 true,则上述两种行为的参数分别为 'cancel' 和 'close'。
文档中说触发关闭(点击关闭按钮或遮罩层、按下esc按钮)行为参数是close,但是按下esc键行为参数仍然为cancel

What is Expected?

期待和文档中一致的行为参数

What is actually happening?

实际行为参数为cancel

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions