Skip to content

Dialog

The dialog component is used for popup-style interactions, supporting custom content and layout.

Basic Usage

The basic dialog includes a mask layer, content area, and close operation.

Component Structure

The Dialog component consists of the following parts:

  • <ol-dialog>: Dialog container
  • <ol-dialog-card>: Card-style content container
    • Inherits the structure of the Card component (Header/Content/Footer)

Parameter Configuration

Parameter NameDescriptionTypeDefault Value
showControls displaybooleanfalse
maskDisplays maskbooleantrue
maskClickCloseCloses on mask clickbooleantrue

Events

  • close: Triggered when the dialog is closed