Skip to content
On this page

Modal
New

模态对话框在页面上方的层中显示需要用户交互的内容。

Usage

title

设置模态对话框标题。

cancelButtonText | confirmButtonText

设置模态对话框 取消 确认 按钮文案。

draggable

设置模态框可以拖动。

shakeOff

甩掉某些元素。

Props

NameTypeDefaultDescription
titlestring''set modal title.
cancelButtonTextstringCancelset modal cancel button text.
confirmButtonTextstringConfirmset modal confirm button text.
draggablebooleanfalseDraggable the modal.
shakeOff<'x-button' | 'confirm-button' | 'cancel-button' | 'mask' | 'header' | 'footer'>[][]shake off somthing.

Slots

NameParametersDescription
default()模态框内容.
headless()自定义模态框(保留了模态框显隐的基本能力).

MIT Licensed