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