UNPKG

choerodon-ui

Version:

An enterprise-class UI design language and React-based implementation

32 lines (31 loc) 1.03 kB
import React, { Component } from 'react'; import { LovConfig } from 'choerodon-ui/dataset/interface'; import DataSet from '../data-set/DataSet'; import Record from '../data-set/Record'; import { SelectionProps } from './Lov'; export declare enum SelectionsPosition { side = "side", below = "below" } export interface SelectionListProps { dataSet: DataSet; treeFlag?: LovConfig['treeFlag']; valueField: string; textField: string; selectionsPosition?: SelectionsPosition; selectionProps?: SelectionProps; } export default class SelectionList extends Component<SelectionListProps> { prefixCls: string; selectionNode: HTMLElement; modalNode: HTMLElement | null; contentRef(node: any): void; getRecords(records: Record[]): Record[]; unSelect: (record: Record) => void; renderSide(): JSX.Element | null; renderBelow: () => React.ReactNode; updateModalStyle(): void; componentDidMount(): void; componentDidUpdate(): void; render(): {} | null | undefined; }