vexip-ui
Version:
A Vue 3 UI library, Highly customizability, full TypeScript, performance pretty good
23 lines (22 loc) • 749 B
TypeScript
import { InjectionKey } from 'vue';
import { ComponentSize } from '@vexip-ui/config';
export type ButtonType = 'default' | 'primary' | 'info' | 'success' | 'warning' | 'error';
export type ButtonAttrType = 'button' | 'submit' | 'reset';
export interface ButtonState {
index: number;
isLast: boolean;
}
export interface ButtonGroupState {
type: ButtonType;
size: ComponentSize;
increaseItem: (item: ButtonState) => void;
decreaseItem: (item: ButtonState) => void;
refreshIndexes: () => void;
}
export interface ButtonSlots {
default?: () => any;
icon?: () => any;
loading?: () => any;
}
export declare const GROUP_STATE: InjectionKey<ButtonGroupState>;
export declare const buttonTypes: readonly ButtonType[];