sard-uniapp
Version:
sard-uniapp 是一套基于 Uniapp + Vue3 框架开发的兼容多端的 UI 组件库
29 lines (28 loc) • 908 B
TypeScript
import { type StyleValue } from 'vue';
export interface KeyboardProps {
rootStyle?: StyleValue;
rootClass?: string;
type?: 'number' | 'digit' | 'idcard' | 'random' | 'plate';
}
export declare const defaultKeyboardProps: {
type: KeyboardProps["type"];
};
export interface KeyboardSlots {
default?(props: Record<string, never>): any;
}
export type KeyboardPlateMode = 'chinese' | 'english';
export interface KeyboardEmits {
(e: 'input', key: string): void;
(e: 'delete'): void;
(e: 'toggle', mode: KeyboardPlateMode): void;
}
export interface KeyBoardExpose {
shuffle: () => void;
toggle: () => void;
}
export declare const numberKeys: string[];
export declare const digitKeys: string[];
export declare const idcardKeys: string[];
export declare const chineseKeys: string[];
export declare const englishKeys: string[];
export declare function getRandomKeys(): string[];