Collapse
Use Collapse para almacenar contenidos.
Uso básico
Puede expandir múltiples paneles
Consistent with real life: in line with the process and logic of real life, and comply with languages and habits that the users are used to;
Consistent within interface: all elements should be consistent, such as: design style, icons and texts, position of elements, etc.
Acordeón
En modo acordeón solo un panel puede ser expandido a la vez
Active el modo acordeón usado el atributo accordion
.
Consistent with real life: in line with the process and logic of real life, and comply with languages and habits that the users are used to;
Consistent within interface: all elements should be consistent, such as: design style, icons and texts, position of elements, etc.
Título personalizado
Además de usar el atributo title
, se puede personalizar el título del panel con slots con nombre, esto hace posible agregar contenido personalizado, por ejemplo: iconos.
Custom icon 2.8.3
Besides using the icon
attribute, you can customize icon of panel item with named slots, which makes adding custom content.
Consistent with real life: in line with the process and logic of real life, and comply with languages and habits that the users are used to;
Consistent within interface: all elements should be consistent, such as: design style, icons and texts, position of elements, etc.
Collapse API
Collapse Attributes
Nombre | Descripción | Tipo | Default |
---|---|---|---|
model-value / v-model | currently active panel, the type is string in accordion mode, otherwise it is array | string / array | [] |
accordion | si desea activar el modo de acordeón | boolean | false |
Collapse Events
Nombre | Descripción | Type |
---|---|---|
change | triggers when active panels change, the parameter type is string in accordion mode, otherwise it is array | Function |
Collapse Slots
Nombre | Descripción | Subtags |
---|---|---|
default | personaliza el contenido por defecto | Collapse Item |
Collapse Item API
Collapse Item Attributes
Nombre | Descripción | Tipo | Default |
---|---|---|---|
name | identificador único del panel | string / number | — |
title | título del panel | string | '' |
icon 2.8.3 | icon of the collapse item | string / Component | ArrowRight |
disabled | deshabilita el collapse ítem | boolean | false |
Collapse Item Slot
Nombre | Descripción | Type |
---|---|---|
default | contenido del Collapse Ítem | — |
title | contenido del Collapse Ítem | — |
icon 2.8.3 | content of Collapse Item icon | object |
Fuente
Componentes • Style • Documentación