Skip to content

Dialog

Basic usage

Set v-model to control the visibility of the dialog. It needs to be a Boolean value.

The dialog consists of a title, a body and a footer. The body allows you to insert any content, while the footer contains the default confirm&cancel buttons.

You can customize the footer by using the slot named footer.

Submit button loading

you can use submit-loading to control the loading state of the submit button to prevent repeated submissions.

API

Attributes

Nameis RequiredTypeDefault Value DescriptionDescription
modelValueNobooleanfalsevisibility of Dialog
titleNostring-the title of dialog
widthNostring/number30%width of dialog
submitLoadingNobooleanfalseloading state of confirm button

iDialog is a secondary encapuslation base on Dialog from Element plus. For description of other properties, please refer to Dialog

Event

NameDescriptionParameters
confirmtriggers when confirm button is clicked-
canceltriggers when cancel button is clicked-

Slot

Slot NameDescription
-content of body
footercontent of footer