UNPKG

plus-pro-components

Version:

Page level components developed based on Element Plus.

30 lines (28 loc) 811 B
import { Component } from 'vue'; import { TableValueType } from 'plus-pro-components/es/types'; export type DisplayComponentType = { /** * parent Component */ component: Component | string; /** * parent Props */ format?: (...arg: any[]) => string; class?: string; hasSlots?: boolean; }; export type DisplayComponentMapType = Record<Exclude<TableValueType & 'date-picker', undefined | '' | 'copy'>, DisplayComponentType>; export declare const DisplayComponentMap: DisplayComponentMapType; /** * has component * @param valueType * @returns */ export declare const hasDisplayComponent: (valueType?: string) => boolean; /** * get component * @param valueType * @returns */ export declare const getDisplayComponent: (valueType?: string) => DisplayComponentType;