fix: placeholder for cascader

This commit is contained in:
chenos 2021-03-31 09:10:15 +08:00
parent c812d97527
commit b3a35146cb

View File

@ -39,6 +39,7 @@ export const Cascader = connect({
value = [],
onChange,
schema = {},
placeholder,
// TODO(feature): 增加静态数据支持
// dataSource: []
} = props;
@ -138,6 +139,7 @@ export const Cascader = connect({
return (
<AntdCascader
placeholder={placeholder}
disabled={disabled}
options={options}
value={value.map(item => item[valueField])}