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>
20 lines
504 B
TypeScript
20 lines
504 B
TypeScript
import { buildProps } from '@element-plus/utils'
|
|
|
|
import type { ExtractPropTypes, __ExtractPublicPropTypes } from 'vue'
|
|
import type Bar from './bar.vue'
|
|
|
|
export const barProps = buildProps({
|
|
always: {
|
|
type: Boolean,
|
|
default: true,
|
|
},
|
|
minSize: {
|
|
type: Number,
|
|
required: true,
|
|
},
|
|
} as const)
|
|
export type BarProps = ExtractPropTypes<typeof barProps>
|
|
export type BarPropsPublic = __ExtractPublicPropTypes<typeof barProps>
|
|
|
|
export type BarInstance = InstanceType<typeof Bar> & unknown
|