element-plus/packages/tokens/collapse.ts
bqy e083447b48
refactor(components): [collapse] refactor (#6307)
* refactor(components): [collapse] refactor

* refactor(components): [collapse] refactor

* refactor: rename

Co-authored-by: 三咲智子 <sxzz@sxzz.moe>
2022-03-01 20:44:32 +08:00

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')