折叠面板 Collapse

示例

基本形式

<collapse>
    <panel title="Panel1">Content1</panel>
    <panel title="Panel2" open>Content2</panel>
    <panel title="Panel3">Content3</panel>
    <panel title="Panel4">Content4</panel>
</collapse>

每次只展开一个

<collapse accordion>
    <panel title="Panel1">Content1</panel>
    <panel title="Panel2">Content2</panel>
    <panel title="Panel3">Content3</panel>
    <panel title="Panel4">Content4</panel>
</collapse>

禁用

待完成。。。

API

Class

Collapse

继承自Component

Options

new Collapse()

参数类型默认值数据流向描述
dataobject绑定属性
data.accordionbooleanfalseouter => inner是否每次只展开一个
data.disabledbooleanfalseouter => inner是否禁用
data.visiblebooleantrueouter => inner是否显示
data.classstring''outer => inner补充class