fix: placeholder for cascader
This commit is contained in:
parent
c812d97527
commit
b3a35146cb
@ -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])}
|
||||||
|
Loading…
Reference in New Issue
Block a user