@qn-pandora/pandora-visualization
Version:
Pandora 通用可视化库
20 lines (19 loc) • 878 B
TypeScript
import * as React from 'react';
import { IOptionItem, ISelectorOptions as IOptions, ISelectorProps, ISelectValue } from '@qn-pandora/pandora-component';
export { IOptionItem, IOptions, ISelectorProps };
/**
* 下拉选择组件封装
*/
export default class Selector<VT extends ISelectValue> extends React.Component<ISelectorProps<VT>, any> {
get options(): IKeyValues<any> | undefined;
get groupOptions(): {
label: string;
filter: (option: import("@qn-pandora/pandora-component/lib/components/Selector").IBasicOption, index: number) => boolean;
}[] | undefined;
get selectAllOptionText(): string | undefined;
get createOptionText(): string | undefined;
get isAllowClear(): boolean;
tranformOptions(options: IOptions): IKeyValues<any> | undefined;
handleChange(value: any, option: any): void;
render(): React.JSX.Element;
}