ion-accordion-group
手风琴组是手风琴实例的容器。它管理手风琴的状态并提供键盘导航。
更多信息请参见手风琴文档。
Interfaces
AccordionGroupChangeEventDetail
interface AccordionGroupChangeEventDetail<T = any> {
value: T;
}
AccordionGroupCustomEvent
虽然不是必须的,但可以使用此接口替代 CustomEvent 接口,以对此组件发出的 Ionic 事件提供更强的类型支持。
interface AccordionGroupCustomEvent<T = any> extends CustomEvent {
detail: AccordionGroupChangeEventDetail<T>;
target: HTMLIonAccordionGroupElement;
}
Properties
animated
| 说明 | If true, all accordions inside of the accordion group will animate when expanding or collapsing. |
| 属性 | animated |
| 类型 | boolean |
| 默认值 | true |
disabled
| 说明 | If true, the accordion group cannot be interacted with. |
| 属性 | disabled |
| 类型 | boolean |
| 默认值 | false |
expand
| 说明 | Describes the expansion behavior for each accordion. Possible values are "compact" and "inset". Defaults to "compact". |
| 属性 | expand |
| 类型 | "compact" | "inset" |
| 默认值 | 'compact' |
mode
| 说明 | The mode determines which platform styles to use. 这是一个虚拟属性,在初始化时设置一次,之后更改其值不会更新组件。 |
| 属性 | mode |
| 类型 | "ios" | "md" |
| 默认值 | undefined |
multiple
| 说明 | If true, the accordion group can have multiple accordion components expanded at the same time. |
| 属性 | multiple |
| 类型 | boolean | undefined |
| 默认值 | undefined |
readonly
| 说明 | If true, the accordion group cannot be interacted with, but does not alter the opacity. |
| 属性 | readonly |
| 类型 | boolean |
| 默认值 | false |
value
| 说明 | The value of the accordion group. This controls which accordions are expanded. This should be an array of strings only when multiple="true" |
| 属性 | value |
| 类型 | null | string | string[] | undefined |
| 默认值 | undefined |
Events
| Name | 说明 | 冒泡 |
|---|---|---|
ionChange | Emitted when the value property has changed as a result of a user action such as a click. This event will not emit when programmatically setting the value property. | true |
Methods
该组件没有可用的公共方法。
CSS Shadow Parts
该组件没有可用的 CSS 阴影部分。
CSS Custom Properties
该组件没有可用的 CSS 自定义属性。
Slots
该组件没有可用的插槽。