UNPKG

@aplus-frontend/ui

Version:

49 lines (48 loc) 1.1 kB
import { AlertProps } from '@aplus-frontend/antdv/es/alert'; import { Component, CSSProperties, VNode } from 'vue'; export type ApExpandAlertProps<T> = { /** * Alert类型 */ type?: 'warning' | 'error' | 'success' | 'info' | 'card' | undefined; /** * 展开数据 */ data?: Array<T> | string; /** * 标题前缀 */ prefix?: string; /** * Tooltip 提示标题 */ tipTitle?: string; /** * Label映射字段 */ mapLabel?: string; /** * 分隔符 */ separator?: Component | VNode | string; /** * 分隔符样式 */ separatorStyle?: CSSProperties; /** * 内容样式 */ contentStyle?: Omit<CSSProperties, 'wordBreak' | 'overflow' | 'display' | 'webkitLineClamp' | 'webkitBoxOrient'>; /** * 前缀样式 */ prefixStyle?: CSSProperties; /** * 内容达到几行显示展开收起,默认是两行 */ rows?: string | number; /** * 默认是否展开 */ defaultExpand?: boolean; } & Pick<AlertProps, 'showIcon'>;