Skip to content

QueryPanel

QueryPanel is a container component for list-page query areas. It handles expand/collapse behavior, height measurement, and the right-side action area.

It does not own field layout or form configuration. For standard list pages and CRUD query areas, prefer wrapping a native el-form. Only consider EzDynamicForm when the query fields themselves are truly config-driven.

Basic Usage

Properties

Property NameDescriptionTypeDefault
expandedExpand statebooleanfalse
collapsedHeightBase collapsed heightnumber50

Slots

Slot NameDescriptionType
defaultQuery area body content-
operateRight-side action area-

Events

Event NameDescriptionParameters
update:expandedListen to expand stateFunction

Methods

Method NameDescriptionType
countViewHeightRecalculate content heightFunction

Usage Notes

  • QueryPanel owns the query-area shell and collapse interaction.
  • For standard CRUD and list pages, prefer native el-form / el-form-item.
  • Use EzDynamicForm only for the smaller set of cases where query fields are highly reusable or configuration-driven.

Released under the MIT License