el-dialog

Display modal dialogs with customizable headers, bodies, and footers.

21|2|Updated Mar 13, 2026
One-click install
npx skills add https://github.com/jiaiyan/element-plus-skills --skill el-dialog-jiaiyan
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: el-dialog
Source: https://github.com/jiaiyan/element-plus-skills/tree/main/components/el-dialog
Command: npx skills add https://github.com/jiaiyan/element-plus-skills --skill el-dialog-jiaiyan

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Presents content in a modal layer over the current page, preserving page state and avoiding full-page navigation.

Core Features & Use Cases

  • Modal/Modeless support, header/body/footer slots, and customizable size.
  • Nested and draggable dialogs for complex workflows, including forms and confirmations.
  • Accessibility considerations and animation transitions.

Quick Start

Open a dialog with a title and content to prompt user input.

Frequently Asked Questions about el-dialog

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I display a modal dialog over my current page in Vue?

To display a modal dialog over your current page in Vue, use a component that supports the model-value attribute for visibility toggling. This overlays content to collect input or confirm actions without requiring full-page navigation.

Can I customize the header, body, and footer of a Vue modal component?

Yes, you can customize the header, body, and footer of a Vue modal component by using its exposed slots. This allows you to inject custom content and interactive elements into specific layout regions for complex workflows.

Does Vue modal dialog support nested and draggable panels for complex workflows?

Yes, Vue modal dialogs support nested and draggable panels for complex workflows. You can stack dialogs and enable user interaction dragging to enhance usability when managing forms or multi-step confirmations.

How do I prevent background scrolling when a Vue modal dialog is open?

To prevent background scrolling when a Vue modal dialog is open, utilize the lock-scroll attribute. This ensures the underlying page remains fixed and avoids scroll interference while the modal layer is active.

What is the best way to close a Vue modal dialog on escape key press?

The best way to close a Vue modal dialog on escape key press is to enable the close-on-press-escape attribute. This provides an accessible keyboard interaction method for users to dismiss the modal layer.