Skip to main content

Collapse

Container properties

All component configurations support Container properties at the first level.

Component properties

NameTypeDefaultSupports Variable PatternDescription
classNamestring✔️component's className
styleobjectcomponent's style
defaultActiveKeystringantd Collapse properties
itemsArray<{ key: string, label: string, fields: array, hidden: bool }>Contents of Collapse
itemSplitboolfalseWhen the value is true, multiple folded panels are directly laid out separately, otherwise the panels will be fit together
defaultActiveKeystring | Array<string>

All the remaining componentsProps will be passed to the component root element(Collapse)。

JS API

The interface obtained through formApi.getFieldApi() is as follows:

NameTypeDescription
nodeHTML ElementThe root DOM element of the component