jamis
Version:
一种支持通过JSON配置方式生成页面的组件库
21 lines (20 loc) • 546 B
TypeScript
import React from 'react';
import type { InputBoxProps } from '../types';
interface InputBoxState {
isFocused: boolean;
}
export default class InputBox extends React.Component<InputBoxProps, InputBoxState> {
static defaultProps: {
clearable: boolean;
placeholder: string;
};
state: {
isFocused: boolean;
};
clearValue(e: any): void;
handleChange(e: React.ChangeEvent<HTMLInputElement>): void;
handleFocus(e: any): void;
handleBlur(e: any): void;
render(): JSX.Element;
}
export {};