mirror of
https://github.com/element-plus/element-plus.git
synced 2026-03-13 07:51:17 +08:00
50 lines
960 B
TypeScript
50 lines
960 B
TypeScript
import { buildProps } from '@element-plus/utils'
|
|
import { useSizeProp } from '@element-plus/hooks'
|
|
|
|
import type Description from './description.vue'
|
|
|
|
export const descriptionProps = buildProps({
|
|
/**
|
|
* @description with or without border
|
|
*/
|
|
border: {
|
|
type: Boolean,
|
|
default: false,
|
|
},
|
|
/**
|
|
* @description numbers of `Descriptions Item` in one line
|
|
*/
|
|
column: {
|
|
type: Number,
|
|
default: 3,
|
|
},
|
|
/**
|
|
* @description direction of list
|
|
*/
|
|
direction: {
|
|
type: String,
|
|
values: ['horizontal', 'vertical'],
|
|
default: 'horizontal',
|
|
},
|
|
/**
|
|
* @description size of list
|
|
*/
|
|
size: useSizeProp,
|
|
/**
|
|
* @description title text, display on the top left
|
|
*/
|
|
title: {
|
|
type: String,
|
|
default: '',
|
|
},
|
|
/**
|
|
* @description extra text, display on the top right
|
|
*/
|
|
extra: {
|
|
type: String,
|
|
default: '',
|
|
},
|
|
} as const)
|
|
|
|
export type DescriptionInstance = InstanceType<typeof Description>
|