Skip to content

$XDialog Attributes Documentation

Examples

  1. Basic Usage

props

ParameterDescriptionTypeDefault Value
optionDialog configuration options and props for embedded components, as well as $emit communication events (emitMethods)DialogDirectiveProps-
contentStyleDialog content area styleCSSProperties-

option

option (DialogDirectiveProps type definition)

ParameterDescriptionTypeDefault Value
titleDialog titlestring-
widthDialog widthstring | number80%
menuWhether to display the dialog operation areabooleantrue
loadingWhether the confirm button has a loading animation after being clickedbooleantrue
showCloseBtnWhether to display the close buttonbooleantrue
closeBtnTextClose button textstring | numberClose
onCloseCallback triggered when the close button is clicked() => void-
showSaveBtnWhether to display the confirm buttonbooleanfalse
saveBtnTextConfirm button textstring | numberConfirm
onSaveCallback for the confirm event(done: () => void, data?: any) => voiddone is used to close the loading state of the confirm button
onFullscreenCallback triggered when switching to fullscreen mode(v: boolean) => voidv indicates whether it is fullscreen
propsProps passed to components nested inside the dialog. Components inside the dialog receive props through propsobject-
emitMethodsMethods in this collection will be encapsulated as events. Components inside the dialog can communicate directly through $emit. If no $emit communication is performed by components inside the dialog, it will be an empty object {}object-