vexip-ui
Version:
A Vue 3 UI library, Highly customizability, full TypeScript, performance pretty good
32 lines (31 loc) • 752 B
TypeScript
import { InjectionKey } from 'vue';
export type WheelRawOption = string | number | {
value: string | number;
label?: string;
disabled?: boolean;
};
export interface WheelOption {
value: string | number;
label: string;
disabled: boolean;
meta: WheelRawOption;
}
export interface ItemState {
width: number;
height: number;
el?: HTMLElement | null;
value: number | string;
disabled: boolean;
meta: any;
}
export interface WheelState {
increaseItem(item: ItemState): void;
decreaseItem(item: ItemState): void;
}
export interface WheelSlots {
default?: (params: {
option: WheelOption;
index: number;
}) => any;
}
export declare const WHEEL_STATE: InjectionKey<WheelState>;