@opensig/opendesign
Version:
<p align="center"><img src="../docs/public/opendesign-logo-light.png"/></p> <h1 align="center">opendesign</h1> <p align="center">一个 Vue 3 组件库</p> <p align="center"><b>皮肤可定制,使用 TypeScript</b></p>
105 lines (104 loc) • 3.02 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;
}) => 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;
}) => any;
header(props: {
columns: TableColumnT[];
}): any;
body(): any;
empty(): any;
loading(): any;
};
refs: {};
rootEl: HTMLDivElement;
};
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
columns: {
type: import('vue').PropType<TableColumnT[] | string[]>;
};
columnKeys: {
type: import('vue').PropType<import('./types').ColumnKeysT>;
};
data: {
type: import('vue').PropType<TableRowT[]>;
};
border: {
type: import('vue').PropType<import('./types').TableBorderT>;
default: string;
};
small: {
type: BooleanConstructor;
};
cellSpan: {
type: import('vue').PropType<import('./types').CellSpanT>;
};
emptyLabel: {
type: StringConstructor;
};
loading: {
type: BooleanConstructor;
};
loadingLabel: {
type: StringConstructor;
};
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
columns: {
type: import('vue').PropType<TableColumnT[] | string[]>;
};
columnKeys: {
type: import('vue').PropType<import('./types').ColumnKeysT>;
};
data: {
type: import('vue').PropType<TableRowT[]>;
};
border: {
type: import('vue').PropType<import('./types').TableBorderT>;
default: string;
};
small: {
type: BooleanConstructor;
};
cellSpan: {
type: import('vue').PropType<import('./types').CellSpanT>;
};
emptyLabel: {
type: StringConstructor;
};
loading: {
type: BooleanConstructor;
};
loadingLabel: {
type: StringConstructor;
};
}>> & Readonly<{}>, {
small: boolean;
border: "none" | "frame" | "all" | "column" | "row" | "row-column" | "row-frame" | "column-frame";
loading: boolean;
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
export default _default;
type __VLS_WithTemplateSlots<T, S> = T & {
new (): {
$slots: S;
};
};