Browse Source

rewrite in typescript

#1846

- [x] Carousel
- [x] Cascader
- [x] Transfer
- [x] Tree

-Tree
-checkable is boolean type, instead of assigning a ReactElement to it,
I use Ternary Operators.
pull/2246/head
Gray Choi 9 years ago
parent
commit
3a36d65c5e
  1. 7
      components/transfer/list.tsx

7
components/transfer/list.tsx

@ -18,6 +18,7 @@ interface TransferListProps {
prefixCls?: string,
/** 数据源 */
dataSource: Array<TransferItem>,
filter?: TransferItem,
/** 是否显示搜索框 */
showSearch?: boolean,
/** 搜索框的默认值 */
@ -27,7 +28,8 @@ interface TransferListProps {
style?: React.CSSProperties,
handleFilter?: Function,
handleSelect?: Function,
handleSelectAll?: Function
handleSelectAll?: Function,
handleClear?: Function,
/** 每行渲染函数 */
render?: Function,
/** 主体渲染函数 */
@ -36,6 +38,9 @@ interface TransferListProps {
footer?: Function,
/** 选中项 */
checkedKeys?: Array<TransferItem>;
checkStatus?: boolean,
position?: string,
notFoundContent?: React.ReactNode | string,
}
export default class TransferList extends React.Component<TransferListProps, any> {

Loading…
Cancel
Save