@opensig/opendesign
Version:
123 lines (122 loc) • 3.81 kB
TypeScript
import { TableRowT, TableColumnT } from './types';
declare function __VLS_template(): {
attrs: Partial<{}>;
slots: Readonly<{
[k: `th_${string}`]: (props: {
column: TableColumnT;
}) => any;
[k: `td_${string}`]: (props: {
row: TableRowT;
rowIndex: number;
}) => any;
header(props: {
columns: TableColumnT[];
}): any;
body(): any;
empty(): any;
loading(): any;
}> & {
[k: `th_${string}`]: (props: {
column: TableColumnT;
}) => any;
[k: `td_${string}`]: (props: {
row: TableRowT;
rowIndex: number;
}) => any;
header(props: {
columns: TableColumnT[];
}): any;
body(): any;
empty(): any;
loading(): any;
};
refs: {
tableEl: HTMLTableElement;
};
rootEl: HTMLDivElement;
};
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
readonly columns: {
readonly type: import('vue').PropType<TableColumnT[] | string[]>;
};
readonly data: {
readonly type: import('vue').PropType<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;
};
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
readonly columns: {
readonly type: import('vue').PropType<TableColumnT[] | string[]>;
};
readonly data: {
readonly type: import('vue').PropType<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;
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
tableEl: HTMLTableElement;
}, HTMLDivElement>;
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
export default _default;
type __VLS_WithTemplateSlots<T, S> = T & {
new (): {
$slots: S;
};
};