mirror of
https://github.com/element-plus/element-plus.git
synced 2024-12-21 02:50:11 +08:00
19bc41f965
* feat(hooks): extracting size injection for form items - Extract common code for form items - Apply extracted code for el-button * - Address import order * Update packages/hooks/use-form-item/index.ts Co-authored-by: 三咲智子 <sxzz@sxzz.moe> * - Fix type annotation for fallbacks * - Use MaybeRef to mark type of local fallbacks Co-authored-by: 三咲智子 <sxzz@sxzz.moe>
10 lines
248 B
TypeScript
10 lines
248 B
TypeScript
import type { InjectionKey } from 'vue'
|
|
|
|
import type { ComponentSize } from '@element-plus/utils/types'
|
|
|
|
export interface ElButtonGroupContext {
|
|
size?: ComponentSize
|
|
}
|
|
|
|
export const elButtonGroupKey: InjectionKey<ElButtonGroupContext> = Symbol()
|