mirror of
https://github.com/element-plus/element-plus.git
synced 2026-03-13 07:51:17 +08:00
* feat(types): [utils] add ExtractPublicPropTypes type * feat(types): [components] add props public type * chore(types): use type-only import for Prop from 'vue' Co-authored-by: Noblet Ouways <91417411+Dsaquel@users.noreply.github.com> --------- Co-authored-by: Noblet Ouways <91417411+Dsaquel@users.noreply.github.com>
19 lines
530 B
TypeScript
19 lines
530 B
TypeScript
import { buttonProps } from './button'
|
|
|
|
import type { ExtractPropTypes, __ExtractPublicPropTypes } from 'vue'
|
|
|
|
export const buttonGroupProps = {
|
|
/**
|
|
* @description control the size of buttons in this button-group
|
|
*/
|
|
size: buttonProps.size,
|
|
/**
|
|
* @description control the type of buttons in this button-group
|
|
*/
|
|
type: buttonProps.type,
|
|
} as const
|
|
export type ButtonGroupProps = ExtractPropTypes<typeof buttonGroupProps>
|
|
export type ButtonGroupPropsPublic = __ExtractPublicPropTypes<
|
|
typeof buttonGroupProps
|
|
>
|