@extclp/vexip-ui
Version:
A Vue 3 UI library, Highly customizability, full TypeScript, performance pretty good
22 lines (21 loc) • 780 B
TypeScript
import { InjectionKey } from 'vue';
export type LayoutProp = number | string | (number | string)[];
export type GridJustify = 'start' | 'end' | 'center' | 'space-around' | 'space-between' | 'space-evenly';
export type GridAlign = 'top' | 'middle' | 'bottom' | 'stretch';
export interface CellFlex {
justify: 'start' | 'end' | 'center' | 'space-around' | 'space-between' | 'space-evenly';
align: 'top' | 'middle' | 'bottom' | 'stretch';
}
export interface GridState {
cellFlex: CellFlex | false;
columns: LayoutProp;
}
export interface CellOptions {
top?: number | string;
left?: number | string;
width?: number;
height?: number;
right?: number | string;
bottom?: number | string;
}
export declare const GRID_STATE: InjectionKey<GridState>;