UNPKG

@aplus-frontend/ui

Version:

30 lines (29 loc) 1.15 kB
import { BadgeProps } from '@aplus-frontend/antdv'; import { TooltipPlacement } from '@aplus-frontend/antdv/es/tooltip/Tooltip'; import { ApTagProps } from '../ap-tag'; import { VNode, VNodeChild } from 'vue'; type Recordable = Record<string, any>; export type ApLabelProps = BadgeProps & Partial<{ helpMessage: VNode | string | undefined; placement: TooltipPlacement; iconColor: string; iconType: 'question' | 'warning' | 'line-warning' | 'ellipsis' | 'success'; iconSize: number; show: boolean; toolTipBgColor: string; }>; export type tagConfigKey = ApTagProps & { value: number | string | undefined | null; }; export type ApLabelGroupItemProps<T extends Recordable = Recordable> = ApLabelProps & { value?: string | number | null | undefined; tagConfig?: Array<tagConfigKey> | null | undefined; customRender?: (record?: T) => VNodeChild | VNode | string; }; export type ApLabelGroupProps<T extends Recordable = Recordable> = { value: string | number | null | undefined; tagValue?: string | number | null | undefined; columns: Array<ApLabelGroupItemProps<T>> | null; record?: T; }; export {};