Files
element-plus/packages/components/row/src/row.ts
zepeng 49e6cc33c5 fix(components): [row] align="top" is not working properly (#13550)
* fix(components): [row] align='top' is not working properly

* fix(components): [row] align="top" is not working properly
2023-07-22 19:53:30 +08:00

50 lines
937 B
TypeScript

import { buildProps } from '@element-plus/utils'
import type { ExtractPropTypes } from 'vue'
import type Row from './row.vue'
export const RowJustify = [
'start',
'center',
'end',
'space-around',
'space-between',
'space-evenly',
] as const
export const RowAlign = ['top', 'middle', 'bottom'] as const
export const rowProps = buildProps({
/**
* @description custom element tag
*/
tag: {
type: String,
default: 'div',
},
/**
* @description grid spacing
*/
gutter: {
type: Number,
default: 0,
},
/**
* @description horizontal alignment of flex layout
*/
justify: {
type: String,
values: RowJustify,
default: 'start',
},
/**
* @description vertical alignment of flex layout
*/
align: {
type: String,
values: RowAlign,
},
} as const)
export type RowProps = ExtractPropTypes<typeof rowProps>
export type RowInstance = InstanceType<typeof Row>