跳到主要内容
版本:v8

ion-accordion-group

shadow

手风琴组是手风琴实例的容器。它管理手风琴的状态并提供键盘导航。

更多信息请参见手风琴文档。

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说明冒泡
ionChangeEmitted 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​

该组件没有可用的插槽。