Skip to content

Accordion 折叠面板 ​

可以单开或多开。正文插槽根据当前条目的 value 渲染。

vue
<ll-accordion v-model="expanded" :items="options" collapsible />

Attributes ​

参数说明类型可选值默认值
model-value展开项string / string[]single 对应字符串,multiple 对应数组—
items条目列表ChoiceOption[]value、label、disabled—
type展开模式stringsingle、multiplesingle
collapsible允许折叠已经展开的唯一条目boolean—false
disabled禁用整组boolean—false

Events ​

事件名称说明
update:modelValue输出展开状态

Slots ​

名称说明
default当前条目的正文,接收 value