jamis
Version:
一种支持通过JSON配置方式生成页面的组件库
32 lines (31 loc) • 1.28 kB
TypeScript
import React from 'react';
import type { GetItemPropsOptions, StateChangeOptions } from 'downshift';
import type { IconPickerProps } from './types';
interface IconPickerState {
isOpen?: boolean;
inputValue?: string;
isFocused?: boolean;
vendorIndex?: number;
}
export default class IconPickerControl extends React.PureComponent<IconPickerProps, IconPickerState> {
input?: HTMLInputElement;
state: IconPickerState;
static defaultProps: Pick<IconPickerProps, 'resetValue' | 'placeholder' | 'noDataTip'>;
componentDidUpdate(prevProps: IconPickerProps): void;
inputRef: (ref: any) => void;
focus: () => void;
handleClick: () => void;
handleFocus: (e: any) => void;
handleBlur: (e: any) => void;
handleInputChange: (evt: React.ChangeEvent<HTMLInputElement>) => void;
handleKeyDown: (evt: React.KeyboardEvent<HTMLInputElement>) => void;
handleChange: (value: any) => void;
handleStateChange: (changes: StateChangeOptions<any>) => void;
handleClear: () => void;
renderGroupIcons: (getItemProps: (options: GetItemPropsOptions<any>) => any) => JSX.Element[];
renderFontIcons(): JSX.Element;
render(): JSX.Element;
}
export declare class IconPickerControlRenderer extends IconPickerControl {
}
export {};