mirror of
https://github.com/element-plus/element-plus.git
synced 2026-03-13 07:51:17 +08:00
* refactor(utils-v2): migrate utils * refactor(utils-v2): migrate utils * refactor(utils-v2): migrate utils * refactor(utils): remove * refactor(utils): rename * refactor(utils): move EVENT_CODE to constants * refactor: remove generic
26 lines
695 B
TypeScript
26 lines
695 B
TypeScript
import { buildProps, definePropType } from '@element-plus/utils'
|
|
import type { ExtractPropTypes } from 'vue'
|
|
import type Divider from './divider.vue'
|
|
|
|
export type BorderStyle = CSSStyleDeclaration['borderStyle']
|
|
|
|
export const dividerProps = buildProps({
|
|
direction: {
|
|
type: String,
|
|
values: ['horizontal', 'vertical'],
|
|
default: 'horizontal',
|
|
},
|
|
contentPosition: {
|
|
type: String,
|
|
values: ['left', 'center', 'right'],
|
|
default: 'center',
|
|
},
|
|
borderStyle: {
|
|
type: definePropType<BorderStyle>(String),
|
|
default: 'solid',
|
|
},
|
|
} as const)
|
|
export type DividerProps = ExtractPropTypes<typeof dividerProps>
|
|
|
|
export type DividerInstance = InstanceType<typeof Divider>
|