mirror of
https://github.com/element-plus/element-plus.git
synced 2024-12-21 02:50:11 +08:00
11 lines
351 B
TypeScript
11 lines
351 B
TypeScript
|
import type { CollapseActiveName } from '@element-plus/components/collapse'
|
||
|
import type { InjectionKey, Ref } from 'vue'
|
||
|
|
||
|
export interface CollapseContext {
|
||
|
activeNames: Ref<CollapseActiveName[]>
|
||
|
handleItemClick: (name: CollapseActiveName) => void
|
||
|
}
|
||
|
|
||
|
export const collapseContextKey: InjectionKey<CollapseContext> =
|
||
|
Symbol('collapseContextKey')
|