@farris/ui-vue
Version:
Farris Vue, a Farris Design based Vue3 component library.
56 lines (55 loc) • 1.15 kB
TypeScript
export interface TableCellStaticText {
text: string;
require: boolean;
}
export interface TableCellEditor {
type: string | null;
id?: string;
}
export interface TableCell {
id: string;
type: string;
tdType: 'editor' | 'staticText';
staticText: TableCellStaticText;
editor: TableCellEditor;
binding: any;
colspan: number;
rowspan: number;
align: 'left' | 'center' | 'right';
valign: 'top' | 'middle' | 'bottom';
appearance: {
class: string;
style: string;
};
size?: any;
markRow?: number;
markCol?: number;
invisible?: boolean;
}
export interface TableRow {
id: string;
type: string;
columns: TableCell[];
}
export interface TableSchema {
id: string;
type: string;
devMode: 'advanced' | 'simple';
rows: TableRow[];
border: {
width: number;
enableColor: boolean;
color: string;
};
font: {
size: number;
enableColor: boolean;
color: string;
family: string;
};
appearance: {
class: string;
style: string;
};
visible: boolean;
}