Appearance
Accordion 折叠面板
可以单开或多开。正文插槽根据当前条目的 value 渲染。
vue
<ll-accordion v-model="expanded" :items="options" collapsible />Attributes
| 参数 | 说明 | 类型 | 可选值 | 默认值 |
|---|---|---|---|---|
| model-value | 展开项 | string / string[] | single 对应字符串,multiple 对应数组 | — |
| items | 条目列表 | ChoiceOption[] | value、label、disabled | — |
| type | 展开模式 | string | single、multiple | single |
| collapsible | 允许折叠已经展开的唯一条目 | boolean | — | false |
| disabled | 禁用整组 | boolean | — | false |
Events
| 事件名称 | 说明 |
|---|---|
| update:modelValue | 输出展开状态 |
Slots
| 名称 | 说明 |
|---|---|
| default | 当前条目的正文,接收 value |