UNPKG

element-plus

Version:

A Component Library for Vue 3

35 lines (31 loc) 787 B
import { buildProps } from '@element-plus/utils/props' import type { ExtractPropTypes } from 'vue' export const tagProps = buildProps({ closable: Boolean, type: { type: String, values: ['success', 'info', 'warning', 'danger', ''], default: '', }, hit: Boolean, disableTransitions: Boolean, color: { type: String, default: '', }, size: { type: String, values: ['medium', 'small', 'mini'], }, effect: { type: String, values: ['dark', 'light', 'plain'], default: 'light', }, } as const) export type TagProps = ExtractPropTypes<typeof tagProps> export const tagEmits = { close: (evt: MouseEvent) => evt instanceof MouseEvent, click: (evt: MouseEvent) => evt instanceof MouseEvent, } export type TagEmits = typeof tagEmits