UNPKG

yanzhen-design-vue

Version:

29 lines (28 loc) 1.06 kB
import { ContactsTypes } from './contacts'; import { DataNode } from 'ant-design-vue/es/vc-tree/interface'; export type ContactsValue = string | number; export type ContactsLabel = string | number | null | undefined; export declare enum ContactsOption { VALUE = "value", LABEL = "label", TYPE = "type", AVATAR = "avatar", DISABLED = "disabled" } export declare const contactsOptionType: readonly [ContactsOption.VALUE, ContactsOption.LABEL, ContactsOption.TYPE, ContactsOption.AVATAR, ContactsOption.DISABLED]; export interface ContactsBaseItem { [ContactsOption.VALUE]: ContactsValue; [ContactsOption.LABEL]: ContactsLabel; [ContactsOption.TYPE]?: ContactsTypes; [ContactsOption.DISABLED]?: boolean; [ContactsOption.AVATAR]?: string; [k: string]: any; } export interface ContactsItem extends Partial<Omit<DataNode, 'children'>>, ContactsBaseItem { children?: ContactsItem[]; tags?: ContactsItem[]; dataRef?: any; info?: Record<string, any>; dataType?: ContactsTypes; isCard?: boolean; }