zp-bee
Version:
zp-bee,是一款基于 Dumi,由 React + TypeScript 开发的组件库 🎉。
17 lines (16 loc) • 543 B
TypeScript
import { SelectProps, SelectValue } from './select';
import React from 'react';
import { OptionProps } from 'rc-select/lib/Option';
export interface BeeSelectProps extends SelectProps<SelectValue> {
label: string;
required?: boolean;
}
interface SelectRef {
onFocus: Function;
onBlur: Function;
}
interface CompoundedComponent extends React.ForwardRefExoticComponent<BeeSelectProps & React.RefAttributes<SelectRef>> {
Option: React.FC<OptionProps>;
}
declare const BeeSelect: CompoundedComponent;
export default BeeSelect;