mirror of
https://github.com/element-plus/element-plus.git
synced 2026-03-13 07:51:17 +08:00
19 lines
482 B
TypeScript
19 lines
482 B
TypeScript
import { buildProps } from '@element-plus/utils'
|
|
import type { ExtractPropTypes } from 'vue'
|
|
|
|
export const carouselItemProps = buildProps({
|
|
/**
|
|
* @description name of the item, can be used in `setActiveItem`
|
|
*/
|
|
name: { type: String, default: '' },
|
|
/**
|
|
* @description text content for the corresponding indicator
|
|
*/
|
|
label: {
|
|
type: [String, Number],
|
|
default: '',
|
|
},
|
|
} as const)
|
|
|
|
export type CarouselItemProps = ExtractPropTypes<typeof carouselItemProps>
|