优化 List, 不让其报错

Change-Id: I168e2552a9f0b0aa0c65eff62f13c20f6a13a5b1
This commit is contained in:
2betop 2020-11-16 15:53:26 +08:00
parent 6678b34524
commit d366d2ce99

View File

@ -130,7 +130,7 @@ export default class ListControl extends React.Component<ListProps, any> {
) : null,
option[labelField || 'label'] ? (
<div key="label" className={cx('ListControl-itemLabel')}>
{option[labelField || 'label']}
{String(option[labelField || 'label'])}
</div>
) : null
// {/* {option.tip ? (<div className={`${ns}ListControl-tip`}>{option.tip}</div>) : null} */}