16 lines
578 B
TypeScript
16 lines
578 B
TypeScript
import type { InjectionKey, VNode } from 'vue'
|
|
|
|
export interface CollapseGroupContext {
|
|
name: 'AoCollapseGroup'
|
|
activeKey: string | number | boolean | (string | number | boolean)[] | undefined
|
|
defaultExpandAll: boolean
|
|
disabled: boolean
|
|
expandIcon: boolean | string | VNode | ((args: { expanded: boolean }) => VNode)
|
|
expandIconPlacement: 'left' | 'right'
|
|
destroyOnHide: boolean
|
|
borderLess: boolean
|
|
handleChange: (value: string | number | boolean, e: Event) => void
|
|
}
|
|
|
|
export const collapseGroupKey: InjectionKey<CollapseGroupContext> = Symbol('CollapseGroup')
|