@opensig/opendesign
Version:
172 lines (171 loc) • 6.26 kB
TypeScript
import { App } from 'vue';
declare const OTable: {
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
readonly columns: {
readonly type: import('vue').PropType<import('./types').TableColumnT[] | string[]>;
};
readonly data: {
readonly type: import('vue').PropType<import('./types').TableRowT[]>;
};
readonly border: {
readonly type: import('vue').PropType<import('./types').TableBorderT>;
readonly default: "row";
};
readonly stripe: {
readonly type: BooleanConstructor;
readonly default: false;
};
readonly small: {
readonly type: BooleanConstructor;
};
readonly cellSpan: {
readonly type: import('vue').PropType<import('./types').CellSpanT>;
};
readonly emptyLabel: {
readonly type: StringConstructor;
};
readonly loading: {
readonly type: BooleanConstructor;
};
readonly loadingLabel: {
readonly type: StringConstructor;
};
readonly highlightCurrentRow: {
readonly type: BooleanConstructor;
readonly default: false;
};
}>> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
readonly small: boolean;
readonly border: "none" | "frame" | "all" | "column" | "row" | "row-column" | "row-frame" | "column-frame";
readonly loading: boolean;
readonly stripe: boolean;
readonly highlightCurrentRow: boolean;
}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
tableEl: HTMLTableElement;
}, HTMLDivElement, import('vue').ComponentProvideOptions, {
P: {};
B: {};
D: {};
C: {};
M: {};
Defaults: {};
}, Readonly<import('vue').ExtractPropTypes<{
readonly columns: {
readonly type: import('vue').PropType<import('./types').TableColumnT[] | string[]>;
};
readonly data: {
readonly type: import('vue').PropType<import('./types').TableRowT[]>;
};
readonly border: {
readonly type: import('vue').PropType<import('./types').TableBorderT>;
readonly default: "row";
};
readonly stripe: {
readonly type: BooleanConstructor;
readonly default: false;
};
readonly small: {
readonly type: BooleanConstructor;
};
readonly cellSpan: {
readonly type: import('vue').PropType<import('./types').CellSpanT>;
};
readonly emptyLabel: {
readonly type: StringConstructor;
};
readonly loading: {
readonly type: BooleanConstructor;
};
readonly loadingLabel: {
readonly type: StringConstructor;
};
readonly highlightCurrentRow: {
readonly type: BooleanConstructor;
readonly default: false;
};
}>> & Readonly<{}>, {}, {}, {}, {}, {
readonly small: boolean;
readonly border: "none" | "frame" | "all" | "column" | "row" | "row-column" | "row-frame" | "column-frame";
readonly loading: boolean;
readonly stripe: boolean;
readonly highlightCurrentRow: boolean;
}>;
__isFragment?: never;
__isTeleport?: never;
__isSuspense?: never;
} & import('vue').ComponentOptionsBase<Readonly<import('vue').ExtractPropTypes<{
readonly columns: {
readonly type: import('vue').PropType<import('./types').TableColumnT[] | string[]>;
};
readonly data: {
readonly type: import('vue').PropType<import('./types').TableRowT[]>;
};
readonly border: {
readonly type: import('vue').PropType<import('./types').TableBorderT>;
readonly default: "row";
};
readonly stripe: {
readonly type: BooleanConstructor;
readonly default: false;
};
readonly small: {
readonly type: BooleanConstructor;
};
readonly cellSpan: {
readonly type: import('vue').PropType<import('./types').CellSpanT>;
};
readonly emptyLabel: {
readonly type: StringConstructor;
};
readonly loading: {
readonly type: BooleanConstructor;
};
readonly loadingLabel: {
readonly type: StringConstructor;
};
readonly highlightCurrentRow: {
readonly type: BooleanConstructor;
readonly default: false;
};
}>> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
readonly small: boolean;
readonly border: "none" | "frame" | "all" | "column" | "row" | "row-column" | "row-frame" | "column-frame";
readonly loading: boolean;
readonly stripe: boolean;
readonly highlightCurrentRow: boolean;
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
$slots: Readonly<{
[k: `th_${string}`]: (props: {
column: import('./types').TableColumnT;
}) => any;
[k: `td_${string}`]: (props: {
row: import('./types').TableRowT;
rowIndex: number;
}) => any;
header(props: {
columns: import('./types').TableColumnT[];
}): any;
body(): any;
empty(): any;
loading(): any;
}> & {
[k: `th_${string}`]: (props: {
column: import('./types').TableColumnT;
}) => any;
[k: `td_${string}`]: (props: {
row: import('./types').TableRowT;
rowIndex: number;
}) => any;
header(props: {
columns: import('./types').TableColumnT[];
}): any;
body(): any;
empty(): any;
loading(): any;
};
}) & {
install(app: App): void;
};
export { OTable };
export * from './types';
export * from './useTableMeta';