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>
28 lines
694 B
TypeScript
28 lines
694 B
TypeScript
import { buildProps } from '@element-plus/utils'
|
|
|
|
import type { ExtractPropTypes, __ExtractPublicPropTypes } from 'vue'
|
|
import type SplitterPanel from './split-panel.vue'
|
|
|
|
export const splitterPanelProps = buildProps({
|
|
min: {
|
|
type: [String, Number],
|
|
},
|
|
max: {
|
|
type: [String, Number],
|
|
},
|
|
size: {
|
|
type: [String, Number],
|
|
},
|
|
resizable: {
|
|
type: Boolean,
|
|
default: true,
|
|
},
|
|
collapsible: Boolean,
|
|
} as const)
|
|
|
|
export type SplitterPanelProps = ExtractPropTypes<typeof splitterPanelProps>
|
|
export type SplitterPanelPropsPublic = __ExtractPublicPropTypes<
|
|
typeof splitterPanelProps
|
|
>
|
|
export type SplitterPanelInstance = InstanceType<typeof SplitterPanel> & unknown
|