table-xlsx
Version:
Based on SheetJS encapsulation, the function of exporting files and parsing files to generate table data is realized
67 lines (66 loc) • 1.7 kB
TypeScript
export declare const getStyles: ({ fontName, fontColorRgb, fontBold, fillFgColorRgb, borderStyle, borderColorRgb, alignmentHorizontal, alignmentVertical, alignmentWrapText, alignmentReadingOrder, alignmentTextRotation, }: {
fontBold?: boolean | undefined;
fontName?: string | undefined;
fontColorRgb?: string | undefined;
fillFgColorRgb?: string | undefined;
borderStyle?: string | undefined;
borderColorRgb?: string | undefined;
alignmentHorizontal?: string | undefined;
alignmentVertical?: string | undefined;
alignmentWrapText?: boolean | undefined;
alignmentReadingOrder?: number | undefined;
alignmentTextRotation?: number | undefined;
}) => {
fill: {
fgColor: {
rgb: string;
};
};
font: {
name: string;
color: {
rgb: string;
};
bold: boolean;
};
border: {
top: {
style: string;
color: {
rgb: string;
};
};
left: {
style: string;
color: {
rgb: string;
};
};
bottom: {
style: string;
color: {
rgb: string;
};
};
right: {
style: string;
color: {
rgb: string;
};
};
diagonal: {
style: string;
color: {
rgb: string;
};
};
};
numFmt: undefined;
alignment: {
horizontal: string;
vertical: string;
wrapText: boolean;
readingOrder: number;
textRotation: number;
};
};