import React, {PropTypes, Component} from 'react'; import NoteList from './NoteList'; import Tooltip from '../tooltip'; import {PREFIX_CLS} from './Constants'; class Notes extends Component { render() { const {listData, threshold, prefixCls} = this.props; const classNames = [prefixCls]; let items; if (listData.length > threshold) { items = new Array(threshold).fill('gray'); classNames.push(`${prefixCls}-overflow`); } else { items = listData.map(item => item.type); } const el = (