12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576 |
- import { IBaseProps } from '../_util/base';
- export interface ICommonError {
- detail: Error;
- errorCode: string;
- message: string;
- onRetry?: () => Promise<void>;
- }
- export declare enum InputTypes {
- stroke = "stroke",
- pinyin = "pinyin",
- handwriting = "handwriting"
- }
- export interface IPinYinMapItem {
- label: string;
- value: string;
- extraClassName?: string;
- }
- export interface IWordsItem {
- charId?: string;
- unicodeChar: string;
- unicodeCodePoint: string;
- unicodeFont: string | null;
- pinYinChars: string[];
- splitChars: string[];
- weight?: number | null;
- type?: string;
- extInfo?: string | null;
- sort?: number;
- }
- export type IFilterType = 'pinyin' | 'split' | 'all';
- export interface IWordsItem {
- charId?: string;
- unicodeChar: string;
- unicodeCodePoint: string;
- unicodeFont: string | null;
- pinYinChars: string[];
- splitChars: string[];
- weight?: number | null;
- type?: string;
- extInfo?: string | null;
- sort?: number;
- }
- export type IWordsData = IWordsItem[];
- export interface IRareWordsKeyboardProps extends IBaseProps {
-
- visible?: boolean;
-
- type?: InputTypes | string;
-
- showMask?: boolean;
-
- safeArea?: boolean;
-
- onClose?: () => void;
-
- onChange?: (value: string) => void;
-
- onError?: (err: Error) => void;
- }
- export declare const RareWordsKeyboardProps: Partial<IRareWordsKeyboardProps>;
|