UNPKG

@wocwin/t-ui-plus

Version:

Page level components developed based on Element Plus.

54 lines (53 loc) 1.63 kB
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue'; export interface Column { label: string; prop: string; checkBoxDisabled?: boolean; hidden?: boolean; } export interface ColumnSetProps { columns: Column[]; title?: string; name?: string; columnSetBind?: Record<string, any>; } declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ColumnSetProps>, { columns: () => never[]; title: string; name: string; columnSetBind: () => {}; }>, { reSetColumnSet: () => void; }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, { columnSetting: (...args: any[]) => void; }, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ColumnSetProps>, { columns: () => never[]; title: string; name: string; columnSetBind: () => {}; }>>> & { onColumnSetting?: ((...args: any[]) => any) | undefined; }, { name: string; title: string; columns: Column[]; columnSetBind: Record<string, any>; }, {}>; export default _default; type __VLS_NonUndefinedable<T> = T extends undefined ? never : T; type __VLS_TypePropsToRuntimeProps<T> = { [K in keyof T]-?: {} extends Pick<T, K> ? { type: PropType<__VLS_NonUndefinedable<T[K]>>; } : { type: PropType<T[K]>; required: true; }; }; type __VLS_WithDefaults<P, D> = { [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & { default: D[K]; }> : P[K]; }; type __VLS_Prettify<T> = { [K in keyof T]: T[K]; } & {};