element-plus/packages/tokens/button.ts
三咲智子 93f0a35905
feat(components): [el-button-group] add type prop (#3702)
* feat(components): [el-button-group] add type prop

* fix breadcrumb import
2021-09-28 20:51:08 +08:00

11 lines
287 B
TypeScript

import type { InjectionKey } from 'vue'
import type { ButtonProps } from '@element-plus/components/button'
export interface ElButtonGroupContext {
size?: ButtonProps['size']
type?: ButtonProps['type']
}
export const elButtonGroupKey: InjectionKey<ElButtonGroupContext> = Symbol()